spark spark_deploy_mode配置详解

本文详细介绍了Spark的部署模式,包括client和cluster两种。client模式下,driver在提交应用的客户端进程中运行,适合与worker节点地理位置相近的情况。而cluster模式中,driver在集群内部的Worker进程中启动,客户端进程在提交应用后退出,适用于考虑网络开销的场景。Master节点仅负责调度,不执行用户任务。
摘要由CSDN通过智能技术生成

spark的配置里有个:spark_deploy_mode,可以是client 或cluster

–deploy-mode: Whether to deploy your driver on the worker nodes
(cluster) or locally as an external client (client) (default: client)

注意这里的client和cluster模式的区别在于driver的位置

A common deployment strategy is to submit your application from a
gateway machine that is physically co-located with your worker
machines (e.g. Master node in a standalone EC2 cluster). In this
setup, client mode is appropriate. In client mode, the driver is
launched directly within the spark-submit process which acts as a
client to the cluster. The input and output of the application is
attached to the console. Thus, this mode is especially suitable for
applications that involve the REPL (e.g. Spark shell).

In client mode, the driver is launched in the same process as the
client that submits the ap

  • 2
    点赞
  • 3
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值