我已经使用以下链接配置了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
我不明白从哪里开始调试。
最佳答案
该错误是由于文件使用CRLF终止而不是预期的LF引起的。
使用d2u start-hbase.sh
进行更改。 d2u
是dos2unix
包的一部分