hadoop伪分布式启动报错JAVA_HOME is not set

在确定已经设置好java环境变量后,启动hadoop还是报JAVA_HOME is not set。

查了些资料,参考https://stackoverflow.com/questions/14325594/working-with-hadoop-localhost-error-java-home-is-not-set

在etc/hadoop/hadoop-env.sh中把JAVA_HOME配上,启动ok。

posted @ 2017-09-08 16:58  方头狼  阅读(346)  评论(0编辑  收藏  举报