【发布时间】:2017-03-09 02:39:22
【问题描述】:
文档https://spark.apache.org/docs/1.1.0/submitting-applications.html
将部署模式描述为:
--deploy-mode: Whether to deploy your driver on the worker nodes (cluster) or locally as an external client (client) (default: client)
使用此图fig1 作为指导(取自http://spark.apache.org/docs/1.2.0/cluster-overview.html):
如果我启动 Spark 工作:
./bin/spark-submit \
--class com.driver \
--master spark://MY_MASTER:7077 \
--executor-memory 845M \
--deploy-mode client \
./bin/Driver.jar
那么Driver Program 将是MY_MASTER,如fig1 MY_MASTER 中所指定的那样
如果我改为使用--deploy-mode cluster,那么Driver Program 将在工作节点之间共享?如果这是真的,那么这是否意味着fig1 中的Driver Program 框可以被删除(因为它不再被使用),因为SparkContext 也将在工作节点之间共享?
应该使用cluster 代替client 的条件是什么?
【问题讨论】:
标签: apache-spark