|
Haoyuan Li
2011-08-10, 20:27
Praveen Sripati
2011-08-11, 01:01
Haoyuan Li
2011-08-11, 01:15
Vinayakumar B
2011-08-11, 06:07
Vinod KV
2011-08-11, 09:01
Matei Zaharia
2011-08-11, 20:52
Mahadev Konar
2011-08-11, 21:07
Haoyuan Li
2011-08-11, 22:36
Mahadev Konar
2011-08-11, 22:47
Matei Zaharia
2011-08-11, 23:11
Haoyuan Li
2011-08-11, 23:48
Praveen Sripati
2011-08-12, 02:32
Haoyuan Li
2011-08-12, 05:31
|
-
Can't find main class when run ResourceManager or NodeManagerHaoyuan Li 2011-08-10, 20:27
Hi,
When I ran ResourceManager or NodeManager as steps here http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL . It has main class can't be found exception... I attached the shell output here. Any help will be appreciated! Thanks, Haoyuan haoyuan@hya:~/hadoop/hadoop-mapreduce-1.0-SNAPSHOT$ ./bin/yarn-daemon.sh start resourcemanager starting resourcemanager, logging to /home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs/yarn-haoyuan-resourcemanager-hya.out /usr/lib/jvm/java-6-sun/bin/java -Dproc_resourcemanager -Xmx1000m -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir-Dyarn.id.str=haoyuan -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -Dyarn.policy.file=hadoop-policy.xml -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/.. -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -classpath /home/haoyuan/hadoop/conf:/home/haoyuan/hadoop/conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/haoyuan/hadoop/trunk/common/hadoop-*.jar:/home/haoyuan/hadoop/trunk/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/hdfs/*.jar:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/hdfs/build/classes:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/build/classes:/home/haoyuan/hadoop/trunk/mapreduce/build:/home/haoyuan/hadoop/trunk/mapreduce/build/test/classes:/home/haoyuan/hadoop/trunk/mapreduce/build/tools:/home/haoyuan/hadoop/trunk/mapreduce/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/*.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aopalliance-1.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/asm-3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aspectjrt-1.6.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/clover-3.0.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-1.7.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-core-1.8.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-cli-1.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-codec-1.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-collections-3.2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-configuration-1.6.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-digester-1.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-httpclient-3.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-lang-2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-api-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-math-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-net-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/core-3.1.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guava-r09.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-servlet-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/hadoop-annotations-0.23.0-SNAPSHOT.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-core-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jdiff-1.0.9.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jets3t-0.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-util-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jsp-api-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/junit-4.8.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/kfs-0.3.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/log4j-1.2.15.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/netty-3.2.3.Final.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/oro-2.0.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-ant-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-generator-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/protobuf-java-2.4.0a.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/qdox-1.10.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/servlet-api-2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/slf4j-api-1.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/slf4j-log4j12-1.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/xmlenc-0.52.jar:/home
-
Re: Can't find main class when run ResourceManager or NodeManagerPraveen Sripati 2011-08-11, 01:01
Haoyuan,
Try the following cd $HADOOP_COMMON_HOME/lib ln -s $HADOOP_COMMON_HOME/target/hadoop-common-0.23.0-SNAPSHOT.jar For me the HADOOP_COMMON_HOME is set to /home/praveensripati/Hadoop/trunk/hadoop-common Thanks, Praveen On Thu, Aug 11, 2011 at 1:57 AM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > Hi, > > When I ran ResourceManager or NodeManager as steps here > > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > . > It has main class can't be found exception... I attached the shell output > here. Any help will be appreciated! > > Thanks, > > Haoyuan > > haoyuan@hya:~/hadoop/hadoop-mapreduce-1.0-SNAPSHOT$ ./bin/yarn-daemon.sh > start resourcemanager > starting resourcemanager, logging to > > /home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs/yarn-haoyuan-resourcemanager-hya.out > /usr/lib/jvm/java-6-sun/bin/java -Dproc_resourcemanager -Xmx1000m > > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir> -Dyarn.id.str=haoyuan -Dhadoop.root.logger=INFO,DRFA > -Dyarn.root.logger=INFO,DRFA -Dyarn.policy.file=hadoop-policy.xml > > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.home.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/.. > -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -classpath > > /home/haoyuan/hadoop/conf:/home/haoyuan/hadoop/conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/haoyuan/hadoop/trunk/common/hadoop-*.jar:/home/haoyuan/hadoop/trunk/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/hdfs/*.jar:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/hdfs/build/classes:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/build/classes:/home/haoyuan/hadoop/trunk/mapreduce/build:/home/haoyuan/hadoop/trunk/mapreduce/build/test/classes:/home/haoyuan/hadoop/trunk/mapreduce/build/tools:/home/haoyuan/hadoop/trunk/mapreduce/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/*.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aopalliance-1.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/asm-3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aspectjrt-1.6.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/clover-3.0.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-1.7.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-core-1.8.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-cli-1.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-codec-1.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-collections-3.2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-configuration-1.6.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-digester-1.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-httpclient-3.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-lang-2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-api-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-math-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-net-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/core-3.1.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guava-r09.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-servlet-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/hadoop-annotations-0.23.0-SNAPSHOT.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-core-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jdiff-1.0.9.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jets3t-0.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-util-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jsp-api-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/junit-4.8.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/kfs-0.3.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/log4j-1.2.15.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/netty-3.2.3.Final.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/oro-2.0.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-ant-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-generator-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/protobuf-java-2.4.0a.jar:/home/haoyuan/hadoop/hadoop-mapredu
-
Re: Can't find main class when run ResourceManager or NodeManagerHaoyuan Li 2011-08-11, 01:15
Thank you for your reply Praveen. I tried, but got the same error...
Best, Haoyuan On Wed, Aug 10, 2011 at 6:01 PM, Praveen Sripati <[EMAIL PROTECTED]>wrote: > Haoyuan, > > Try the following > > cd $HADOOP_COMMON_HOME/lib > ln -s $HADOOP_COMMON_HOME/target/hadoop-common-0.23.0-SNAPSHOT.jar > > For me the HADOOP_COMMON_HOME is set to > > /home/praveensripati/Hadoop/trunk/hadoop-common > > Thanks, > Praveen > > On Thu, Aug 11, 2011 at 1:57 AM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > > > Hi, > > > > When I ran ResourceManager or NodeManager as steps here > > > > > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > > . > > It has main class can't be found exception... I attached the shell output > > here. Any help will be appreciated! > > > > Thanks, > > > > Haoyuan > > > > haoyuan@hya:~/hadoop/hadoop-mapreduce-1.0-SNAPSHOT$ ./bin/yarn-daemon.sh > > start resourcemanager > > starting resourcemanager, logging to > > > > > /home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs/yarn-haoyuan-resourcemanager-hya.out > > /usr/lib/jvm/java-6-sun/bin/java -Dproc_resourcemanager -Xmx1000m > > > > > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > > > > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir> > -Dyarn.id.str=haoyuan -Dhadoop.root.logger=INFO,DRFA > > -Dyarn.root.logger=INFO,DRFA -Dyarn.policy.file=hadoop-policy.xml > > > > > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > > > > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log > > -Dyarn.home.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/.. > > -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -classpath > > > > > /home/haoyuan/hadoop/conf:/home/haoyuan/hadoop/conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/haoyuan/hadoop/trunk/common/hadoop-*.jar:/home/haoyuan/hadoop/trunk/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/hdfs/*.jar:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/hdfs/build/classes:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/build/classes:/home/haoyuan/hadoop/trunk/mapreduce/build:/home/haoyuan/hadoop/trunk/mapreduce/build/test/classes:/home/haoyuan/hadoop/trunk/mapreduce/build/tools:/home/haoyuan/hadoop/trunk/mapreduce/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/*.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aopalliance-1.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/asm-3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aspectjrt-1.6.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/clover-3.0.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-1.7.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-core-1.8.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-cli-1.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-codec-1.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-collections-3.2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-configuration-1.6.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-digester-1.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-httpclient-3.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-lang-2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-api-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-math-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-net-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/core-3.1.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guava-r09.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-servlet-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/hadoop-annotations-0.23.0-SNAPSHOT.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-core-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jdiff-1.0.9.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jets3t-0.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-util-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jsp-api-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/junit-4.8.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/kfs-0.3.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/log4j-1.2.15.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/netty-3.2.3.Final.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/oro-2.0.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-2.2.jar:/home/haoyuan/
-
RE: Can't find main class when run ResourceManager or NodeManagerVinayakumar B 2011-08-11, 06:07
Hi,
Please configure HADOOP_COMMON_HOME and HADOOP_HDFS_HOME environment variables. And then start the resource manager it will start. Reason: All the common classes will be loaded to classpath from the HADOOP_COMMON_HOME. So Configuration class is not found in the classpath. Regards, Vinayakumar B. **************************************************************************** *********** This e-mail and attachments contain confidential information from HUAWEI, which is intended only for the person or entity whose address is listed above. Any use of the information contained herein in any way (including, but not limited to, total or partial disclosure, reproduction, or dissemination) by persons other than the intended recipient's) is prohibited. If you receive this e-mail in error, please notify the sender by phone or email immediately and delete it! -----Original Message----- From: Haoyuan Li [mailto:[EMAIL PROTECTED]] Sent: Thursday, August 11, 2011 1:57 AM To: [EMAIL PROTECTED] Subject: Can't find main class when run ResourceManager or NodeManager Hi, When I ran ResourceManager or NodeManager as steps here http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INST ALL . It has main class can't be found exception... I attached the shell output here. Any help will be appreciated! Thanks, Haoyuan haoyuan@hya:~/hadoop/hadoop-mapreduce-1.0-SNAPSHOT$ ./bin/yarn-daemon.sh start resourcemanager starting resourcemanager, logging to /home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs/yarn-haoyuan- resourcemanager-hya.out /usr/lib/jvm/java-6-sun/bin/java -Dproc_resourcemanager -Xmx1000m -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../l ogs -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../log s -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir-Dyarn.id.str=haoyuan -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -Dyarn.policy.file=hadoop-policy.xml -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../l ogs -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../log s -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/.. -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -classpath /home/haoyuan/hadoop/conf:/home/haoyuan/hadoop/conf:/usr/lib/jvm/java-6-sun/ lib/tools.jar:/home/haoyuan/hadoop/trunk/common/hadoop-*.jar:/home/haoyuan/h adoop/trunk/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/ common/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/lib/*.jar :/home/haoyuan/hadoop/trunk/common/share/hadoop/hdfs/*.jar:/home/haoyuan/had oop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/ haoyuan/hadoop/trunk/hdfs/build/classes:/home/haoyuan/hadoop/trunk/hdfs/hado op-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trun k/mapreduce/build/classes:/home/haoyuan/hadoop/trunk/mapreduce/build:/home/h aoyuan/hadoop/trunk/mapreduce/build/test/classes:/home/haoyuan/hadoop/trunk/ mapreduce/build/tools:/home/haoyuan/hadoop/trunk/mapreduce/lib/*.jar:/home/h aoyuan/hadoop/trunk/mapreduce/*.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1. 0-SNAPSHOT/bin/../lib/aopalliance-1.0.jar:/home/haoyuan/hadoop/hadoop-mapred uce-1.0-SNAPSHOT/bin/../lib/asm-3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduc e-1.0-SNAPSHOT/bin/../lib/aspectjrt-1.6.5.jar:/home/haoyuan/hadoop/hadoop-ma preduce-1.0-SNAPSHOT/bin/../lib/avro-1.3.2.jar:/home/haoyuan/hadoop/hadoop-m apreduce-1.0-SNAPSHOT/bin/../lib/avro-1.4.1.jar:/home/haoyuan/hadoop/hadoop- mapreduce-1.0-SNAPSHOT/bin/../lib/clover-3.0.2.jar:/home/haoyuan/hadoop/hado op-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-1.7.0.jar:/home/haoyu an/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-core-1. 8.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/common s-cli-1.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/ commons-codec-1.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin /../lib/commons-collections-3.2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce- 1.0-SNAPSHOT/bin/../lib/commons-configuration-1.6.jar:/home/haoyuan/hadoop/h adoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-digester-1.8.jar:/home/haoyu an/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-httpclient-3.1.ja r:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-lang -2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commo ns-logging-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/ ../lib/commons-logging-api-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1 .0-SNAPSHOT/bin/../lib/commons-math-2.1.jar:/home/haoyuan/hadoop/hadoop-mapr educe-1.0-SNAPSHOT/bin/../lib/commons-net-1.4.1.jar:/home/haoyuan/hadoop/had oop-mapreduce-1.0-SNAPSHOT/bin/../lib/core-3.1.1.jar:/home/haoyuan/hadoop/ha doop-mapreduce-1.0-SNAPSHOT/bin/../lib/guava-r09.jar:/home/haoyuan/hadoop/ha doop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-2.0.jar:/home/haoyuan/hadoop/ha doop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-servlet-2.0.jar:/home/haoyuan/h adoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/hadoop-annotations-0.23.0-SNA PSHOT.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jack son-core-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bi n/../lib/jackson-mapper-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce- 1.0-SNAPSHOT/bin/../lib/jdiff-1.0.9.jar:/home/haoyuan/hadoop/hadoop-mapreduc e-1.0-SNAPSHOT/bin/../lib/jets3t-0.6.1.jar:/home/haoyuan/hadoop/hadoop-mapre duce-1.0-SNAPSHOT/bin/../lib/jetty-6.1.26.jar:/home/haoyuan/hadoop/hadoop-ma preduce-1.0-SNAPSHOT/bin/../lib/jetty-util-6.1.26.jar:/home/haoyuan/hadoop/h adoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jsp-api-2.1.jar:
-
Re: Can't find main class when run ResourceManager or NodeManagerVinod KV 2011-08-11, 09:01
Report YARN_* and HADOOP_* variables that you've set before starting the daemons. Also run 'bin/yarn classpath' and post the output of that command too. If the output doesn't contain yarn-server-resourcemanager-1.0-SNAPSHOT.jar, you are missing something. +Vinod On Thursday 11 August 2011 01:57 AM, Haoyuan Li wrote: > Hi, > > When I ran ResourceManager or NodeManager as steps here > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > . > It has main class can't be found exception... I attached the shell output > here. Any help will be appreciated! > > Thanks, > > Haoyuan > > haoyuan@hya:~/hadoop/hadoop-mapreduce-1.0-SNAPSHOT$ ./bin/yarn-daemon.sh > start resourcemanager > starting resourcemanager, logging to > /home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs/yarn-haoyuan-resourcemanager-hya.out > /usr/lib/jvm/java-6-sun/bin/java -Dproc_resourcemanager -Xmx1000m > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log -Dyarn.home.dir= > -Dyarn.id.str=haoyuan -Dhadoop.root.logger=INFO,DRFA > -Dyarn.root.logger=INFO,DRFA -Dyarn.policy.file=hadoop-policy.xml > -Dhadoop.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dyarn.log.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../logs > -Dhadoop.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.log.file=yarn-haoyuan-resourcemanager-hya.log > -Dyarn.home.dir=/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/.. > -Dhadoop.root.logger=INFO,DRFA -Dyarn.root.logger=INFO,DRFA -classpath > /home/haoyuan/hadoop/conf:/home/haoyuan/hadoop/conf:/usr/lib/jvm/java-6-sun/lib/tools.jar:/home/haoyuan/hadoop/trunk/common/hadoop-*.jar:/home/haoyuan/hadoop/trunk/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/common/lib/*.jar:/home/haoyuan/hadoop/trunk/common/share/hadoop/hdfs/*.jar:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/hdfs/build/classes:/home/haoyuan/hadoop/trunk/hdfs/hadoop-*.jar:/home/haoyuan/hadoop/trunk/hdfs/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/build/classes:/home/haoyuan/hadoop/trunk/mapreduce/build:/home/haoyuan/hadoop/trunk/mapreduce/build/test/classes:/home/haoyuan/hadoop/trunk/mapreduce/build/tools:/home/haoyuan/hadoop/trunk/mapreduce/lib/*.jar:/home/haoyuan/hadoop/trunk/mapreduce/*.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aopalliance-1.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/asm-3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/aspectjrt-1.6.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.3.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/avro-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/clover-3.0.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-1.7.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-beanutils-core-1.8.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-cli-1.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-codec-1.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-collections-3.2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-configuration-1.6.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-digester-1.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-httpclient-3.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-lang-2.5.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-logging-api-1.0.4.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-math-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/commons-net-1.4.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/core-3.1.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guava-r09.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/guice-servlet-2.0.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/hadoop-annotations-0.23.0-SNAPSHOT.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-core-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jackson-mapper-asl-1.4.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jdiff-1.0.9.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jets3t-0.6.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jetty-util-6.1.26.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/jsp-api-2.1.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/junit-4.8.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/kfs-0.3.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/log4j-1.2.15.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/netty-3.2.3.Final.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/oro-2.0.8.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-ant-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/paranamer-generator-2.2.jar:/home/haoyuan/hadoop/hadoop-mapreduce-1.0-SNAPSHOT/bin/../lib/protobuf-java-2.4.0a.jar:/home/haoyuan/hadoop/hadoo
-
Re: Can't find main class when run ResourceManager or NodeManagerMatei Zaharia 2011-08-11, 20:52
I get a similar error on Mac OS X. I've built YARN and extracted the tarball to a directory, but when I run bin/yarn-daemon.sh start nodemanager, it prints the following to its log (apologies for the long trace):
log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.impl.MetricsSystemImpl). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" org.apache.hadoop.yarn.YarnException: Failed to Start org.apache.hadoop.yarn.server.nodemanager.NodeManager at org.apache.hadoop.yarn.service.CompositeService.start(CompositeService.java:80) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.start(NodeManager.java:146) at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:191) Caused by: org.apache.avro.AvroRuntimeException: org.apache.hadoop.yarn.YarnException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.start(NodeStatusUpdaterImpl.java:140) at org.apache.hadoop.yarn.service.CompositeService.start(CompositeService.java:68) ... 2 more Caused by: org.apache.hadoop.yarn.YarnException: java.lang.reflect.InvocationTargetException at org.apache.hadoop.yarn.factories.impl.pb.RpcClientFactoryPBImpl.getClient(RpcClientFactoryPBImpl.java:70) at org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC.getProxy(HadoopYarnProtoRPC.java:35) at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.getRMClient(NodeStatusUpdaterImpl.java:158) at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.registerWithRM(NodeStatusUpdaterImpl.java:163) at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.start(NodeStatusUpdaterImpl.java:136) ... 3 more Caused by: java.lang.reflect.InvocationTargetException at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) at java.lang.reflect.Constructor.newInstance(Constructor.java:513) at org.apache.hadoop.yarn.factories.impl.pb.RpcClientFactoryPBImpl.getClient(RpcClientFactoryPBImpl.java:67) ... 7 more Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/ipc/ClientCache at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine.<clinit>(ProtoOverHadoopRpcEngine.java:63) at java.lang.Class.forName0(Native Method) at java.lang.Class.forName(Class.java:247) at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1108) at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1160) at org.apache.hadoop.ipc.RPC.getProtocolEngine(RPC.java:94) at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:422) at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:368) at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:333) at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:461) at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:442) at org.apache.hadoop.yarn.server.api.impl.pb.client.ResourceTrackerPBClientImpl.<init>(ResourceTrackerPBClientImpl.java:32) ... 12 more Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.ipc.ClientCache at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) ... 24 more In addition, if I try to start resourcemanager instead, it logs: SLF4J: Class path contains multiple SLF4J bindings. SLF4J: Found binding in [jar:file:/Users/matei/workspace/MR-279/common/build/ivy/lib/Hadoop-Common/common/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: Found binding in [jar:file:/Users/matei/workspace/MR-279-deploy/hadoop-mapreduce-1.0-SNAPSHOT/lib/slf4j-log4j12-1.6.1.jar!/org/slf4j/impl/StaticLoggerBinder.class] SLF4J: See http://www.slf4j.org/codes.html#multiple_bindings for an explanation. log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.lib.MutableMetricsFactory). log4j:WARN Please initialize the log4j system properly. log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. Exception in thread "main" java.lang.IllegalStateException: For this operation, current State must be STARTED instead of INITED at org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) at org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:493) I don't know where the multiple SLF4J versions are coming from because I checked out common, hdfs and mapreduce at the same time. Matei On Aug 11, 2011, at 2:01 AM, Vinod KV wrote:
-
Re: Can't find main class when run ResourceManager or NodeManagerMahadev Konar 2011-08-11, 21:07
Matei,
Are you sure you are using the latest common from trunk? The ClientCache was recently added within the last few weeks. Looks like its using some old version of hadoop common. Also the sl4j errors should be fixed in the latest MR-279 branch. thanks mahadev On Aug 11, 2011, at 1:52 PM, Matei Zaharia wrote: > I get a similar error on Mac OS X. I've built YARN and extracted the tarball to a directory, but when I run bin/yarn-daemon.sh start nodemanager, it prints the following to its log (apologies for the long trace): > > log4j:WARN No appenders could be found for logger (org.apache.hadoop.metrics2.impl.MetricsSystemImpl). > log4j:WARN Please initialize the log4j system properly. > log4j:WARN See http://logging.apache.org/log4j/1.2/faq.html#noconfig for more info. > Exception in thread "main" org.apache.hadoop.yarn.YarnException: Failed to Start org.apache.hadoop.yarn.server.nodemanager.NodeManager > at org.apache.hadoop.yarn.service.CompositeService.start(CompositeService.java:80) > at org.apache.hadoop.yarn.server.nodemanager.NodeManager.start(NodeManager.java:146) > at org.apache.hadoop.yarn.server.nodemanager.NodeManager.main(NodeManager.java:191) > Caused by: org.apache.avro.AvroRuntimeException: org.apache.hadoop.yarn.YarnException: java.lang.reflect.InvocationTargetException > at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.start(NodeStatusUpdaterImpl.java:140) > at org.apache.hadoop.yarn.service.CompositeService.start(CompositeService.java:68) > ... 2 more > Caused by: org.apache.hadoop.yarn.YarnException: java.lang.reflect.InvocationTargetException > at org.apache.hadoop.yarn.factories.impl.pb.RpcClientFactoryPBImpl.getClient(RpcClientFactoryPBImpl.java:70) > at org.apache.hadoop.yarn.ipc.HadoopYarnProtoRPC.getProxy(HadoopYarnProtoRPC.java:35) > at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.getRMClient(NodeStatusUpdaterImpl.java:158) > at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.registerWithRM(NodeStatusUpdaterImpl.java:163) > at org.apache.hadoop.yarn.server.nodemanager.NodeStatusUpdaterImpl.start(NodeStatusUpdaterImpl.java:136) > ... 3 more > Caused by: java.lang.reflect.InvocationTargetException > at sun.reflect.NativeConstructorAccessorImpl.newInstance0(Native Method) > at sun.reflect.NativeConstructorAccessorImpl.newInstance(NativeConstructorAccessorImpl.java:39) > at sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:27) > at java.lang.reflect.Constructor.newInstance(Constructor.java:513) > at org.apache.hadoop.yarn.factories.impl.pb.RpcClientFactoryPBImpl.getClient(RpcClientFactoryPBImpl.java:67) > ... 7 more > Caused by: java.lang.NoClassDefFoundError: org/apache/hadoop/ipc/ClientCache > at org.apache.hadoop.yarn.ipc.ProtoOverHadoopRpcEngine.<clinit>(ProtoOverHadoopRpcEngine.java:63) > at java.lang.Class.forName0(Native Method) > at java.lang.Class.forName(Class.java:247) > at org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:1108) > at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1160) > at org.apache.hadoop.ipc.RPC.getProtocolEngine(RPC.java:94) > at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:422) > at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:368) > at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:333) > at org.apache.hadoop.ipc.RPC.getProtocolProxy(RPC.java:461) > at org.apache.hadoop.ipc.RPC.getProxy(RPC.java:442) > at org.apache.hadoop.yarn.server.api.impl.pb.client.ResourceTrackerPBClientImpl.<init>(ResourceTrackerPBClientImpl.java:32) > ... 12 more > Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.ipc.ClientCache > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
-
Re: Can't find main class when run ResourceManager or NodeManagerHaoyuan Li 2011-08-11, 22:36
I downloaded the latest version: r1156719. and then redid from the scratch.
Now, the nodemanager and run well. However, I got into the same state as Matei when I tried to run ResourceManager. Any help will be appreciated. Best, Haoyuan The followings are output. ============ The output from .out log file ================Exception in thread "main" java.lang.IllegalStateException: For this operation, current State must be STARTED instead of INITED at org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) at org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) at org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) at org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423) at org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:495) ==================================================== =========== the output from .log log file ================== 2011-08-11 15:25:38,357 INFO org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Resource Manager is starting... 2011-08-11 15:25:38,878 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.scheduler.event.SchedulerEventType for class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher 2011-08-11 15:25:38,879 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppEventType for class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationEventDispatcher 2011-08-11 15:25:38,880 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptEventType for class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher 2011-08-11 15:25:38,881 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeEventType for class org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$NodeEventDispatcher 2011-08-11 15:25:38,904 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: Registering class org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncherEventType for class org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: Service:Dispatcher is inited. 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.ContainerAllocationExpirer is inited. 2011-08-11 15:25:38,935 INFO org.apache.hadoop.yarn.service.AbstractService: Service:AMLivelinessMonitor is inited. 2011-08-11 15:25:38,936 INFO org.apache.hadoop.util.HostsFileReader: Refreshing hosts (include/exclude) list 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.NodesListManager is inited. 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher is inited. 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: Service:NMLivelinessMonitor is inited. 2011-08-11 15:25:38,940 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.ResourceTrackerService is inited. 2011-08-11 15:25:38,941 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.ApplicationMasterService is inited. 2011-08-11 15:25:38,941 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.ClientRMService is inited. 2011-08-11 15:25:38,941 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.AdminService is inited. 2011-08-11 15:25:38,965 INFO org.apache.hadoop.yarn.service.AbstractService: Service:org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher is inited. 2011-08-11 15:25:38,965 INFO org.apache.hadoop.yarn.service.AbstractService: Service:ResourceManager is inited. 2011-08-11 15:25:39,057 INFO org.mortbay.log: Logging to org.slf4j.impl.Log4jLoggerAdapter(org.mortbay.log) via org.mortbay.log.Slf4jLog 2011-08-11 15:25:39,125 INFO org.apache.hadoop.http.HttpServer: Added global filter 'safety' (class=org.apache.hadoop.http.HttpServer$QuotingInputFilter) 2011-08-11 15:25:39,128 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context WepAppsContext 2011-08-11 15:25:39,128 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context static 2011-08-11 15:25:39,128 INFO org.apache.hadoop.http.HttpServer: Added filter static_user_filter (class=org.apache.hadoop.http.lib.StaticUserWebFilter$StaticUserFilter) to context logs 2011-08-11 15:25:39,131 INFO org.apache.hadoop.http.HttpServer: Added global filter 'guice' (class=com.google.inject.servlet.GuiceFilter) 2011-08-11 15:25:39,131 INFO org.apache.hadoop.http.HttpServer: Port returned by webServer.getConnectors()[0].getLocalPort() before open() is -1. Opening the listener on 8088 2011-08-11 15:25:39,136 INFO org.apache.hadoop.http.HttpServer: listener.getLocalPort() returned 8088 webServer.getConnectors()[0].getLocalPort() returned 8088 2011-08-11 15:25:39,136 INFO org.apache.hadoop.http.HttpServer: Jetty bound to port 8088 2011-08-11 15:25:39,136 INFO or
-
Re: Can't find main class when run ResourceManager or NodeManagerMahadev Konar 2011-08-11, 22:47
Haoyuan,
Thats an issue with having avro 1.3.2 jar in the classpath. Please see if you have that version of 1.3.2 jar in the classpath and remove it. We use 1.4 avro jar which isnt compatible with 1.3.2. hope that helps! mahadev On Thu, Aug 11, 2011 at 3:36 PM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > I downloaded the latest version: r1156719. and then redid from the scratch. > Now, the nodemanager and run well. However, I got into the same state as > Matei when I tried to run ResourceManager. Any help will be appreciated. > Best, > Haoyuan > The followings are output. > ============ The output from .out log file ================> Exception in thread "main" java.lang.IllegalStateException: For this > operation, current State must be STARTED instead of INITED > at > org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) > at > org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) > at > org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) > at > org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423) > at > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:495) > ====================================================> =========== the output from .log log file ==================> 2011-08-11 15:25:38,357 INFO > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Resource > Manager is starting... > 2011-08-11 15:25:38,878 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: > Registering class > org.apache.hadoop.yarn.server.resourcemanager.scheduler.event.SchedulerEventType > for class > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher > 2011-08-11 15:25:38,879 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: > Registering class > org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppEventType for class > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationEventDispatcher > 2011-08-11 15:25:38,880 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: > Registering class > org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptEventType > for class > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher > 2011-08-11 15:25:38,881 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: > Registering class > org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeEventType for > class > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$NodeEventDispatcher > 2011-08-11 15:25:38,904 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: > Registering class > org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncherEventType > for class > org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher > 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: > Service:Dispatcher is inited. > 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: > Service:org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.ContainerAllocationExpirer > is inited. > 2011-08-11 15:25:38,935 INFO org.apache.hadoop.yarn.service.AbstractService: > Service:AMLivelinessMonitor is inited. > 2011-08-11 15:25:38,936 INFO org.apache.hadoop.util.HostsFileReader: > Refreshing hosts (include/exclude) list > 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: > Service:org.apache.hadoop.yarn.server.resourcemanager.NodesListManager is > inited. > 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: > Service:org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher > is inited. > 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService:
-
Re: Can't find main class when run ResourceManager or NodeManagerMatei Zaharia 2011-08-11, 23:11
It looks like the Avro 1.3.2 JAR was included in the tar ball built in the mapreduce project. It's present in lib in the unzipped tarball. However, even if I remove it, the error still happens.
Matei On Aug 11, 2011, at 3:47 PM, Mahadev Konar wrote: > Haoyuan, > Thats an issue with having avro 1.3.2 jar in the classpath. Please > see if you have that version of 1.3.2 jar in the classpath and remove > it. We use 1.4 avro jar which isnt compatible with 1.3.2. > > hope that helps! > mahadev > > On Thu, Aug 11, 2011 at 3:36 PM, Haoyuan Li <[EMAIL PROTECTED]> wrote: >> I downloaded the latest version: r1156719. and then redid from the scratch. >> Now, the nodemanager and run well. However, I got into the same state as >> Matei when I tried to run ResourceManager. Any help will be appreciated. >> Best, >> Haoyuan >> The followings are output. >> ============ The output from .out log file ================>> Exception in thread "main" java.lang.IllegalStateException: For this >> operation, current State must be STARTED instead of INITED >> at >> org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) >> at >> org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) >> at >> org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) >> at >> org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) >> at >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423) >> at >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.main(ResourceManager.java:495) >> ====================================================>> =========== the output from .log log file ==================>> 2011-08-11 15:25:38,357 INFO >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager: Resource >> Manager is starting... >> 2011-08-11 15:25:38,878 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: >> Registering class >> org.apache.hadoop.yarn.server.resourcemanager.scheduler.event.SchedulerEventType >> for class >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$SchedulerEventDispatcher >> 2011-08-11 15:25:38,879 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: >> Registering class >> org.apache.hadoop.yarn.server.resourcemanager.rmapp.RMAppEventType for class >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationEventDispatcher >> 2011-08-11 15:25:38,880 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: >> Registering class >> org.apache.hadoop.yarn.server.resourcemanager.rmapp.attempt.RMAppAttemptEventType >> for class >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$ApplicationAttemptEventDispatcher >> 2011-08-11 15:25:38,881 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: >> Registering class >> org.apache.hadoop.yarn.server.resourcemanager.rmnode.RMNodeEventType for >> class >> org.apache.hadoop.yarn.server.resourcemanager.ResourceManager$NodeEventDispatcher >> 2011-08-11 15:25:38,904 INFO org.apache.hadoop.yarn.event.AsyncDispatcher: >> Registering class >> org.apache.hadoop.yarn.server.resourcemanager.amlauncher.AMLauncherEventType >> for class >> org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher >> 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: >> Service:Dispatcher is inited. >> 2011-08-11 15:25:38,907 INFO org.apache.hadoop.yarn.service.AbstractService: >> Service:org.apache.hadoop.yarn.server.resourcemanager.rmcontainer.ContainerAllocationExpirer >> is inited. >> 2011-08-11 15:25:38,935 INFO org.apache.hadoop.yarn.service.AbstractService: >> Service:AMLivelinessMonitor is inited. >> 2011-08-11 15:25:38,936 INFO org.apache.hadoop.util.HostsFileReader: >> Refreshing hosts (include/exclude) list >> 2011-08-11 15:25:38,936 INFO org.apache.hadoop.yarn.service.AbstractService: >> Service:org.apache.hadoop.yarn.server.resourcemanager.NodesListManager is
-
Re: Can't find main class when run ResourceManager or NodeManagerHaoyuan Li 2011-08-11, 23:48
Hi Mahadev,
This works for me. Thank you. However, another issue came to me when I tried to run an example. Here http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL , it says: $HADOOP_COMMON_HOME/bin/hadoop jar $HADOOP_MAPRED_HOME/build/hadoop-mapred-examples-0.22.0-SNAPSHOT.jar randomwriter -Dmapreduce.job.user.name=$USER -Dmapreduce.clientfactory.class.name=org.apache.hadoop.mapred.YarnClientFactory -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 -Ddfs.block.size=536870912 -libjars $HADOOP_YARN_INSTALL/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar output However, there is no /bin folder in $HADOOP_COMMON_HOME. I found /bin/hadoop in $HADOOP_COMMON_HOME/src/main/bin/hadoop. When I executed the command: ./hadoop-common/src/main/bin/hadoop jar /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar randomwriter -Dmapreduce.job.user.name=haoyuan - Dmapreduce.clientfactory.class.name=org.apache.hadoop.mapred.YarnClientFactory -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 -Ddfs.block.size=536870912 -libjars /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar output I got another exception: ==========================================haoyuan@hya:~/hadoop/trunk$ ./hadoop-common/src/main/bin/hadoop jar /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar randomwriter -Dmapreduce.job.user.name=haoyuan - Dmapreduce.clientfactory.class.name=org.apache.hadoop.mapred.YarnClientFactory -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 -Ddfs.block.size=536870912 -libjars /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar output Exception in thread "main" java.lang.NoClassDefFoundError: org/apache/hadoop/util/RunJar Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.RunJar at java.net.URLClassLoader$1.run(URLClassLoader.java:202) at java.security.AccessController.doPrivileged(Native Method) at java.net.URLClassLoader.findClass(URLClassLoader.java:190) at java.lang.ClassLoader.loadClass(ClassLoader.java:306) at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) at java.lang.ClassLoader.loadClass(ClassLoader.java:247) Could not find the main class: org.apache.hadoop.util.RunJar. Program will exit. ========================================== Any clue? Thank you. Best, Haoyuan On Thu, Aug 11, 2011 at 3:47 PM, Mahadev Konar <[EMAIL PROTECTED]>wrote: > Haoyuan, > Thats an issue with having avro 1.3.2 jar in the classpath. Please > see if you have that version of 1.3.2 jar in the classpath and remove > it. We use 1.4 avro jar which isnt compatible with 1.3.2. > > hope that helps! > mahadev > > On Thu, Aug 11, 2011 at 3:36 PM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > > I downloaded the latest version: r1156719. and then redid from the > scratch. > > Now, the nodemanager and run well. However, I got into the same state as > > Matei when I tried to run ResourceManager. Any help will be appreciated. > > Best, > > Haoyuan > > The followings are output. > > ============ The output from .out log file ================> > Exception in thread "main" java.lang.IllegalStateException: For this > > operation, current State must be STARTED instead of INITED > > at > > > org.apache.hadoop.yarn.service.AbstractService.ensureCurrentState(AbstractService.java:101) > > at > > > org.apache.hadoop.yarn.service.AbstractService.stop(AbstractService.java:69) > > at > > > org.apache.hadoop.yarn.server.resourcemanager.amlauncher.ApplicationMasterLauncher.stop(ApplicationMasterLauncher.java:90) > > at > > > org.apache.hadoop.yarn.service.CompositeService.stop(CompositeService.java:89) > > at > > > org.apache.hadoop.yarn.server.resourcemanager.ResourceManager.stop(ResourceManager.java:423)
-
Re: Can't find main class when run ResourceManager or NodeManagerPraveen Sripati 2011-08-12, 02:32
Hoayuan,
RunJar is in the hadoop-common-0.23.0-SNAPSHOT.jar. Do a 'hadoop classpath' and check if the jar file is there in the classpath location. Similarly, running 'yarn classpath' will provide the classpath for running the yarn daemons (RM, NM and HS). Thanks, Praveen On Fri, Aug 12, 2011 at 5:18 AM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > Hi Mahadev, > > This works for me. Thank you. > > However, another issue came to me when I tried to run an example. > > Here > > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > , > it says: > > $HADOOP_COMMON_HOME/bin/hadoop jar > $HADOOP_MAPRED_HOME/build/hadoop-mapred-examples-0.22.0-SNAPSHOT.jar > randomwriter -Dmapreduce.job.user.name=$USER > -Dmapreduce.clientfactory.class.name > =org.apache.hadoop.mapred.YarnClientFactory > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > -Ddfs.block.size=536870912 -libjars > > $HADOOP_YARN_INSTALL/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > output > > However, there is no /bin folder in $HADOOP_COMMON_HOME. I found > /bin/hadoop > in $HADOOP_COMMON_HOME/src/main/bin/hadoop. When I executed the command: > > ./hadoop-common/src/main/bin/hadoop jar > > /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar > randomwriter -Dmapreduce.job.user.name=haoyuan - > Dmapreduce.clientfactory.class.name > =org.apache.hadoop.mapred.YarnClientFactory > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > -Ddfs.block.size=536870912 -libjars > > /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > output > > I got another exception: > ==========================================> haoyuan@hya:~/hadoop/trunk$ ./hadoop-common/src/main/bin/hadoop jar > > /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar > randomwriter -Dmapreduce.job.user.name=haoyuan - > Dmapreduce.clientfactory.class.name > =org.apache.hadoop.mapred.YarnClientFactory > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > -Ddfs.block.size=536870912 -libjars > > /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > output > Exception in thread "main" java.lang.NoClassDefFoundError: > org/apache/hadoop/util/RunJar > Caused by: java.lang.ClassNotFoundException: org.apache.hadoop.util.RunJar > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > at java.security.AccessController.doPrivileged(Native Method) > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > Could not find the main class: org.apache.hadoop.util.RunJar. Program will > exit. > ==========================================> > Any clue? > > Thank you. > > Best, > > Haoyuan > > > > > > > > On Thu, Aug 11, 2011 at 3:47 PM, Mahadev Konar <[EMAIL PROTECTED] > >wrote: > > > Haoyuan, > > Thats an issue with having avro 1.3.2 jar in the classpath. Please > > see if you have that version of 1.3.2 jar in the classpath and remove > > it. We use 1.4 avro jar which isnt compatible with 1.3.2. > > > > hope that helps! > > mahadev > > > > On Thu, Aug 11, 2011 at 3:36 PM, Haoyuan Li <[EMAIL PROTECTED]> > wrote: > > > I downloaded the latest version: r1156719. and then redid from the > > scratch. > > > Now, the nodemanager and run well. However, I got into the same state > as > > > Matei when I tried to run ResourceManager. Any help will be > appreciated. > > > Best, > > > Haoyuan > > > The followings are output. > > > ============ The output from .out log file ================> > > Exception in thread "main" java.lang.IllegalStateException: For this > > > operation, current State must be STARTED instead of INITED
-
Re: Can't find main class when run ResourceManager or NodeManagerHaoyuan Li 2011-08-12, 05:31
Preveen,
Thank you for your reply. The CLASSPATH generated by the '/trunk/hadoop-common/src/main/bin/hadoop' and 'hadoop-config.sh' in my machine is a mess. >From my understanding, 'hadoop-config.sh' still generates the CLASSPATH based on the build structure from ant? While now we are using mvn. Could you please tell me the location of your 'hadoop' and 'hadoop-config.sh' scripts? Or maybe you could send me a copy of your hadoop-config.sh, which I suppose should be the same as mine. Not sure whether these could be the reason or not... Any help will be appreciated! Best, Haoyuan On Thu, Aug 11, 2011 at 7:32 PM, Praveen Sripati <[EMAIL PROTECTED]>wrote: > Hoayuan, > > RunJar is in the hadoop-common-0.23.0-SNAPSHOT.jar. Do a 'hadoop classpath' > and check if the jar file is there in the classpath location. > > Similarly, running 'yarn classpath' will provide the classpath for running > the yarn daemons (RM, NM and HS). > > Thanks, > Praveen > > On Fri, Aug 12, 2011 at 5:18 AM, Haoyuan Li <[EMAIL PROTECTED]> wrote: > > > Hi Mahadev, > > > > This works for me. Thank you. > > > > However, another issue came to me when I tried to run an example. > > > > Here > > > > > http://svn.apache.org/repos/asf/hadoop/common/branches/MR-279/mapreduce/INSTALL > > , > > it says: > > > > $HADOOP_COMMON_HOME/bin/hadoop jar > > $HADOOP_MAPRED_HOME/build/hadoop-mapred-examples-0.22.0-SNAPSHOT.jar > > randomwriter -Dmapreduce.job.user.name=$USER > > -Dmapreduce.clientfactory.class.name > > =org.apache.hadoop.mapred.YarnClientFactory > > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > > -Ddfs.block.size=536870912 -libjars > > > > > $HADOOP_YARN_INSTALL/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > > output > > > > However, there is no /bin folder in $HADOOP_COMMON_HOME. I found > > /bin/hadoop > > in $HADOOP_COMMON_HOME/src/main/bin/hadoop. When I executed the command: > > > > ./hadoop-common/src/main/bin/hadoop jar > > > > > /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar > > randomwriter -Dmapreduce.job.user.name=haoyuan - > > Dmapreduce.clientfactory.class.name > > =org.apache.hadoop.mapred.YarnClientFactory > > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > > -Ddfs.block.size=536870912 -libjars > > > > > /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > > output > > > > I got another exception: > > ==========================================> > haoyuan@hya:~/hadoop/trunk$ ./hadoop-common/src/main/bin/hadoop jar > > > > > /home/haoyuan/hadoop/trunk/mapreduce/build/hadoop-mapred-examples-0.23.0-SNAPSHOT.jar > > randomwriter -Dmapreduce.job.user.name=haoyuan - > > Dmapreduce.clientfactory.class.name > > =org.apache.hadoop.mapred.YarnClientFactory > > -Dmapreduce.randomwriter.bytespermap=10000 -Ddfs.blocksize=536870912 > > -Ddfs.block.size=536870912 -libjars > > > > > /home/haoyuan/hadoop/trunk/hadoop-mapreduce-1.0-SNAPSHOT/modules/hadoop-mapreduce-client-jobclient-1.0-SNAPSHOT.jar > > output > > Exception in thread "main" java.lang.NoClassDefFoundError: > > org/apache/hadoop/util/RunJar > > Caused by: java.lang.ClassNotFoundException: > org.apache.hadoop.util.RunJar > > at java.net.URLClassLoader$1.run(URLClassLoader.java:202) > > at java.security.AccessController.doPrivileged(Native Method) > > at java.net.URLClassLoader.findClass(URLClassLoader.java:190) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:306) > > at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301) > > at java.lang.ClassLoader.loadClass(ClassLoader.java:247) > > Could not find the main class: org.apache.hadoop.util.RunJar. Program > will > > exit. > > ==========================================> > > > Any clue? > > > > Thank you. > > > > Best, > > > > Haoyuan > > > > > > > > > > > > > > > > On Thu, Aug 11, 2011 at 3:47 PM, Mahadev Konar <[EMAIL PROTECTED] |