spark-shell是Spark的命令行界面,我们可以在上面直接敲一些命令,就像windows的cmd一样,进入Spark安装目录,执行以下命令打开spark-shell: bin/spark-shell --master spark://hxf:7077 --executor-memory 1024m --driver-memory 1024m --total-executor-cores 4 1. executor-memory是slave的内存,driver-memory是master...
试试在spark-env.sh中设置:export SPARK_MASTER_IP=127.0.0.1 export SPARK_LOCAL_IP=127.0.0.1