hadoop no such file or directory问题

在使用cygwin装完hadoop后,输入命令

./hadoop version

出现如下错误

./hadoop:line 297:c:\java\jdk1.6.0_05\bin/bin/java:No such file or directory

./hadoop:line 345:c:\Java\jdk1.6.0_05\bin/bin/java:No such file or directory

./hadoop:line 345:exec:c:\java\jdk1.6.0_05\bin/bin/java:cannot execute:No such file or directory


查资料说是配置出了问题,重新查看配置发现hadoop-env.sh文件java_home为

# The java implementation to use. Required. 
export JAVA_HOME=C:\\Java\\jdk1.6.0_05\\bin

修改为如下

# The java implementation to use. Required. 
export JAVA_HOME=C:\\Java\\jdk1.6.0_05
重新启动hadoop,命令为

./start-all.sh
输入

./hadoop version

输出为:

Hadoop 0.20.203.0

Subversion http://svn.apache.org/repos/asf/hadoop/common/branches/branch-0.20-security-203 -r 1099333

Compiled by oom on Wed May 4 07:57:50 PDT 2011





阅读更多
换一批

没有更多推荐了,返回首页