美文网首页
Spark Standalone 单机起多个Worker

Spark Standalone 单机起多个Worker

作者: mrknowledge | 来源:发表于2022-01-21 22:35 被阅读0次

在每个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

      本文链接:https://www.haomeiwen.com/subject/xpmyhrtx.html