Mac系统部署Hadoop完后,运行WordCount程序,报错如下:
For more detailed output, check application tracking page:http://10.2.51.71:8088/proxy/application_1442143524533_0005/Then, click on links to logs of each attempt.
Diagnostics: Exception from container-launch.
Container id: container_1442143524533_0005_02_000001
Exit code: 127
Stack trace: ExitCodeException exitCode=127:
at org.apache.hadoop.util.Shell.runCommand(Shell.java:538)
at org.apache.hadoop.util.Shell.run(Shell.java:455)

在Mac上部署Hadoop并尝试运行WordCount程序时遇到exitCode 127错误,问题源于/bin/java路径未找到。解决方案是检查logs/userlogs目录下的stderr文件,发现错误信息为'/bin/bash: /bin/java: No such file or directory'。通过在终端执行ln -s `/usr/libexec/java_home`/bin/java /bin/java创建软连接,修复java路径后,MapReduce程序可以正常运行。
最低0.47元/天 解锁文章
2万+

被折叠的 条评论
为什么被折叠?



