当前位置:网站首页>【解决】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
边栏推荐
- Dc-7 target
- Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description
- dolphinscheduler3.x本地启动
- window下面如何安装swoole
- When we talk about immutable infrastructure, what are we talking about
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
- JMeter function assistant - random value, random string, fixed value random extraction
- Experience sharing of contribution of "management world"
- 一段程序让你明白什么静态内部类,局部内部类,匿名内部类
- 「解析」FocalLoss 解决数据不平衡问题
猜你喜欢

JMeter's own functions are not enough? Why don't you develop one yourself

力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)
![[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core](/img/fc/5162bbb0746f8af2d6c7d63ade571a.png)
[FPGA tutorial case 14] design and implementation of FIR filter based on vivado core

哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!

3428. Put apples

Jstack of JVM command: print thread snapshots in JVM

Deep clustering: joint optimization of depth representation learning and clustering

Markdown displays pictures side by side

Apple CMS V10 template /mxone Pro adaptive film and television website template

拼多多败诉:“砍价免费拿”侵犯知情权但不构成欺诈,被判赔400元
随机推荐
K8s running Oracle
可极大提升编程思想与能力的书有哪些?
3531. 哈夫曼树
安装mongodb数据库
How to keep accounts of expenses in life
vim映射大K
Handling hardfault in RT thread
Matlab / envi principal component analysis implementation and result analysis
JVM 全面深入
c面试 加密程序:由键盘输入明文,通过加密程序转换成密文并输出到屏幕上。
Redis (I) -- getting to know redis for the first time
360 Zhiyu released 7.0 new products to create an exclusive "unified digital workspace" for the party, government and army, and central and state-owned enterprises
雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业
Three updates to build applications for different types of devices | 2022 i/o key review
Calculation model FPS
微信小程序隐藏video标签的进度条组件
港科大&MSRA新研究:关于图像到图像转换,Fine-tuning is all you need
Career experience feedback to novice programmers
C language interview to write a function to find the first occurrence of substring m in string n.
ETCD数据库源码分析——从raftNode的start函数说起