无法从Cygwin的从Windows 10运行HBASE

问题描述 投票:0回答:1

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

我无法了解从哪里开始调试。

windows hadoop cygwin hbase
1个回答
3
投票

该错误是由文件使用CRLF终止,而不是预期的LF造成的。

使用d2u start-hbase.sh去改变它。 d2udos2unix包的一部分

© www.soinside.com 2019 - 2024. All rights reserved.