hadoop运行提示JAVA_HOME is not set and could not be found
来源:互联网 发布:直播录播软件 编辑:程序博客网 时间:2024/06/03 07:23
很多人按照网上的各类教程搭建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
阅读全文
0 0
- hadoop运行提示JAVA_HOME is not set and could not be found
- JAVA_HOME is not set and could not be found.
- hadoop2 JAVA_HOME is not set and could not be found
- JAVA_HOME is not set and could not be found
- Error:JAVA_HOME is not set and could not be found
- CentOS hadoop启动错误 JAVA_HOME is not set and could not be found
- CentOS hadoop启动错误 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启动报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.
- ubuntu 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启动错误 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解决办法
- padding+margin 样式
- 实验1.5
- Java8-Stream-No.04
- hadoop学习(day01)-环境搭建
- 测试我的新博客
- hadoop运行提示JAVA_HOME is not set and could not be found
- Java8-Stream-No.05
- Apache每隔一段时间就死掉,假死,装死,不要脸的死,只能重启正常
- 定时打包每天的日志
- ViewPager引导页
- String Date Calendar之间的转换
- Java8-Stream-No.06
- springMVC项目中JSP页面不显示图片
- ubuntu14.04安装Pytorch 和 torchvision