I am using open jdk 6 and my java home is set as

soham@XPS-L501X:~$ echo $JAVA_HOME
/usr/lib/jvm/java-6-openjdk

And the error i am getting during starting the nodes is

hduser@XPS-L501X:/home/soham/cloudera/hadoop-2.0.0-cdh4.0.0/sbin$
./start-all.sh

This script is Deprecated. Instead use start-dfs.sh and start-yarn.sh
Starting 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.
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Error: JAVA_HOME is not set and could not be found.
starting yarn daemons
starting resourcemanager, logging to
/home/soham/cloudera/hadoop-2.0.0-cdh4.0.0/logs/yarn-hduser-resourcemanager-XPS-L501X.out
localhost: Error: JAVA_HOME is not set and could not be found.

hduser@XPS-L501X:/home/soham/cloudera/hadoop-2.0.0-cdh4.0.0/sbin$
./start-dfs.sh
Starting 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.
Starting secondary namenodes [0.0.0.0]
0.0.0.0: Error: JAVA_HOME is not set and could not be found.


Now the question i would like to ask is
Is these errors due to the Openjdk ??\
Should I have to shift to Sunjdk rather than open jdk ???

Reply via email to