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

  Hadoop执行 mapreduce报错

-- ::, INFO mapreduce.Job:  map % reduce %
-- ::, INFO mapreduce.Job: Job job_1543500660213_0004 failed with state FAILED due to: Application application_1543500660213_0004 failed times due to AM Container for appattempt_1543500660213_0004_000002 exited with exitCode:
Failing this attempt.Diagnostics: [-- ::31.956]Exception from container-launch.
Container id: container_1543500660213_0004_02_000001
Exit code: [-- ::31.962]Container exited with a non-zero exit code . Error file: prelaunch.err.
Last bytes of prelaunch.err :
Last bytes of stderr :
/bin/bash: /bin/java: No such file or directory [-- ::31.967]Container exited with a non-zero exit code . Error file: prelaunch.err.
Last bytes of prelaunch.err :
Last 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.
-- ::, INFO mapreduce.Job: Counters:

wtf?

看了下hadoop-env.sh 里面的JAVA_HOME,也没问题

算了,没有就给你一个吧

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

建个软连接,把Java指过去,搞定。

上一篇:Redis学习第八课:Redis高级实用特性(一)


下一篇:消息队列——ActiceMQ