当前位置:网站首页>The Spark run on Yarn Spark application
The Spark run on Yarn Spark application
2022-07-31 07:58:00 【@SmartSi】
Running Spark on Yarn provides the tightest integration with other Hadoop components and the easiest way to use Spark on an existing Hadoop cluster.For running Spark applications on Yarn, Spark provides two deployment modes: Client mode and Cluster mode.The Driver in Client mode runs on the client, while the Driver in Cluster mode runs on Yarn's Application Master.
Client mode must be used for programs with any interactive components (eg, spark-shell, pyspark).Client mode is also useful when building Spark applications, since any debug output is immediately visible.Cluster mode is suitable for production jobs because the entire application runs on the cluster, which makes it easier to preserve log files (including those from the Driver) for future exception checking.
1. Deployment Mode
In YARN, each application instance has an ApplicationMaster process, which is the first container started for that application.The application is responsible for requesting resources from the ResourceManager.Once the resource is allocated, the application will instruct the NodeManagers to start the container.ApplicationMasters remove the dependency on active clients: the process that started the application can terminate and continue to run cooperatively from a process managed by YARN on the cluster.
See Spark Application Deployment Tool spark-submit for options to specify the deployment mode.
1.1 Client Deployment Mode
In Client mode, the Spark Driver runs on the host that submits the job.App
边栏推荐
- Leetcode952. 按公因数计算最大组件大小
- mysql的建表语句_三种常用的MySQL建表语句
- 手把手教你开发微信小程序自定义底部导航栏
- Pygame Surface对象
- LeetCode:952. 按公因数计算最大组件大小【欧拉筛 + 并查集】
- MySQL installation to the last step in the write the configuration file failed?And after the installation steps
- 2022.07.13 _ a day
- Zabbix6.2 Surprise Release!Especially optimize the performance of medium and large environment deployment!
- CNN--各层的介绍
- 文件 - 07 删除文件: 根据fileIds批量删除文件及文件信息
猜你喜欢
随机推荐
第9章 异常try...except...else...finally
2022.07.14_每日一题
从 Google 离职,前Go 语言负责人跳槽小公司
MySQL installation to the last step in the write the configuration file failed?And after the installation steps
Matlab学习第一天(持续更新中)
iOS大厂面试查漏补缺
‘vite‘ 不是内部或外部命令,也不是可运行的程序 或批处理文件。
PCB抄板
开源|商品识别推荐系统
【愚公系列】2022年07月 Go教学课程 022-Go容器之字典
《c语言小游戏》入门级三子棋游戏(机器人加强版)
【Objective-C语言中的@property】
【Go语言入门】一文搞懂Go语言的最新依赖管理:go mod的使用
把 VS Code 当游戏机
2022.07.15_每日一题
SCI写作指南
DAY18:Xss 靶场通关手册
2022.07.12 _ a day
任务及任务切换
2022.07.18 _ a day









