Hdoop 启动:localhost: Error: JAVA_HOME is not set and could not be found.
2017-10-15 17:33
726 查看
参考教程:
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html
其中有
Prepare to Start the Hadoop Cluster
Unpack the downloaded Hadoop distribution. In the distribution, edit
the file etc/hadoop/hadoop-env.sh to define some parameters as
follows:
Try the following command:
This will display the usage documentation for the
hadoop script.
自己不按照文档说的来,因为在shell脚本中一般$${JAVA_HOME} 或者$JAVA_HOME
都是取变量的值,然后左边又有=等号,所以就自作聪明的认为没有必要了!
关于环境相关,以后还是就按照官方的来吧。。。。
现在还有极大的可能是,JAVA_HOME没有被 export
http://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-common/SingleCluster.html
其中有
Prepare to Start the Hadoop Cluster
Unpack the downloaded Hadoop distribution. In the distribution, edit
the file etc/hadoop/hadoop-env.sh to define some parameters as
follows:
export JAVA_HOME=/usr/java/latest(原来是${JAVA_HOME},把这个改为相应的jdk真实路劲)
Try the following command:
bin/hadoop
This will display the usage documentation for the
hadoop script.
自己不按照文档说的来,因为在shell脚本中一般$${JAVA_HOME} 或者$JAVA_HOME
都是取变量的值,然后左边又有=等号,所以就自作聪明的认为没有必要了!
关于环境相关,以后还是就按照官方的来吧。。。。
现在还有极大的可能是,JAVA_HOME没有被 export
相关文章推荐
- 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解决办法
- Hadoop2.7启动报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启动报Error: JAVA_HOME is not set and could not be found解决办法
- localhost: Error: JAVA_HOME is not set and could not be found.
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- 伪分布式启动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
- hbase集群在启动的时候JAVA_HOME is not set and Java could not be found
- Hadoop 2.7 伪分布式安装配置 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
- Error:JAVA_HOME is not set and could not be found 解决般的法
- 关于Error:JAVA_HOME is not set and could not be found问题的解决方法
- 【转】Error:JAVA_HOME is not set and could not be found
- (HBase) Error: JAVA_HOME is not set and Java could not be found