当前位置:   article > 正文

JAVA_HOME is not set and could not be found_starting namenodes on [localhost]localhost: error:

starting namenodes on [localhost]localhost: error: java home is not set and

http://blog.csdn.net/hanhuili/article/details/11482509

Starting namenodes on []

localhost: Error:  JAVA_HOME is not set and could not be found .

localhost: Error: JAVA_HOME is not set and could not be found.

...

starting yarn daemons
starting resourcemanager, logging to /home/lihanhui/open-source/hadoop-2.1.0-beta/logs/yarn-admin-resourcemanager-localhost.out
localhost: Error: JAVA_HOME is not set and could not be found.


直接命令行执行export JAVA_HOME=/PATH/TO/JDK无法解决问题

grep命令发现libexec/hadoop-config.sh文件中有错误提示中的黑体字,于是在对应位置前直接设置export JAVA_HOME=/PATH/TO/JDK

错误消失。


hadoop版本:hadoop-2.1.0-beta

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/凡人多烦事01/article/detail/574536
推荐阅读
相关标签
  

闽ICP备14008679号