hadoop-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Anand Murali <anand_vi...@yahoo.com.INVALID>
Subject Unable to start Dameons even after setting Java_home
Date Sun, 08 May 2016 07:18:30 GMT
Dear All:
Please advise after viewing carefully below
1. Altered .profile after ssh local host and included 
    export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91/
2. Into cd/etc/hadoop, and added following entries in hadoop-env.sh
     export JAVA_HOME=/usr/lib/jvm/jdk1.8.0_91
      export HADOOP_INSTALL=/home/anand/hadoop-2.6.0
3. $. hadoop-env.sh
4.hadoop version
nand@anand-Latitude-E5540:~/hadoop-2.6.0/etc/hadoop$ hadoop version
Hadoop 2.6.0
Subversion https://git-wip-us.apache.org/repos/asf/hadoop.git -r e3496499ecb8d220fba99dc5ed4c99c8f9e33bb1
Compiled by jenkins on 2014-11-13T21:10Z
Compiled with protoc 2.5.0
>From source with checksum 18e43357c8f927c0695f1e9522859d6a
This command was run using /home/anand/hadoop-2.6.0/share/hadoop/common/hadoop-common-2.6.0.jar

5. anand@anand-Latitude-E5540:~/hadoop-2.6.0/sbin$ start-dfs.sh --config /home/anand/hadoop-2.6.0/sbin
Starting namenodes on [localhost]
localhost: Error: JAVA_HOME is not set and could not be found.
cat: /home/anand/hadoop-2.6.0/sbin/slaves: No such file or directory
Starting secondary namenodes [] Error: JAVA_HOME is not set and could not be found.

I have installed latest JDK as above. Removed all old versions of JDK, gone thru all update-alternative
sequences but still get this error. Shall be thankful if somebody can help.
 Anand Murali  

View raw message