hadoop:/bin/bash: /bin/java: No such file or directory
程序员文章站
2024-01-21 15:45:58
...
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
to
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.
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.
上一篇: Memcached之PHP调用
下一篇: IE Firefox 一些组件的特殊处理
推荐阅读
-
hadoop:/bin/bash: /bin/java: No such file or directory
-
bash: /usr/bin/autocrorder: /usr/bin/python^M: bad interpreter: No such file or directory
-
-bash: /home/java/jdk1.8.0_221/bin/java: 权限不够
-
【openWRT】编译问题/usr/bin/env: node: No such file or directory
-
【/usr/bin/env: node: No such file or directory】 的解决办法
-
Python Error: /usr/bin/env: python3: No such file or directory
-
报错:/usr/bin/env: php: No such file or directory
-
- bash: /usr/bin/ls: /lib64/ld-linux-x86-64.so.2: bad ELF interpreter: No such file or directory
-
bash: ./a.sh: /bin/bash^M: bad interpreter: No such file or directory的解决方法
-
CUDA 问题解决 —nvcc -V bash: /usr/bin/nvcc: No such file or directory