当我执行以下命令时:
anands@tx-d-anands /usr/local/hadoop-1.1.2
$bin/hadoop版本
我得到以下错误:
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
有人能帮我吗?感谢您的帮助!
1条答案
按热度按时间irtuqstp1#
为java设置系统环境变量
同时设置
export JAVA_HOME=c:/Program_Files/Java/jre6
在hadoop-evn.sh文件中。