Linux Mint上的Hadoop HBase脚本给出了奇怪的错误

时间:2012-11-12 07:04:37

标签: shell ubuntu hadoop hbase mint

我已经在我的Mint(类Ubuntu)虚拟机上安装了Hadoop和Pig。运行脚本时,我不断收到奇怪的错误消息。事实上,当我运行hadoop命令时,我也会收到错误,但至少它会起作用,但是对于HBase,它只是失败了。

例如,运行sh hadoop -rmr /home/myoutput我得到:

hadoop: 102: [: fs: unexpected operator
Deleted hdfs://localhost/home/myoutput

当我运行start-hbase时,它就会正常运行。

当我运行sh hbase shell时,我得到:

hbase: 163: hbase: [[: not found

hbase: 163: hbase: [[: not found

hbase: 197: hbase: Syntax error: "(" unexpected

These lines in the hbase script are:

163: if [[ $f = *sources.jar ]]

197: function append_path() {

我错过了什么?

1 个答案:

答案 0 :(得分:0)

Mint不仅仅是ubuntu,它实际上是在ubuntu上构建的,所以你应该能够很容易地找到答案。 另外,我的建议是用ubuntu标记这个问题,而不是薄荷。