`
XMaster
  • 浏览: 37842 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

hadoop:/bin/bash: /bin/java: No such file or directory

阅读更多
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.


分享到:
评论

相关推荐

    解决-BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: 权限不够问题

    在使用Linux系统时,有时会遇到执行特定程序时出现“权限不够”的错误,例如在尝试运行Java可执行文件时,可能会遇到"BASH: /HOME/JAVA/JDK1.8.0_221/BIN/JAVA: 权限不够"这样的提示。这个错误通常意味着当前用户...

    hadoop单机配置方法

    Hadoop的运行依赖于Java环境,因此首先需要确保Java已正确安装在系统上。以下是在Ubuntu系统中安装Sun Java JDK的步骤: 1. **添加Java仓库** 使用`sudo add-apt-repository "deb ...

    hadoop/bin/hadoop.dll

    标题中的"hadoop/bin/hadoop.dll"指出这是一款与Hadoop框架相关的动态链接库(DLL)文件,它位于Hadoop安装目录的"bin"子目录下。在Windows操作系统中,DLL文件是程序运行所必需的组件,它们包含了可执行文件在运行...

    在配置SSH免密登录时报错:/usr/bin/ssh-copy-id: ERROR: failed to open ID file ‘/root/.pub’: 没有那个文件或目录

    /usr/bin/ssh-copy-id: ERROR: failed to open ID file '/root/.pub': 没有那个文件或目录 (to install the contents of '/root/.pub' anyway, look at the -f option) 解决方法 [root@hadoop1 sbin]# ssh-keygen ...

    Hive Beeline连接报错:Could not open client transport with JDBC Uri: jdbc:hive2://hcmaster:10000/default

    ```bash beeline -u "jdbc:hive2://hcmaster:10000/default" ``` 如果配置正确,你应该能够成功连接到Hive Server2并开始执行HQL查询。 总结起来,解决"Could not open client transport with JDBC Uri: jdbc:hive...

    hadoop2.8 window支持bin文件

    `HADOOP_HOME`指向你的Hadoop安装目录,`PATH`中添加`%HADOOP_HOME%\bin`,确保能直接运行bin目录下的命令,`JAVA_HOME`则是指向Java运行环境的路径,因为Hadoop是基于Java开发的。 对于Hadoop的本地模式(Local ...

    【CDH部署】全网最简单CDH6.2.0环境部署

    下载链接 ...主机规划 sparkproject1 manager 8G 50GB sparkproject2 agent 4G 50GB sparkproject3 agent 4G 50GB 1. 设置IP, hostname, hosts, ssh免密登录 可参考Hadoop中linux基本配置...【Hadoop部署】Hadoop环境部署1

    win安装部署hadoop3.0.0并启动上传文件到HDFS(博文相关代码)

    - 打开`hadoop/etc/hadoop`目录下的`hadoop-env.sh`(在Windows上可能是`hadoop-env.cmd`),设置`JAVA_HOME`指向你的JDK安装路径。 - 修改`core-site.xml`,配置HDFS的默认FS(默认文件系统)和通信缓冲区大小,...

    HDFS上传文件报错org.apache.hadoop.fs.ChecksumException: Checksum error: file:/hyk/data/hyk.txt

    当从本地上传文件到HDFS中...org.apache.hadoop.fs.ChecksumException: Checksum error: file:/hyk/data/hyk.txt [root@node01 data]# hadoop fs -put hyk.txt /hyk/test 20/02/18 12:54:39 INFO fs.FSInputChecker: Fo

    hadoop安装包下载地址

    Hadoop的官方下载地址为:[http://archive.apache.org/dist/hadoop/core/](http://archive.apache.org/dist/hadoop/core/)。这个页面提供了Hadoop的历史版本存档,用户可以根据需求选择不同版本进行下载。 为了提高...

    hadoop/bin/winutils.exe

    1. **身份验证**:在Hadoop的HDFS(Hadoop Distributed File System)中,`winutils.exe`负责执行用户身份验证,通过Hadoop的安全模型确保数据访问的安全性。 2. **文件系统操作**:在Windows环境下,`winutils.exe...

    hadoop权威指南.示例代码

    Example code for "Hadoop: The Definitive Guide, Third Edition" by Tom White. Copyright (C) 2011 Tom White, 978-1-449-31152-0 http://www.hadoopbook.com/ http://oreilly.com/catalog/9781449311520/ The ...

    Data Analytics with Hadoop: An Introduction for Data Scientists

    operations, or software development usually associated with distributed computing, you’ll focus on particular analyses you can build, the data warehousing techniques that Hadoop provides, and higher...

    hadoop安装文档

    useradd -d /home/hadoop/ -g hadoop -m -s /bin/bash ``` - **解压并配置Hadoop**: ```bash tar zxvf hadoop-0.20.203.0rc1.tar.gz mv hadoop-0.20.203.0rc1 /opt/hadoop ln -s /opt/hadoop hadoop ``` -...

    数据算法:Hadoop/Spark大数据处理技巧

    数据算法:Hadoop/Spark大数据处理技巧

    zookeeper+hadoop+hbase+hive(集成hbase)安装部署教程(超详细).docx

    mysql5.7.38、mysql jdbc驱动mysql-connector-java-8.0.8-dmr-bin.jar、 apache-hive-3.1.3 2.本文软件均安装在自建的目录/export/server/下 :sudo mkdir -p /export/server 创建好目录后要改变该目录的属主和属...

    hadoop配置

    export JAVA_HOME=/home/hadoop/hadoopinstall/jdk1.7.0 export JRE_HOME=/home/hadoop/hadoopinstall/jdk1.7.0/jre export CLASSPATH=.:$JAVA_HOME/lib:$JRE_HOME/lib:$CLASSPATH export PATH=$JAVA_HOME/bin:$...

    hadoop3\bin

    标题 "hadoop3\bin" 指向的是Hadoop 3版本的二进制工具目录,这个目录包含了运行Hadoop分布式文件系统(HDFS)和YARN(Yet Another Resource Negotiator)等核心服务所需的命令行脚本。描述中提到的操作是针对...

Global site tag (gtag.js) - Google Analytics