安装hadoop时出错,打击模式下运行wordcount时出现这种问题,是哪里出错?应该如何解决?
bin/hadoop: line 258: \cygdrive\c\Program: command not found
bin/hadoop: line 289: \cygdrive\c\Program Files\Java\jdk1.7.0_07/bin/java: No such file or directory
bin/hadoop: line 289: exec: \cygdrive\c\Program Files\Java\jdk1.7.0_07/bin/java: cannot execute: No such file or directory
识别不了你hadoop-env.sh里的java_home路径,里面有空格program files
你可以找哪铅改睁个目录设置一个软链李歼好接,比如说
ln -s "C:\Program Files\Java\jdk1.7.0_07" /usr/local/
然后将hadoop-env.sh里的java_home改成export java_home=/usr/local/jdk1.7.0_07
就可以了
估计你是把悄蠢linux的java和姿团windows的java搞混了,windows的java后缀是.exe的迹运橘,linux的就只是java
jdk下载的不适合你系统? 可能是你系统是32的你用得jdk是64位的