当前位置:网站首页>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权威指南
边栏推荐
- Linux redis6.2.6 configuration file
- TypeError The view function did not return a valid response. The function either returned None 的解决
- 免安装版的Mysql安装与配置——详细教程
- MySQL 排序
- 状态机动态规划之股票问题总结
- [Mini Program Project Development--Jingdong Mall] Custom Search Component of uni-app (Middle)--Search Suggestions
- 个人报错问题 持续总结
- MySQL中InnoDB的多版本并发控制(MVCC)的实现
- Hematemesis summarizes thirteen experiences to help you create more suitable MySQL indexes
- Regarding "computing power", this article is worth reading
猜你喜欢
![[Cloud native and 5G] Microservices support 5G core network](/img/c9/4ccacd1e70285c2ceb50c324e5018c.png)
[Cloud native and 5G] Microservices support 5G core network

0730~Mysql优化

【小程序项目开发 -- 京东商城】uni-app 商品分类页面(下)

关于Error EPERM operation not permitted, mkdir...几种解决办法的比较

【MySQL功法】第2话 · 数据库与数据表的基本操作

MySQL 日期时间类型精确到毫秒

sqli-labs(less-11)

【云原生&微服务五】Ribbon负载均衡策略之随机ThreadLocalRandom

日志导致线程Block的这些坑,你不得不防

剑指offer-解决面试题的思路
随机推荐
【黄啊码】MySQL入门—3、我用select ,老板直接赶我坐火车回家去,买的还是站票
SSM integration case study (detailed)
[转载] Virtual Studio 让系统找到需要的头文件和库
重装系统后,hosts文件配置后不生效
[Cloud native] Introduction and use of Feign of microservices
Vulkan与OpenGL对比——Vulkan的全新渲染架构
New in Visual Studio: Low Priority Builds
SQL 入门之第一讲——MySQL 8.0.29安装教程(windows 64位)
Which strings will be parsed as null by FastJson?
The first part of the R language
jupyter notebook初使用
"The C language games" mine clearance
SQL 嵌套 N 层太长太难写怎么办?
Vue项目通过node连接MySQL数据库并实现增删改查操作
Docker-compose安装mysql
MySQL 5.7详细下载安装配置教程
[MySQL exercises] Chapter 5 · SQL single table query
动态顺序表的增删查改(C语言实现)
Open Source | Commodity Recognition Recommender System
"C language game" entry-level chess game (robot enhanced version)