Error: A JNI error has occurred, please check your installation and try again Exception in thread “m
1 说明在flink提交运行任务到yarn上运行时,报错如下:Error: A JNI error has occurred, please check your installation and try again Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/exception
·
1 说明
在flink提交运行任务到yarn上运行时,报错如下:
Error: A JNI error has occurred, please check your installation and try again Exception in thread “main” java.lang.NoClassDefFoundError: org/apache/hadoop/yarn/exceptions/YarnException
原因:在flink的安装包中缺少关于hadoop的jar包,需要将该jar包拷贝到flink的lib目录下,再重新启动即可。
flink-shaded-hadoop-2-uber-2.7.5-10.0.jar
注意:这里的jar包需要根据自己的flink版本和hadoop的版本,到官网下载对应的jar包
https://flink.apache.org/downloads.html
再次启动即可:
更多推荐
已为社区贡献1条内容
所有评论(0)