无法从Windows 10的Cygwin运行HBASE

时间:2019-01-27 11:05:37

标签: windows hadoop cygwin hbase

我已经使用下面的链接配置了HBASE

https://hbase.apache.org/0.94/cygwin.html

我已成功配置但无法运行HBase,并且显示的错误没有意义。

$ ./start-hbase.sh
./start-hbase.sh: line 20: $'\r': command not found
./start-hbase.sh: line 22: $'\r': command not found
./start-hbase.sh: line 28: $'\r': command not found
./start-hbase.sh: line 30: cd: $'.\r': No such file or directory
./start-hbase.sh: line 31: $'\r': command not found
./start-hbase.sh: line 35: $'\r': command not found
: No such file or directory/usr/local/hbase/bin
./start-hbase.sh: line 37: $'\r': command not found
./start-hbase.sh: line 66: syntax error: unexpected end of file

我不知道从哪里开始调试。

1 个答案:

答案 0 :(得分:3)

该错误是由文件使用CRLF终止而不是预期的LF引起的。

使用d2u start-hbase.sh进行更改。 d2udos2unix软件包

的一部分