当前位置:网站首页>【解决】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
边栏推荐
- FlexRay通信协议概述
- 字符串常量与字符串对象分配内存时的区别
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- 693. Travel sequencing
- JMeter function assistant - random value, random string, fixed value random extraction
- Redisl garbled code and expiration time configuration
- 3428. 放苹果
- Developers don't miss it! Oar hacker marathon phase III chain oar track registration opens
- laravel 使用腾讯云 COS5全教程
- 【GNN】图解GNN: A gentle introduction(含视频)
猜你喜欢

"Parse" focalloss to solve the problem of data imbalance

开发者别错过!飞桨黑客马拉松第三期链桨赛道报名开启
![[SOC FPGA] peripheral PIO button lights up](/img/34/58728bddbf91eb69e9c0062dbfd531.jpg)
[SOC FPGA] peripheral PIO button lights up

JVM command - jmap: export memory image file & memory usage

3428. 放苹果

测试开发基础,教你做一个完整功能的Web平台之环境准备

FlexRay通信协议概述

How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?

为不同类型设备构建应用的三大更新 | 2022 I/O 重点回顾

Markdown 并排显示图片
随机推荐
JMeter function assistant - random value, random string, fixed value random extraction
Overview of FlexRay communication protocol
FlexRay通信协议概述
What are the classic database questions in the interview?
Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)
How to use wechat cloud hosting or cloud functions for cloud development of unapp development applet
UIC(组态UI工程)公版文件库新增7款行业素材
postgresql 数据库 timescaledb 函数time_bucket_gapfill()报错解决及更换 license
UIC (configuration UI Engineering) public file library adds 7 industry materials
Jmeter自带函数不够用?不如自己动手开发一个
Navicat导入15G数据报错 【2013 - Lost connection to MySQL server during query】 【1153:Got a packet bigger】
"Parse" focalloss to solve the problem of data imbalance
How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
VMware安装后打开就蓝屏
Implementation of VGA protocol based on FPGA
Markdown 并排显示图片
Open the blue screen after VMware installation
Ideas of high concurrency and high traffic seckill scheme
对称的二叉树【树的遍历】
Redis (II) - redis General Command