hadoop Error: JAVA_HOME is not set and could not be found.
Posted 苏轶然
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/local/lib/jdk1.8.0_60 //正确,应该这么改
以上是关于hadoop Error: JAVA_HOME is not set and could not be found.的主要内容,如果未能解决你的问题,请参考以下文章
启动hadoop时出现ERROR: JAVA_HOME is not set and could not be found.解决办法
启动hadoop,报错Error JAVA_HOME is not set and could not be found
使用 Hadoop:localhost:错误:未设置 JAVA_HOME
hadoop启动时报错,java: No such file or directory和localhost: Error: JAVA_HOME is not set.
Windows环境下执行hadoop命令出现Error: JAVA_HOME is incorrectly set Please update D:SoftWarehadoop-2.6.0co(示例