当我执行以下命令时:
Anands @ Tx-D-AnandS /usr/local/hadoop-1.1.2
$ bin / hadoop version
我收到以下错误:
cygwin warning:
MS-DOS style path detected: C:\Program_Files\Java\jre6\x0D/bin/java
Preferred POSIX equivalent is: /cygdrive/c/Program_Files/Java/jre6\x0D/bin/java
CYGWIN environment variable option "nodosfilewarning" turns off this warning.
Consult the user's guide for more details about POSIX paths:
http://cygwin.com/cygwin-ug-net/using.html#using-pathnames
/bin/java: No such file or directoryes\Java\jre6
/bin/java: No such file or directoryes\Java\jre6
/bin/java: cannot execute: No such file or directorye6
任何人都可以帮我吗?任何帮助表示赞赏!
答案 0 :(得分:1)
为java设置系统环境变量
还在hadoop-evn.sh文件中设置export JAVA_HOME=c:/Program_Files/Java/jre6
。