我曾尝试使用下面的链接配置的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
包的一部分