Hello Soham, Have you set the path in hadoop-env.sh for java? set the java path over there export JAVA_HOME=/usr/lib/jvm/java-6-openjdk
RegardsYogesh Kumar > Date: Tue, 19 Jun 2012 13:34:42 +0530 > Subject: namenode startup problem .. > From: [email protected] > To: [email protected] > > 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 ???
