参考:
https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-common/SingleCluster.html#Standalone_Operation
如果你在运行一些命令时出现如下错误:
localhost: Error: JAVA_HOME is not set and could not be found.
解决办法:
vi etc/hadoop/hadoop-env.sh
加上JAVA_HOME
参考:
https://hadoop.apache.org/docs/r2.6.0/hadoop-project-dist/hadoop-common/SingleCluster.html#Standalone_Operation
如果你在运行一些命令时出现如下错误:
localhost: Error: JAVA_HOME is not set and could not be found.
解决办法:
vi etc/hadoop/hadoop-env.sh
加上JAVA_HOME