我已经通过谷歌尝试了所有可能的解决方案,但仍然无法正常工作
这是 hadoop-env.sh
导出 JAVA_HOME=/cygdrive/c/Java/jre6
导出 JAVA_HOME=c:/Java/jre6
下面是我的错误
-bash-4.1$ bin/hadoop 名称节点 -format
/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: 无法执行: 没有这样的文件或目录