当前位置:网站首页>【解决】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
边栏推荐
- Open the blue screen after VMware installation
- Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
- What are the classic database questions in the interview?
- 力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)
- 屏幕程序用串口无法调试情况
- Dc-7 target
- "Parse" focalloss to solve the problem of data imbalance
- 如何在Touch Designer 2022版中设置解决Leap Motion不识别的问题?
- 博士申请 | 上海交通大学自然科学研究院洪亮教授招收深度学习方向博士生
- 为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾
猜你喜欢

拼多多败诉:“砍价免费拿”侵犯知情权但不构成欺诈,被判赔400元

Markdown displays pictures side by side

力扣62 不同路径(从矩阵左上到右下的所有路径数量) (动态规划)

线性代数(一)

Rk3399 platform development series explanation (WiFi) 5.53, hostapd (WiFi AP mode) configuration file description

jmeter 函数助手 — — 随机值、随机字符串、 固定值随机提取

uniapp开发小程序如何使用微信云托管或云函数进行云开发

When we talk about immutable infrastructure, what are we talking about

Redis(一)——初识Redis

博士申请 | 上海交通大学自然科学研究院洪亮教授招收深度学习方向博士生
随机推荐
ST表预处理时的数组证明
A very good JVM interview question article (74 questions and answers)
tkinter窗口选择pcd文件并显示点云(open3d)
2022 Android interview essential knowledge points, a comprehensive summary
You don't know the complete collection of recruitment slang of Internet companies
Redisl garbled code and expiration time configuration
[FPGA] EEPROM based on I2C
Open the blue screen after VMware installation
高并发大流量秒杀方案思路
哈趣投影黑馬之姿,僅用半年强勢突圍千元投影儀市場!
matlab / ENVI 主成分分析实现及结果分析
PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
"Parse" focalloss to solve the problem of data imbalance
JMeter function assistant - random value, random string, fixed value random extraction
拼多多败诉:“砍价免费拿”侵犯知情权但不构成欺诈,被判赔400元
Common problems of caching in high concurrency scenarios
c语言(结构体)定义一个User结构体,含以下字段:
Oracle迁移中关于大容量表使用数据泵(expdp、impdp)导出导入容易出现的问题和注意事项
C interview encryption program: input plaintext by keyboard, convert it into ciphertext through encryption program and output it to the screen.
Change the original style of UI components