当前位置:网站首页>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 client
2.2 提交 Spark 应用程序到 Yarn 上
--master yarn
3. 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权威指南
边栏推荐
猜你喜欢
[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
SQL 入门之第一讲——MySQL 8.0.29安装教程(windows 64位)
[What is the role of auto_increment in MySQL?】
C语言三子棋(井字棋)小游戏
关于Error EPERM operation not permitted, mkdir...几种解决办法的比较
SQL连接表(内连接、左连接、右连接、交叉连接、全外连接)
奉劝那些刚参加工作的学弟学妹们:要想进大厂,这些核心技能是你必须要掌握的!完整学习路线!
刷题《剑指Offer》day07
Vulkan与OpenGL对比——Vulkan的全新渲染架构
NK - RTU980 burning bare-metal program
随机推荐
数组every和some方法的区别?
PowerCLi 一键批量部署OVA 到esxi 7
免安装版的Mysql安装与配置——详细教程
MySQL 日期时间类型精确到毫秒
ScheduledExecutorService - 定时周期执行任务
MUI获取相机权限
【小程序专栏】总结uniapp开发小程序的开发规范
Vulkan与OpenGL对比——Vulkan的全新渲染架构
Small application project development, jingdong mall 】 【 uni - app custom search component (below) - search history
SQLAlchemy使用教程
【云原生&微服务五】Ribbon负载均衡策略之随机ThreadLocalRandom
科目三:左转弯
使用PageHelper实现分页查询(详细)
日志导致线程Block的这些坑,你不得不防
期刊会议排名、信息检索网站推荐以及IEEE Latex模板下载
蚂蚁核心科技产品亮相数字中国建设峰会 持续助力企业数字化转型
First acquaintance with NK-RTU980 development board
48页智慧城市规划蓝图 解决方案
奉劝那些刚参加工作的学弟学妹们:要想进大厂,这些核心技能是你必须要掌握的!完整学习路线!
【MySQL功法】第2话 · 数据库与数据表的基本操作