Shell Linux Mint上的Hadoop HBase脚本出现奇怪的错误
我已经在我的Mint(类似Ubuntu)虚拟机上安装了Hadoop和Pig。我在运行脚本时不断收到奇怪的错误消息。事实上,当我运行hadoop命令时,我也会遇到错误,但至少它是有效的,但对于HBase,它只是失败了 例如,运行Shell Linux Mint上的Hadoop HBase脚本出现奇怪的错误,shell,ubuntu,hadoop,hbase,linux-mint,Shell,Ubuntu,Hadoop,Hbase,Linux Mint,我已经在我的Mint(类似Ubuntu)虚拟机上安装了Hadoop和Pig。我在运行脚本时不断收到奇怪的错误消息。事实上,当我运行hadoop命令时,我也会遇到错误,但至少它是有效的,但对于HBase,它只是失败了 例如,运行sh hadoop-rmr/home/myoutputI得到: hadoop: 102: [: fs: unexpected operator Deleted hdfs://localhost/home/myoutput hbase: 163: hbase: [[: not
sh hadoop-rmr/home/myoutput
I得到:
hadoop: 102: [: fs: unexpected operator
Deleted hdfs://localhost/home/myoutput
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() {
我遗漏了什么?Mint不仅仅像ubuntu一样,它实际上是基于ubuntu构建的,所以你应该能够很容易地找到答案。
另外,我建议你在这个问题上加上ubuntu,而不是mint。我自己解决了!我将脚本改为:“函数append_path(){”,它只是:“append_path(){”,并且它可以工作!