当前位置:网站首页>【解决】Final app status- UNDEFINED, exitCode- 16
【解决】Final app status- UNDEFINED, exitCode- 16
2022-07-07 01:59:00 【骑着蜗牛向前跑】
异常信息
ERROR yarn.ApplicationMaster: RECEIVED SIGNAL TERM
INFO yarn.ApplicationMaster: Final app status: UNDEFINED, exitCode: 16, (reason: Shutdown hook called before final status was reported.)
INFO util.ShutdownHookManager: Shutdown hook called
我的场景是:java 代码中使用 SparkLauncher
提交 spark 任务的 jar 包到 yarn 集群执行,出现了上述异常。遂 google 正确的打开方式。
解决办法
- 在
${HADOOP_HOME}/etc/hadoop/yarn-site.xml
中添加如下配置:
<property>
<name>yarn.nodemanager.aux-services</name>
<value>spark_shuffle,mapreduce_shuffle</value>
</property>
<property>
<name>yarn.nodemanager.aux-services.spark_shuffle.class</name>
<value>org.apache.spark.network.yarn.YarnShuffleService</value>
</property>
- 查看
${HADOOP_HOME}/share/yarn/lib
目录下是否有spark-*-yarn-shuffle.jar
这个jar包,*
是版本号。如果没有,把 spark中对应的 jar包拷贝到该目录下:
cd ${HADOOP_HOME}/share/yarn/lib
cp ${SPARK_HOME}/yarn/spark-2.4.8-yarn-shuffle.jar ./
- 重启 yarn。
cd ${HADOOP_HOME}
./sbin/stop-yarn.sh
./sbin/start-yarn.sh
边栏推荐
- 那些自损八百的甲方要求
- Experience of Niuke SQL
- Peripheral driver library development notes 43: GPIO simulation SPI driver
- Party A's requirements for those who have lost 800 yuan
- Redisl garbled code and expiration time configuration
- 程序员的日常 | 每日趣闻
- Ideas of high concurrency and high traffic seckill scheme
- 安装VMmare时候提示hyper-v / device defender 侧通道安全性
- Ctfshow-- common posture
- 安装mongodb数据库
猜你喜欢
tkinter窗口选择pcd文件并显示点云(open3d)
Peripheral driver library development notes 43: GPIO simulation SPI driver
「解析」FocalLoss 解决数据不平衡问题
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
Audio distortion analysis of DSP and DAC based on adau1452
A very good JVM interview question article (74 questions and answers)
程序员的日常 | 每日趣闻
高并发大流量秒杀方案思路
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
From "running distractor" to data platform, Master Lu started the road of evolution
随机推荐
C language sorting (to be updated)
UIC (configuration UI Engineering) public file library adds 7 industry materials
What are the classic database questions in the interview?
Laravel uses Tencent cloud cos5 full tutorial
3428. 放苹果
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
C language interview to write a function to find the first occurrence of substring m in string n.
ICML 2022 | explore the best architecture and training method of language model
Change the original style of UI components
Swagger3 configuration
软件测试的几个关键步骤,你需要知道
How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet
Cloud acceleration helps you effectively solve attack problems!
JVM monitoring and diagnostic tools - command line
[Shell]常用shell命令及测试判断语句总结
哈趣投影黑马之姿,仅用半年强势突围千元投影仪市场!
How to keep accounts of expenses in life
Redis (I) -- getting to know redis for the first time
安装VMmare时候提示hyper-v / device defender 侧通道安全性
Ideas of high concurrency and high traffic seckill scheme