hadoop运行提示JAVA_HOME is not set and could not be found
2017-12-12 09:57
741 查看
很多人按照网上的各类教程搭建hadoop,但经常在安装好了后,启动hadoop时出现各类的错误,本文就“Error:JAVA_HOME is not set and could not be found ”这一错误提出解决办法。
针对这个错误,网上好多都说了java的路径设置有问题,但没有指出具体的修改方法,其实是hadoop里面hadoop-env.sh文件里面的java路径设置不对,hadoop-env.sh在hadoop/etc/hadoop目录下,具体的修改办法如下:
sudo vim hadoop/etc/hadoop/hdoop-env.sh
将语句 export JAVA_HOME=$JAVA_HOME
修改为 export JAVA_HOME=/usr/java/jdk1.8.0_101
保存后退出。
再次输入start-dfs.sh启动hadoop,则没有报错。
转载自:http://blog.csdn.net/dianzishijian/article/details/52094569
针对这个错误,网上好多都说了java的路径设置有问题,但没有指出具体的修改方法,其实是hadoop里面hadoop-env.sh文件里面的java路径设置不对,hadoop-env.sh在hadoop/etc/hadoop目录下,具体的修改办法如下:
sudo vim hadoop/etc/hadoop/hdoop-env.sh
将语句 export JAVA_HOME=$JAVA_HOME
修改为 export JAVA_HOME=/usr/java/jdk1.8.0_101
保存后退出。
再次输入start-dfs.sh启动hadoop,则没有报错。
转载自:http://blog.csdn.net/dianzishijian/article/details/52094569
相关文章推荐
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- ubuntu 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 执行 start-dfs.sh Error: JAVA_HOME is not set and could not be found
- CentOS hadoop启动错误 JAVA_HOME is not set and could not be found
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- hadoop start-dfs.sh Error: JAVA_HOME is not set and could not be found
- 【解决办法】Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found.
- Hadoop 2.7 伪分布式安装配置 Error: JAVA_HOME is not set and could not be found.
- hadoop2 JAVA_HOME is not set and could not be found
- CentOS hadoop启动错误 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解决办法
- Ubuntu14.0 下Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- hadoop Error: JAVA_HOME is not set and could not be found.
- Hadoop2.7启动报Error: JAVA_HOME is not set and could not be found解决办法
- CentOS hadoop启动错误 JAVA_HOME is not set and could not be found
- hadoop 启动 JAVA_HOME is not set and could not be found