hadoop-mapreduce-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Arun C Murthy <...@hortonworks.com>
Subject Re: ResourceManager not getting started in 0.23
Date Wed, 21 Dec 2011 17:38:02 GMT
Two ways around:

# You might have a stale version of hadoop-common, apparently that should fix it.
# Upgrade to include MAPREDUCE-3588 which got committed yesterday.

Arun


On Dec 21, 2011, at 9:34 AM, Praveen Sripati wrote:

> Hi,
> 
> I am making some change to the 0.23 branch and got the latest code and
> successfully build it. Am able to start the NameNode and the DataNode, but
> when I start the ResourceManager I am getting 'ClassNotFoundException'. The
> classpath to run the ResourceManager is not getting generated properly by
> the 'sbin/yarn-daemon.sh' command. I also noticed that the modules folder
> is not getting created when the hadoop-0.23.1-SNAPSHOT.tar.gz is untarred.
> 
> Is this a bug or I missed something?
> 
> ---------------------
> 
> sbin/yarn-daemon.sh start resourcemanager
> 
> -classpath
> /home/praveensripati/Hadoop/0.23/deploy/hadoop-0.23.1-SNAPSHOT/conf/:/home/praveensripati/Hadoop/0.23/deploy/hadoop-0.23.1-SNAPSHOT/conf/:/home/praveensripati/Hadoop/0.23/deploy/hadoop-0.23.1-SNAPSHOT/conf/:/usr/lib/jvm/jdk1.6.0_27/lib/tools.jar:/usr/lib/jvm/jdk1.6.0_27/lib/tools.jar:/home/praveensripati/Hadoop/0.23/deploy/hadoop-0.23.1-SNAPSHOT/conf//rm-config/log4j.properties
> 
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager
>    at java.net.URLClassLoader$1.run(URLClassLoader.java:202)
>    at java.security.AccessController.doPrivileged(Native Method)
> 
> ---------------------
> 
> BTW, I am able to run the example Hadoop after downloading
> hadoop-0.23.0.tar.gz from Apache.
> 
> I have the following settings in .bashrc
> 
> export
> HADOOP_DEV_HOME=/home/praveensripati/Hadoop/0.23/deploy/hadoop-0.23.1-SNAPSHOT
> export HADOOP_MAPRED_HOME=$HADOOP_DEV_HOME
> export HADOOP_COMMON_HOME=$HADOOP_DEV_HOME
> export HADOOP_HDFS_HOME=$HADOOP_DEV_HOME
> export YARN_HOME=$HADOOP_DEV_HOME
> export HADOOP_CONF_DIR=$HADOOP_DEV_HOME/conf/
> export YARN_CONF_DIR=~$HADOOP_DEV_HOME/conf/
> 
> Regards,
> Praveen


Mime
View raw message