hadoop:/bin/bash: /bin/java: No such file or directory
2024-09-01 14:21:35
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.
最新文章
- 编译安装mysql
- MyBatis中#,$的用法区别
- AOP 底层技术比较
- Camelot_floyd&;&;DP
- 利用doScroll在IE浏览器里模仿DOMContentLoaded
- Node.js 创建第一个应用
- 【python之路7】python基本数据类型(一)
- [C#技术参考]在PictureBox 中绘图防止闪烁的办法
- 转: linux文件链接(软链接和硬链接)
- nodejs+express+mongodb简单的例子
- Docker命令之 save
- Bootstrap-CSS:概况
- 学习笔记之Redis
- OAF_OAF控件系列7 - Tree的实现(案列)
- ThreadLocal 类说明
- C#直接解析Json键值对
- 初识Trie_对Trie的一些认识
- easyui combobox 的取值问题
- C/C++中qsort()以及sort()的用法
- Codeforces 777C Alyona and Spreadsheet(思维)
热门文章
- 《ABCD组》实验十一 团队作业7:团队项目设计完善&;编码
- 28-SQLServer带见证服务器的镜像搭建
- Makefile:248: /usr/local/otp_src_18.1/make/x86_64-unknown-linux-gnu/otp_ded.mk: No such file
- 有关Django的smallDemo
- MySQL 视图 触发器 事务 存储过程 函数 流程控制 索引与慢查询优化
- Educational Codeforces Round 75 (Rated for Div. 2) A. Broken Keyboard
- 系统空闲时间 解决 GetLastInputInfo 负数问题
- PHP基础语法之 三元运算符和其它运算符
- 18.4.09 模拟考 zhx P75
- luogu P2345 奶牛集会