无法从 Windows 10 从 Cygwin 运行 HBASE
Unable to run HBASE from Cygwin from Windows 10
我已经使用下面的 link
配置了 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
包
的一部分
我已经使用下面的 link
配置了 HBASEhttps://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
包