为了账号安全,请及时绑定邮箱和手机立即绑定
关注
luckytyrion

运行启动命令报错

老师,你好。我这边运行启动命令报错了,任务没有成功执行,上网查了很多方法,没有解决,帮忙看下,谢谢。


[root@hadoop30 ~]# hadoop jar hadoopDemo-1.0-SNAPSHOT.jar WordCountJob hdfs://hadoop30:9000/hello.txt hdfs://hadoop30:9000/out

2020-03-15 23:07:36,926 INFO client.RMProxy: Connecting to ResourceManager at hadoop30/192.168.150.30:8032

2020-03-15 23:07:37,797 WARN mapreduce.JobResourceUploader: Hadoop command-line option parsing not performed. Implement the Tool interface and execute your application with ToolRunner to remedy this.

2020-03-15 23:07:37,852 INFO mapreduce.JobResourceUploader: Disabling Erasure Coding for path: /tmp/hadoop-yarn/staging/root/.staging/job_1584327930057_0001

2020-03-15 23:07:38,441 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false

2020-03-15 23:07:39,228 INFO input.FileInputFormat: Total input files to process : 1

2020-03-15 23:07:39,553 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false

2020-03-15 23:07:39,609 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false

2020-03-15 23:07:39,625 INFO mapreduce.JobSubmitter: number of splits:1

2020-03-15 23:07:39,960 INFO sasl.SaslDataTransferClient: SASL encryption trust check: localHostTrusted = false, remoteHostTrusted = false

2020-03-15 23:07:40,044 INFO mapreduce.JobSubmitter: Submitting tokens for job: job_1584327930057_0001

2020-03-15 23:07:40,044 INFO mapreduce.JobSubmitter: Executing with tokens: []

2020-03-15 23:07:40,268 INFO conf.Configuration: resource-types.xml not found

2020-03-15 23:07:40,269 INFO resource.ResourceUtils: Unable to find 'resource-types.xml'.

2020-03-15 23:07:40,718 INFO impl.YarnClientImpl: Submitted application application_1584327930057_0001

2020-03-15 23:07:40,765 INFO mapreduce.Job: The url to track the job: http://hadoop30:8088/proxy/application_1584327930057_0001/

2020-03-15 23:07:40,765 INFO mapreduce.Job: Running job: job_1584327930057_0001

2020-03-15 23:07:46,827 INFO mapreduce.Job: Job job_1584327930057_0001 running in uber mode : false

2020-03-15 23:07:46,827 INFO mapreduce.Job:  map 0% reduce 0%

2020-03-15 23:07:46,851 INFO mapreduce.Job: Job job_1584327930057_0001 failed with state FAILED due to: Application application_1584327930057_0001 failed 2 times due to AM Container for appattempt_1584327930057_0001_000002 exited with  exitCode: 127

Failing this attempt.Diagnostics: [2020-03-15 23:07:46.255]Exception from container-launch.

Container id: container_1584327930057_0001_02_000001

Exit code: 127


[2020-03-15 23:07:46.281]Container exited with a non-zero exit code 127. Error file: prelaunch.err.

Last 4096 bytes of prelaunch.err :

Last 4096 bytes of stderr :

/bin/bash: /bin/java: No such file or directory



[2020-03-15 23:07:46.284]Container exited with a non-zero exit code 127. Error file: prelaunch.err.

Last 4096 bytes of prelaunch.err :

Last 4096 bytes of stderr :

/bin/bash: /bin/java: No such file or directory



For more detailed output, check the application tracking page: http://hadoop30:8088/cluster/app/application_1584327930057_0001 Then click on links to logs of each attempt.

. Failing the application.

2020-03-15 23:07:46,900 INFO mapreduce.Job: Counters: 0

[root@hadoop30 ~]# 


恩 使用export是定义环境变量的,针对框架的安装部署一定要仔细检查各种配置哈,稍微不注意就掉坑里面了?

2020-03-18
回复 0

我问题已经解决了,是yarn-site.xml里面的JAVA_HOME前面的export漏掉了

2020-03-16
回复 0

举报

0/150
提交
取消
意见反馈 帮助中心 APP下载
官方微信