cygwin 的$ bin/start-all.sh 有问题啊,求解,我在conf/hadoop-env.sh中设了JAVA_HOME变量。
$bin/start-all.shstartingnamenode,loggingto/home/WPS/hadoop/bin/../logs/hadoop-WPS-na...
$ bin/start-all.sh
starting namenode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-namenode-WPS-PC.out
localhost: starting datanode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-datanode-WPS-PC.out
localhost: starting secondarynamenode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-secondarynamenode-WPS-PC.out
localhost: Error: JAVA_HOME is not set.
starting jobtracker, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-jobtracker-WPS-PC.out
localhost: starting tasktracker, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-tasktracker-WPS-PC.out
localhost: Error: JAVA_HOME is not set. 展开
starting namenode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-namenode-WPS-PC.out
localhost: starting datanode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-datanode-WPS-PC.out
localhost: starting secondarynamenode, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-secondarynamenode-WPS-PC.out
localhost: Error: JAVA_HOME is not set.
starting jobtracker, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-jobtracker-WPS-PC.out
localhost: starting tasktracker, logging to /home/WPS/hadoop/bin/../logs/hadoop-WPS-tasktracker-WPS-PC.out
localhost: Error: JAVA_HOME is not set. 展开
展开全部
export 一下java_home吧,可能ssh脚本里面有些命令在新的shell里运行
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
那你在命令行输入java -version有显示java 版本吗?
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
展开全部
有
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询