Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
MapReduce, mail # user - NoClassDefFoundError: org/apache/hadoop/yarn/service/CompositeService


Copy link to this message
-
Re: NoClassDefFoundError: org/apache/hadoop/yarn/service/CompositeService
闫昆 2013-07-11, 03:01
wow! I have the same question and that is terrible,I speed three day
times.your ask question is also my resolve way
Thanks
2013/7/11 Devaraj k <[EMAIL PROTECTED]>

>  Hi Libo,****
>
> ** **
>
> MRAppMaster is not able to load the yarn related jar files. ****
>
> ** **
>
>      Is this the classpath using by MRAppMaster or any other process? ****
>
> ** **
>
>
> “/opt/hadoop/hadoop-2.0.0-cdh4.3.0/conf:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/common/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/common/*:/contrib/capacity-scheduler/*.jar:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/yarn/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/yarn/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/mapreduce2/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/mapreduce/*”
> ****
>
> ** **
>
> If this is not the MRAppMaster process classpath, can you try to get the
> MRAppMaster java process classpath.****
>
> ** **
>
> ** **
>
> Thanks****
>
> Devaraj k****
>
> *From:* Yu, Libo [mailto:[EMAIL PROTECTED]]
> *Sent:* 11 July 2013 01:30
> *To:* '[EMAIL PROTECTED]'
> *Subject:* NoClassDefFoundError:
> org/apache/hadoop/yarn/service/CompositeService****
>
> ** **
>
> Hi,****
>
> ** **
>
> I tried to run the wordcount example with yarn. Here is the command line:*
> ***
>
> hadoop jar
> share/hadoop/mapreduce2/hadoop-mapreduce-examples-2.0.0-cdh4.3.0.jar
> wordcount /user/lyu/wordcount/input /user/lyu/wordcount/output****
>
> ** **
>
> But I got this exception:****
>
> ** **
>
> Exception in thread "main" java.lang.NoClassDefFoundError:
> org/apache/hadoop/yar
> n/service/CompositeService
>         at java.lang.ClassLoader.defineClass1(Native Method)
>         at java.lang.ClassLoader.defineClassCond(ClassLoader.java:631)
>         at java.lang.ClassLoader.defineClass(ClassLoader.java:615)
>         at
> java.security.SecureClassLoader.defineClass(SecureClassLoader.java:141)
>         at java.net.URLClassLoader.defineClass(URLClassLoader.java:283)
>         at java.net.URLClassLoader.access$000(URLClassLoader.java:58)
>         at java.net.URLClassLoader$1.run(URLClassLoader.java:197)
>         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)
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.yarn.service.CompositeService
>         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)
>         ... 12 more
> Could not find the main class:
> org.apache.hadoop.mapreduce.v2.app.MRAppMaster.  Program will exit****
>
> ** **
>
> Here is conent of the CLASSPATH used by java:****
>
> ** **
>
>
> /opt/hadoop/hadoop-2.0.0-cdh4.3.0/conf:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/common/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/common/*:/contrib/capacity-scheduler/*.jar:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/hdfs/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/yarn/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/yarn/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/mapreduce2/lib/*:/opt/hadoop/hadoop-2.0.0-cdh4.3.0/share/hadoop/mapreduce/*
> ****
>
> ** **
>
> Here is the console output:****