我已经使用下面的链接配置了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
我不知道从哪里开始调试。
答案 0 :(得分:3)
该错误是由文件使用CRLF终止而不是预期的LF引起的。
使用d2u start-hbase.sh
进行更改。 d2u
是dos2unix
软件包