hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Mahesh Balija <balijamahesh....@gmail.com>
Subject Re: ClassNotFoundException: org.jdom2.JDOMException
Date Tue, 27 Nov 2012 13:35:29 GMT
Hi Bharath,

            You may need to copy the jars across all the nodes in your
Hadoop cluster.
            Or another best way to handle this is package all the required
jars with your application.jar which you pass to your Hadoop commandline.
            This will take care of caching it to all nodes in your cluster.

Best,
Mahesh Balija,
Calsoft Labs.


On Tue, Nov 27, 2012 at 6:49 PM, dyuti a <hadoop.hive04@gmail.com> wrote:

> Hi Bharath,
> yes i have added all those jars.
>
> Thanks,
> dti
>
> On Tue, Nov 27, 2012 at 6:35 PM, bharath vissapragada <
> bharathvissapragada1990@gmail.com> wrote:
>
>> Hi,
>>
>> Did you add JDOM jar [1] to your class path ?
>>
>> [1] http://www.jdom.org/downloads/index.html
>>
>> Thanks,
>>
>>
>> On Tue, Nov 27, 2012 at 6:30 PM, dyuti a <hadoop.hive04@gmail.com> wrote:
>>
>>>   Hi All,
>>> am working on XML processing in hadoop , followed the steps from the
>>> blog  http://xmlandhadoop.blogspot.in/.I have added all jars in
>>> classpath but still getting the below exception. is there anything that i
>>> missed out?
>>>
>>>
>>> Error: java.lang.ClassNotFoundException: org.jdom2.JDOMException
>>>         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:307)
>>>         at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>>>         at java.lang.ClassLoader.loadClass(ClassLoader.java:248)
>>>         at java.lang.Class.forName0(Native Method)
>>>         at java.lang.Class.forName(Class.java:247)
>>>         at
>>> org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:951)
>>>         at
>>> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1002)
>>>         at
>>> org.apache.hadoop.mapreduce.JobContext.getMapperClass(JobContext.java:217)
>>>         at
>>> org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:602)
>>>         at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
>>>         at org.apache.hadoop.mapred.Child$4.run(Child.java:270)
>>>         at java.security.AccessController.doPrivileged(Native Method)
>>>         at javax.security.auth
>>>
>>>
>>> Thanks for your help in advance!
>>>
>>> Regards,
>>> dti
>>>
>>>
>>>
>>
>>
>> --
>> Regards,
>> Bharath .V
>> w:http://researchweb.iiit.ac.in/~bharath.v
>>
>
>

Mime
View raw message