使用cygwin安装Hadoop:无法执行start-dfs.sh脚本

时间:2013-12-15 09:09:47

标签: hadoop mapreduce cygwin

我正在尝试使用cygwin在Windows 8桌面上安装hadoop-2.0.0-cdh4.3.0群集。 我在尝试运行命令./sbin/start-dfs.sh时遇到了一些错误 堆栈跟踪是 -

$ ./sbin/start-dfs.sh
cygpath: can't convert empty path
which: no hdfs in (./C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin)
dirname: missing operand
Try `dirname --help' for more information.
C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin/hdfs: line 24: /usr/local/hadoop                                                                                                                -2.0.0-cdh4.3.0/../libexec/hdfs-config.sh: No such file or directory
cygpath: can't convert empty path
C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin/hdfs: line 172: exec: : not foun                                                                                                                d
Starting namenodes on []
cygpath: can't convert empty path
cygpath: can't convert empty path
localhost: bash: line 0: cd: C:cygwin64usrlocalhadoop-2.0.0-cdh4.3.0: No such fi                                                                                                                le or directory
localhost: Error: JAVA_HOME is not set and could not be found.
cygpath: can't convert empty path
cygpath: can't convert empty path
localhost: bash: line 0: cd: C:cygwin64usrlocalhadoop-2.0.0-cdh4.3.0: No such fi                                                                                                                le or directory
localhost: Error: JAVA_HOME is not set and could not be found.
which: no hdfs in (./C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin)
dirname: missing operand
Try `dirname --help' for more information.
C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin/hdfs: line 24: /usr/local/hadoop                                                                                                                -2.0.0-cdh4.3.0/../libexec/hdfs-config.sh: No such file or directory
cygpath: can't convert empty path
C:\cygwin64\usr\local\hadoop-2.0.0-cdh4.3.0/bin/hdfs: line 172: exec: : not foun                                                                                                                d

请建议解决方案

0 个答案:

没有答案