我已经通过google尝试了所有可能的解决方案,但是仍然不起作用,我没有从hadoop-env.sh和bin/java这样的目录中得到什么命令not found error,
这里是hadoop-env.sh
导出java\u home=/cygdrive/c/java/jre6
导出java\u home=c:/java/jre6
下面是我的错误
-bash-4.1$bin/hadoop namenode-格式
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第2行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第7行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第12行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第15行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第18行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第22行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第32行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第35行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第38行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第41行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第44行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第49行:$'\r':未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第55行:$“\r”:未找到命令
/usr/local/hadoop-1.2.1/libexec/./conf/hadoop-env.sh:第58行:$“\r”:未找到命令
/bin/java:没有这样的文件或目录
/bin/java:没有这样的文件或目录
/bin/java:无法执行:没有这样的文件或目录
1条答案
按热度按时间ozxc1zmp1#
进入环境变量,然后进入高级设置进入用户变量和设置变量java\u home和那里的值c:\java\sunjdk6.0.24,然后进入路径并设置cygwin路径c:\cygwin\bin;c:\cygwin\usr\bin地址
如果还没完成,就做吧,如果你仍然面临这个问题,那么请查看在windows上安装hadoop的链接,并按照每个步骤进行操作。