在安装Hadoop时面临shell脚本的问题

abh*_*eet 1 hadoop

我是Hadoop的新手.我想在ubuntu -12.04上安装Hadoop 2.2.0.一切都很顺利.当我执行/sbin/start-dfs.sh时,我收到以下错误消息,

start-dfs.sh: 82: /usr/local/hadoop/sbin/../libexec/hadoop-config.sh: 
Syntax error: word unexpected (expecting ")")
Run Code Online (Sandbox Code Playgroud)

我通过互联网搜索并发现了一个与之相关的JIRA问题,网址为 https://issues.apache.org/jira/browse/HADOOP-8432

在安装hadoop时是否有人遇到此问题,是否有人为我的问题找到了解决方案?

Sac*_*inJ 7

看起来你正在执行start-dfs.sh作为sh或其他一些shell而不是bash,正如Jira讨论建议的那样,在bash中执行start-dfs.sh命令,如下所示

bash /usr/sbin/start-dfs.sh
Run Code Online (Sandbox Code Playgroud)