当前位置:网站首页>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
边栏推荐
- linux redis6.2.6配置文件
- [PSQL] SQL基础教程读书笔记(Chapter1-4)
- Fund investment advisory business
- Chapter 9 Exceptions try...except...else...finally
- CNN--Introduction to each layer
- 【C语言项目合集】这十个入门必备练手项目,让C语言对你来说不再难学!
- 【微服务】Nacos集群搭建以及加载文件配置
- 超级详细的mysql数据库安装指南
- 文件 - 02 上传文件:上传临时文件到服务器
- [PSQL] SQL Basic Course Reading Notes (Chapter1-4)
猜你喜欢
随机推荐
【科普向】5G核心网架构和关键技术
R语言 第一部分
2022.07.29_Daily Question
知识、创新、回报。
03-SDRAM: Write operation (burst)
【第四章】详解Feign的实现原理
MySQL installation to the last step in the write the configuration file failed?And after the installation steps
Financial leasing business
2022.07.26_每日一题
2022.07.14_Daily Question
2022.07.14_每日一题
《opencv学习笔记》-- 仿射变换
linux redis6.2.6配置文件
MySQL table creation statement_Three commonly used MySQL table creation statements
How to set the computer password?How to add "safety lock" to your computer
navicat 新建数据库
2022.07.22_每日一题
DAY18: Xss Range Clearance Manual
iOS大厂面试查漏补缺
2022.07.22 _ a day









