hadoop start-dfs.sh Error: JAVA_HOME is not set and could not be found
来源:互联网 发布:python 网管snmp 编辑:程序博客网 时间:2024/05/21 17:19
# sbin/start-dfs.sh 报错如下
[hadoop@vm7 hadoop-2.7.1]$ sbin/start-dfs.shStarting namenodes on [localhost]localhost: Error: JAVA_HOME is not set and could not be found.localhost: Error: JAVA_HOME is not set and could not be found.
解决:
# vim /home/hadoop/.bashrc 添加如下内容
export JAVA_HOME=/usr/local/jdk1.7.0_65export PATH=$PATH:$JAVA_HOME/binexport HADOOP_PREFIX=/home/hadoop/hadoop-2.7.1
再次启动
# sbin/start-dfs.sh
[hadoop@vm7 hadoop-2.7.1]$ sbin/start-dfs.sh Starting namenodes on [localhost]localhost: starting namenode, logging to /home/hadoop/hadoop-2.7.1/logs/hadoop-hadoop-namenode-vm7.0.outlocalhost: starting datanode, logging to /home/hadoop/hadoop-2.7.1/logs/hadoop-hadoop-datanode-vm7.0.outStarting secondary namenodes [0.0.0.0]0.0.0.0: starting secondarynamenode, logging to /home/hadoop/hadoop-2.7.1/logs/hadoop-hadoop-secondarynamenode-vm7.0.out
ok!
0 0
- hadoop start-dfs.sh Error: JAVA_HOME is not set and could not be found
- Hadoop 执行 start-dfs.sh Error: JAVA_HOME is not set and could not be found
- start-all.sh JAVA_HOME is not set and could not be found
- Error:JAVA_HOME is not set and could not be found
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop 2.7 伪分布式安装配置 Error: JAVA_HOME is not set and could not be found.
- ubuntu Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- Hadoop启动报Error: JAVA_HOME is not set and could not be found解决办法
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- 启动hadoop,报错Error JAVA_HOME is not set and could not be found
- Error: JAVA_HOME is not set and could not be found 启动hadoop报错
- JAVA_HOME is not set and could not be found.
- hadoop2 JAVA_HOME is not set and could not be found
- JAVA_HOME is not set and could not be found
- C语言程序的编译和链接过程
- vimrc编写指南
- Android 的manifest解析
- HDU 4983 Goffi and GCD(数列、欧拉函数)
- oracle中的wmsys.wm_concat()函数
- hadoop start-dfs.sh Error: JAVA_HOME is not set and could not be found
- 安装ecshop 常见的 Strict Standards: array_shift()和Deprecated: preg_replace():
- 高并发计算服务器数量
- C语言——计算文件大小(一)
- android.content.res.Resources$NotFoundException:+String+resource+ID+#0x1
- TortoiseGit安装和使用的图文教程
- 指针的引用(*&)
- 【AJAX】——XMLHttpRequest对象的使用
- Java--类