/bin/bash: /bin/java: Is a directory 解決


  Hadoop執行 mapreduce報錯

 

2018-11-29 09:37:32,499 INFO mapreduce.Job:  map 0% reduce 0%
2018-11-29 09:37:32,539 INFO mapreduce.Job: Job job_1543500660213_0004 failed with state FAILED due to: Application application_1543500660213_0004 failed 2 times due to AM Container for appattempt_1543500660213_0004_000002 exited with  exitCode: 126
Failing this attempt.Diagnostics: [2018-11-29 09:37:31.956]Exception from container-launch.
Container id: container_1543500660213_0004_02_000001
Exit code: 126

[2018-11-29 09:37:31.962]Container exited with a non-zero exit code 126. Error file: prelaunch.err.
Last 4096 bytes of prelaunch.err :
Last 4096 bytes of stderr :
/bin/bash: /bin/java: No such file or directory


[2018-11-29 09:37:31.967]Container exited with a non-zero exit code 126. 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://venn01:8088/cluster/app/application_1543500660213_0004 Then click on links to logs of each attempt.
. Failing the application.
2018-11-29 09:37:32,557 INFO mapreduce.Job: Counters: 0

 

wtf?

看了下hadoop-env.sh 里面的JAVA_HOME,也沒問題

算了,沒有就給你一個吧

ln -s /opt/jdk1.8.0_91/bin/java /bin/java

建個軟連接,把Java指過去,搞定。

 


免責聲明!

本站轉載的文章為個人學習借鑒使用,本站對版權不負任何法律責任。如果侵犯了您的隱私權益,請聯系本站郵箱yoyou2525@163.com刪除。



 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM