当前位置:网站首页>【解决】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
边栏推荐
- @Detailed differences between pathvariable and @requestparam
- Array proof during st table preprocessing
- [opencv] morphological filtering (2): open operation, morphological gradient, top hat, black hat
- How to set up in touch designer 2022 to solve the problem that leap motion is not recognized?
- 字符串常量与字符串对象分配内存时的区别
- 360织语发布7.0新品 为党政军、央国企打造专属“统一数字工作空间”
- 2022 Android interview essential knowledge points, a comprehensive summary
- When we talk about immutable infrastructure, what are we talking about
- 线性代数(一)
- MySQL(十)
猜你喜欢

字符串常量与字符串对象分配内存时的区别

Jstack of JVM command: print thread snapshots in JVM

Go language learning notes - Gorm use - native SQL, named parameters, rows, tosql | web framework gin (IX)

Ctfshow-- common posture

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

Bypass open_ basedir

雷特智能家居龙海祁:从专业调光到全宅智能,20年专注成就专业

Dc-7 target

Laravel uses Tencent cloud cos5 full tutorial

PostgreSQL database timescaledb function time_ bucket_ Gapfill() error resolution and license replacement
随机推荐
Three updates to build applications for different types of devices | 2022 i/o key review
2022 Android interview essential knowledge points, a comprehensive summary
当我们谈论不可变基础设施时,我们在谈论什么
C语言面试 写一个函数查找两个字符串中的第一个公共字符串
go-microservice-simple(2) go-Probuffer
Handling hardfault in RT thread
【OpenCV】形态学滤波(2):开运算、形态学梯度、顶帽、黑帽
直击2022ECDC萤石云开发者大会:携手千百行业加速智能升级
Qtthread, one of many methods of QT multithreading
Force deduction 62 different paths (the number of all paths from the upper left to the lower right of the matrix) (dynamic planning)
"Parse" focalloss to solve the problem of data imbalance
Doctoral application | Professor Hong Liang, Academy of natural sciences, Shanghai Jiaotong University, enrolls doctoral students in deep learning
微信小程序隐藏video标签的进度条组件
C语言整理(待更新)
vim映射大K
Several key steps of software testing, you need to know
Rk3399 platform development series explanation (WiFi) 5.52. Introduction to WiFi framework composition
Dc-7 target
MySQL(十)
Redisl garbled code and expiration time configuration