Spark Standalone 单机起多个Worker

在每个Slave上启动多个Worker

SPARK_WORKER_INSTANCES=3 SPARK_WORKER_CORES=2 ./sbin/start-slaves.sh

手动启动Worker并连接到Spark Master

./bin/spark-class org.apache.spark.deploy.worker.Worker spark://IP:PORT

参考:https://sonra.io/big-data/multiple-spark-worker-instances-on-a-single-node-why-more-of-less-is-more-than-less/

你可能感兴趣的:(Spark Standalone 单机起多个Worker)