Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法

Posted Fight With Me!!!

tags:

篇首语:本文由小常识网(cha138.com)小编为大家整理,主要介绍了Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法相关的知识,希望对你有一定的参考价值。

Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found.
解决办法:
        修改/etc/hadoop/hadoop-env.sh中设JAVA_HOME。
        应当使用绝对路径。
        export JAVA_HOME=$JAVA_HOME                  //错误,不能这么改
        export JAVA_HOME=/usr/java/jdk1.6.0_45        //正确,应该这么改






以上是关于Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法的主要内容,如果未能解决你的问题,请参考以下文章

hadoop启动守护进程报JAVA_HOME is not set and could not be found

启动hadoop时出现ERROR: JAVA_HOME is not set and could not be found.解决办法

hadoop启动时报错,java: No such file or directory和localhost: Error: JAVA_HOME is not set.

Hadoop 找不到 JAVA_HOME 环境变量无法启动问题解决

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

启动hadoop报ERROR org.apache.hadoop.hdfs.server.namenode.FSImage: Failed to load image from FSImageFile