bin/start-hbase.sh : No such file or directory,...

原创
2012/04/18 15:10
阅读数 5.8K

Today i installed a new ubuntu 11.10 in VMWare, however, i'm not lucky this time, normally run the shell, get the failure, no any clues. I'm stuck here, why it happens, the command is there, weird!

--------------------------------------

zhuji06@ubuntu :~/hbase-0.92.1$ bin/start-hbase.sh
: No such file or directory
---------------------------------------------------

zhuji06@ubuntu :~/hbase-0.92.1$ bash -x bin/start-hbase.sh

+ $'\r'
bin/start-hbase.sh: line 22: $'\r': command not found
+ $'\r'
bin/start-hbase.sh: line 24: $'\r': command not found
' usage='Usage: start-hbase.sh
+ $'\r'
bin/start-hbase.sh: line 28: $'\r': command not found
++ dirname bin/start-hbase.sh
+ bin=$'bin\r'
++ cd $'bin\r'
: No such file or directory: cd: bin
++ pwd
+ bin=$'/home/zhuji06/hbase-0.92.1\r'
+ $'\r'
bin/start-hbase.sh: line 31: $'\r': command not found
+ . $'/home/zhuji06/hbase-0.92.1\r/hbase-config.sh\r'
: No such file or directory: /home/zhuji06/hbase-0.92.1
+ $'\r'
bin/start-hbase.sh: line 33: $'\r': command not found
+ errCode=$'127\r'
bin/start-hbase.sh: line 55: syntax error: unexpected end of file

展开阅读全文
打赏
0
0 收藏
分享
加载中
woodo博主
Found the root cause and solution:
I use the tool 'dos2unix' to convert file, and that file works, then there are other files not working. Finally I found the root cause and solution. I print here to the guys who has this issue as well.

The root cause is the HBase package unpackaged by winzip on windows platform, so all files of hbase is DOS format, and 'dos2unix' works.

The solution is download in linux again (mine is Unbuntu), and unpackage by linux tool, I use Archive Manager. That works well.

the issue is really hard to address, hope it helps.

2012/04/23 11:00
回复
举报
更多评论
打赏
1 评论
0 收藏
0
分享
返回顶部
顶部