bin/hadoop版本在cygwin[windows7]中抛出错误

z31licg0  于 2021-06-03  发布在  Hadoop
关注(0)|答案(1)|浏览(307)

当我执行以下命令时:
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

有人能帮我吗?感谢您的帮助!

irtuqstp

irtuqstp1#

为java设置系统环境变量
同时设置 export JAVA_HOME=c:/Program_Files/Java/jre6 在hadoop-evn.sh文件中。

相关问题