急,windows下配置hadoop伪分布式出现的问题
系统环境JAVA_HOME配置过了,hadoop-env.sh的JAVA_HOME也配置过了为什么执行bin/start-all.sh时会出现以下情况
Administrator@PC9182-20090214 ~/hadoop183
$
starting namenode, logging to /home/Administrator/hadoop183/bin/../logs/hadoop-A
dministrator-namenode-PC9182-20090214.out
localhost: starting datanode, logging to /home/Administrator/hadoop183/bin/../lo
gs/hadoop-Administrator-datanode-PC9182-20090214.out
localhost: Error: JAVA_HOME is not set.
localhost: starting secondarynamenode, logging to /home/Administrator/hadoop183/
bin/../logs/hadoop-Administrator-secondarynamenode-PC9182-20090214.out
localhost: Error: JAVA_HOME is not set.
starting jobtracker, logging to /home/Administrator/hadoop183/bin/../logs/hadoop
-Administrator-jobtracker-PC9182-20090214.out
localhost: starting tasktracker, logging to /home/Administrator/hadoop183/bin/..
/logs/hadoop-Administrator-tasktracker-PC9182-20090214.out
localhost: Error: JAVA_HOME is not set.
[解决办法]
hadoop-env.xml中设置JAVA_HOME, 估计你是乱搞,没按文档来