Hadoop在执行start-dfs.sh 命令出现 Error:JAVA_HOME is not set and could not be found 解决般的法

原创 2018年04月15日 12:25:31

Hadoop在执行start-dfs.sh 命令出现,“Error:JAVA_HOME is not set and could not be found ”这一错误提出解决办法。

网上好多都说了java的路径设置有问题,其实是hadoop里面hadoop-env.sh文件里面的java路径设置不对,没有获得etc/profile中的JAVA_HOEM变量,hadoop-env.sh在hadoop/etc/hadoop目录下,具体的修改办法如下:

vi  hadoop/etc/hadoop/hdoop-env.sh

将语句      export JAVA_HOME=$JAVA_HOME     

修改为      export JAVA_HOME=/usr/java/jdk1.8.0_101

保存后退出。

再次输入start-dfs.sh启动hadoop。

Error:JAVA_HOME is not set and could not be found 解决般的法

很多人按照网上的各类教程搭建hadoop,但经常在安装好了后,启动hadoop时出现各类的错误,本文就“Error:JAVA_HOME is not set and could not be foun...
  • dianzishijian
  • dianzishijian
  • 2016-08-02 15:43:37
  • 10878

Ubuntu14.0 下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/etc/had...
  • u283056051
  • u283056051
  • 2015-05-05 14:22:53
  • 2203

【解决办法】Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found.

Hadoop安装完后,启动时报Error: JAVA_HOME is not set and could not be found.解决办法: 修改/etc/hadoop/hadoo...
  • u013310025
  • u013310025
  • 2017-02-06 14:23:34
  • 357

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. 解决办法:         修改/etc/hadoop/had...
  • shengmingqijiquan
  • shengmingqijiquan
  • 2016-09-22 21:49:17
  • 2776

Hadoop2.7启动报Error: JAVA_HOME is not set and could not be found解决办法

好久没摸hadoop了,至从上次ubuntu系统挂了以后就一直没什么时间来弄hadoop。今天开始装hadoop2.7,启动时报Error: JAVA_HOME is not set and coul...
  • znb769525443
  • znb769525443
  • 2015-08-25 12:59:03
  • 2416

hadoop2 JAVA_HOME is not set and could not be found

启动yarn的报错JAVA_HOME not set的处理办法 问题: JAVA_HOME is not set 解决办法: yarn-env.sh  中添加: export JAVA_HOME=/...
  • lxpbs8851
  • lxpbs8851
  • 2015-04-23 18:25:35
  • 5687

Hadoop 2.7 伪分布式安装配置 Error: JAVA_HOME is not set and could not be found.

我是阅读这篇文章进行安装的,讲得详细,好上手: http://www.powerxing.com/install-hadoop/问题: 如果你明明安装配置了 JAVA_HOME 却还是报错 如果...
  • stuShan
  • stuShan
  • 2016-05-09 22:44:35
  • 1479

CentOS hadoop启动错误 JAVA_HOME is not set and could not be found

... Starting namenodes on [] localhost: Error: JAVA_HOME is not set and could not be found. localho...
  • hanhuili
  • hanhuili
  • 2013-09-09 16:36:27
  • 24791

localhost: Error: JAVA_HOME is not set and could not be found.

localhost: Error: JAVA_HOME is not set and could not be found.
  • u013247765
  • u013247765
  • 2017-03-30 14:56:49
  • 860

执行Cloudera相关命令时出现JAVA_HOME not set

[root@impalaa init.d]# service hadoop-hdfs-namenode start Starting Hadoop namenode:[ OK ] Error: J...
  • chen517611641
  • chen517611641
  • 2014-08-30 11:25:10
  • 3722
收藏助手
不良信息举报
您举报文章:Hadoop在执行start-dfs.sh 命令出现 Error:JAVA_HOME is not set and could not be found 解决般的法
举报原因:
原因补充:

(最多只允许输入30个字)