bin/start-hbase.sh : No such file or directory,...
博客专区 > woodo 的博客 > 博客详情
bin/start-hbase.sh : No such file or directory,...
woodo 发表于6年前
bin/start-hbase.sh : No such file or directory,...
  • 发表于 6年前
  • 阅读 1989
  • 收藏 0
  • 点赞 0
  • 评论 1

新睿云服务器60天免费使用,快来体验!>>>   

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

  • 打赏
  • 点赞
  • 收藏
  • 分享
共有 人打赏支持
粉丝 5
博文 52
码字总数 32118
评论 (1)
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.

×
woodo
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: