yarn安装MapReduce框架JAR上传的时候报错处理
Posted 江南独孤客
tags:
篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了yarn安装MapReduce框架JAR上传的时候报错处理相关的知识,希望对你有一定的参考价值。
22/03/03 18:14:04 INFO uploader.FrameworkUploader: Adding /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./hadoop-yarn-server-common-3.0.0-cdh6.3.0.jar
22/03/03 18:14:04 INFO uploader.FrameworkUploader: Adding /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar
22/03/03 18:14:05 ERROR uploader.FrameworkUploader: Error in execution /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar (No such file or directory)
java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.buildPackage(FrameworkUploader.java:334)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.run(FrameworkUploader.java:126)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.main(FrameworkUploader.java:612)
Exception in thread "main" java.lang.RuntimeException: java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar (No such file or directory)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.run(FrameworkUploader.java:136)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.main(FrameworkUploader.java:612)
Caused by: java.io.FileNotFoundException: /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar (No such file or directory)
at java.io.FileInputStream.open0(Native Method)
at java.io.FileInputStream.open(FileInputStream.java:195)
at java.io.FileInputStream.<init>(FileInputStream.java:138)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.buildPackage(FrameworkUploader.java:334)
at org.apache.hadoop.mapred.uploader.FrameworkUploader.run(FrameworkUploader.java:126)
... 1 more
报错最明显的位置错误如下:
ERROR uploader.FrameworkUploader: Error in execution /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/./jindofs-sdk.jar (No such file or directory)
解决方案:
每台yarn节点上去执行
cd /opt/cloudera/parcels/CDH-6.3.0-1.cdh6.3.0.p0.1279813/lib/hadoop-yarn/
rm -rf ./jindofs-sdk.jar(此文件只是一个软链接,并非文件夹和文件,只能删除)
重新上传jindofs-sdk.jar到此目录
然后执行成功
以上是关于yarn安装MapReduce框架JAR上传的时候报错处理的主要内容,如果未能解决你的问题,请参考以下文章
HDFS设计思路,HDFS使用,查看集群状态,HDFS,HDFS上传文件,HDFS下载文件,yarn web管理界面信息查看,运行一个mapreduce程序,mapreduce的demo