无法从windows 10的cygwin运行hbase

nzrxty8p  于 2021-05-31  发布在  Hadoop
关注(0)|答案(1)|浏览(325)

我已经使用下面的链接配置了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

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

frebpwbc

frebpwbc1#

该错误是由于文件使用crlf终止而不是预期的lf导致的。
使用 d2u start-hbase.sh 去改变它。 d2u 是的一部分 dos2unix 包裹

相关问题