我正在尝试运行YARN,但运行YARN-config.sh会出现以下错误。我该怎么修?它与我使用的外壳类型有关吗?
sh libexec/yarn-config.sh
libexec/yarn-config.sh: 82: /opt/hadoop/2.5.1/libexec/../libexec/hadoop-config.sh: Syntax error: word unexpected (expecting ")")
问题出在shell上。使用bash解决了问题:
bash libexec/yarn-config.sh