当前位置:   article > 正文

CentOS hadoop启动错误 JAVA_HOME is not set and could not be found

CentOS hadoop启动错误 JAVA_HOME is not set and could not be found

...

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

转载于:https://www.cnblogs.com/hanhuilee/p/5221314.html

本文内容由网友自发贡献,转载请注明出处:https://www.wpsshop.cn/w/从前慢现在也慢/article/detail/574530
推荐阅读
相关标签
  

闽ICP备14008679号