当前位置:网站首页>Spark 在 Yarn 上运行 Spark 应用程序
Spark 在 Yarn 上运行 Spark 应用程序
2022-07-31 08:21:00 【InfoQ】
1. 部署模式
1.1 Client 部署模式

1.2 Cluster 部署模式

1.3 区别
2. 运行作业
2.1 在 YARN 上运行 Spark Shell 应用程序
--master yarn --deploy-mode client2.2 提交 Spark 应用程序到 Yarn 上
--master yarn3. Example
3.1 以 Client 模式运行
spark-submit \
--class com.spark.example.core.base.WordCount \
--master yarn \
--deploy-mode client \
--executor-memory 2g \
--num-executors 4 \
--executor-cores 1 \
spark-example-3.1-1.0.jar \
/data/word-count/word-count-input /data/word-count/word-count-output
3.2 以 Cluster 模式运行
spark-submit \
--class com.spark.example.core.base.WordCount \
--master yarn \
--deploy-mode cluster \
--executor-memory 2g \
--num-executors 4 \
--executor-cores 1 \
spark-example-3.1-1.0.jar \
/data/word-count/word-count-input /data/word-count/word-count-output
yarn application -list- https://www.cloudera.com/documentation/enterprise/5-14-x/topics/cdh_ig_running_spark_on_yarn.html
- Hadoop权威指南
边栏推荐
- mysql insert new field method
- 2022杭电杯超级联赛3
- SQL连接表(内连接、左连接、右连接、交叉连接、全外连接)
- Install the deployment kubernetes KubeSphere management
- Ubuntu安装Mysql5.7
- MySQL 数据库基础知识(系统化一篇入门)
- A, MySQL principle of master-slave replication
- MySQL中InnoDB的多版本并发控制(MVCC)的实现
- MySQL 5.7 安装教程(全步骤、保姆级教程)
- Flutter Paystack implements all options
猜你喜欢
随机推荐
Which strings will be parsed as null by FastJson?
MySQL 数据库基础知识(系统化一篇入门)
如何使用mysql binlog 恢复数据
Ceph single node deployment
"C language game" entry-level chess game (robot enhanced version)
How to upgrade nodejs version
个人报错问题 持续总结
【云原生&微服务五】Ribbon负载均衡策略之随机ThreadLocalRandom
SSM框架讲解(史上最详细的文章)
PowerCLi 一键批量部署OVA 到esxi 7
48页智慧城市规划蓝图 解决方案
Flutter Paystack implements all options
First acquaintance with NK-RTU980 development board
[Yellow ah code] Introduction to MySQL - 3. I use select, the boss directly drives me to take the train home, and I still buy a station ticket
MySQL 8.0.29 解压版安装教程(亲测有效)
【MySQL功法】第5话 · SQL单表查询
Docker-compose安装mysql
The first part of the R language
动态顺序表的增删查改(C语言实现)
Hematemesis summarizes thirteen experiences to help you create more suitable MySQL indexes

![mysql 数据去重的三种方式[实战]](/img/37/ad4007a32d9eb563a303756785e72f.png)







