linux+no such file or directory
程序员文章站
2022-03-01 14:54:08
...
hadoop version
/root/hadoop/bin/hadoop: line 169: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-3.b14.el6_9.i386/bin/java: No such file or directory
成功!
/root/hadoop/bin/hadoop: line 169: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-3.b14.el6_9.i386/bin/java: No such file or directory
/root/hadoop/bin/hadoop: line 169: exec: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.161-3.b14.el6_9.i386/bin/java: cannot execute: No such file or directory
这是由于yum安装java没安装完全所致。
yum search java-1.7
看到了java-1.7.0-openjdk-devel.x86_64这个吗,当然你可以serach的是java-1.8,无所谓,你开心就好,再看后面介绍:OpenJDK Development Environment,没错,我们接下来装的就是它
yum -y install java-1.7.0-openjdk-devel.x86_64
安装之后在输入 hadoop version
Hadoop 2.9.0
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r 756ebc8394e473ac25feac05fa493f6d612e6c50
Compiled by arsuresh on 2017-11-13T23:15Z
Compiled with protoc 2.5.0
From source with checksum 0a76a9a32a5257331741f8d5932f183
This command was run using /root/hadoop/share/hadoop/common/hadoop-common-2.9.0.jar
成功!
上一篇: jQuery poshytip input输入框自动提示信息使用方法
下一篇: c++ 私有继承
推荐阅读
-
PHP file_exists问题杂谈
-
java中File类的使用方法
-
MySQL使用LOAD_FILE()函数方法总结
-
Mysql注入中的outfile、dumpfile、load_file函数详解
-
mysql报错1033 Incorrect information in file: ‘xxx.frm’问题的解决方法
-
浅谈Android Studio 3.0 工具新特性的使用 Android Profiler 、Device File Explorer
-
HTML5 File接口在web页面上使用文件下载
-
记录无法安装mysql-Invalid GPG Key from file:/etc/pki/rpm-gpg/RPM-GPG-KEY-mysql的解决办法
-
MySQL修改innodb_data_file_path参数的一些注意事项
-
Starting MySQL.Manager of pid-file quit without updating file.[FAILED]的解决方法