Stack trace: ExitCodeException exitCode=127

In HADOOP_HOME/libexec/hadoop-config.sh look for the if condition below # Attempt to set JAVA_HOME if it is not set

Remove extra parentheses in the export JAVA_HOME lines as below. Change this

if [ -x /usr/libexec/java_home ]; then
    export JAVA_HOME=($(/usr/libexec/java_home))
else
    export JAVA_HOME=(/Library/Java/Home)
fi

to

if [ -x /usr/libexec/java_home ]; then
    // note that the extra parentheses are removed
    export JAVA_HOME=$(/usr/libexec/java_home)
else
    export JAVA_HOME=/Library/Java/Home
fi

Restart yarn after you have made this change.

More detailed info can be found here https://issues.apache.org/jira/browse/HADOOP-8717 and seems that Hadoop 3.0.0-alpha1 is the first release with the fix.

相关文章:

  • 2021-11-25
  • 2022-12-23
  • 2022-02-09
  • 2022-12-23
  • 2021-05-20
  • 2022-01-05
猜你喜欢
  • 2021-12-19
  • 2022-12-23
  • 2021-08-06
  • 2021-12-08
  • 2022-02-17
  • 2021-06-26
  • 2022-12-23
相关资源
相似解决方案