当前位置:网站首页>【解决】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
边栏推荐
- LM小型可编程控制器软件(基于CoDeSys)笔记二十三:伺服电机运行(步进电机)相对坐标转换为绝对坐标
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
- Apple CMS V10 template /mxone Pro adaptive film and television website template
- 2022Android面试必备知识点,一文全面总结
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- 2022 Android interview essential knowledge points, a comprehensive summary
- 693. Travel sequencing
- 程序员的日常 | 每日趣闻
- Find duplicate email addresses
- Markdown 并排显示图片
猜你喜欢
From "running distractor" to data platform, Master Lu started the road of evolution
直击2022ECDC萤石云开发者大会:携手千百行业加速智能升级
【GNN】图解GNN: A gentle introduction(含视频)
软件测试的几个关键步骤,你需要知道
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业
What are the classic database questions in the interview?
基于FPGA的VGA协议实现
如何在Touch Designer 2022版中设置解决Leap Motion不识别的问题?
Test the foundation of development, and teach you to prepare for a fully functional web platform environment
随机推荐
Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
JVM monitoring and diagnostic tools - command line
微信小程序隐藏video标签的进度条组件
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
What are the classic database questions in the interview?
C语言面试 写一个函数查找两个字符串中的第一个公共字符串
window下面如何安装swoole
基于FPGA的VGA协议实现
A program lets you understand what static inner classes, local inner classes, and anonymous inner classes are
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
Three updates to build applications for different types of devices | 2022 i/o key review
Markdown 并排显示图片
jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取
「解析」FocalLoss 解决数据不平衡问题
Deep clustering: joint optimization of depth representation learning and clustering
[shell] summary of common shell commands and test judgment statements
FlexRay通信协议概述
Audio distortion analysis of DSP and DAC based on adau1452
Overview of FlexRay communication protocol
Bypass open_ basedir