You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-user@hadoop.apache.org by dyuti a <ha...@gmail.com> on 2012/11/27 14:00:20 UTC

ClassNotFoundException: org.jdom2.JDOMException

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

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by Mahesh Balija <ba...@gmail.com>.
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 <ha...@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 <ha...@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
>>
>
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by Mahesh Balija <ba...@gmail.com>.
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 <ha...@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 <ha...@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
>>
>
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by Mahesh Balija <ba...@gmail.com>.
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 <ha...@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 <ha...@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
>>
>
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by Mahesh Balija <ba...@gmail.com>.
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 <ha...@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 <ha...@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
>>
>
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
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 <ha...@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
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
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 <ha...@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
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
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 <ha...@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
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
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 <ha...@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
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by bharath vissapragada <bh...@gmail.com>.
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 <ha...@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

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by bharath vissapragada <bh...@gmail.com>.
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 <ha...@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

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by bharath vissapragada <bh...@gmail.com>.
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 <ha...@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

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
Hi All,
Thank you for your suggestions, i resolved the same. but after that got
into below errors( It works fine when checked in IDE).

//Errors:
java.lang.NullPointerException
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:52)
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
        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.Subject.doAs(Subject.java:396)
        at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1177)
        at org.apache.hadoop.mapred.Child.main(Child.java:264)

 Caused by: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.

org.jdom2.input.JDOMParseException: Error on line 1: XML document
structures must start and end within the same entity.

//First line in xml file (sample file)
<?xml version="1.0"?>
<company>
<staff>
<firstname>yong</firstname>
<lastname>mook kim</lastname>
<nickname>mkyong</nickname>
<salary>100000</salary>
</staff>
</company>

Thanks for your help!

Regards,
dti



On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy <An...@mpac.ca>wrote:

>  The common problem users have are adding values to the classpath AFTER
> the daemons had been started. If you are getting ClassNotFound exception
> and are 100% sure you have correctly specified path to the jar files and
> your jar files actually have the compiled class then simply restart the
> daemons s that they can pick up new configuration.
>
> * *
>
>
>
> *From:* dyuti a [mailto:hadoop.hive04@gmail.com]
> *Sent:* Tuesday, November 27, 2012 8:00 AM
> *To:* user@hadoop.apache.org
> *Subject:* ClassNotFoundException: org.jdom2.JDOMException
>
>
>
> 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
>
>
>
>
>  NOTICE: This e-mail message and any attachments are confidential, subject
> to copyright and may be privileged. Any unauthorized use, copying or
> disclosure is prohibited. If you are not the intended recipient, please
> delete and contact the sender immediately. Please consider the environment
> before printing this e-mail. AVIS : le présent courriel et toute pièce
> jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur
> et peuvent être couverts par le secret professionnel. Toute utilisation,
> copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le
> destinataire prévu de ce courriel, supprimez-le et contactez immédiatement
> l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent
> courriel
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
Hi All,
Thank you for your suggestions, i resolved the same. but after that got
into below errors( It works fine when checked in IDE).

//Errors:
java.lang.NullPointerException
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:52)
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
        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.Subject.doAs(Subject.java:396)
        at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1177)
        at org.apache.hadoop.mapred.Child.main(Child.java:264)

 Caused by: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.

org.jdom2.input.JDOMParseException: Error on line 1: XML document
structures must start and end within the same entity.

//First line in xml file (sample file)
<?xml version="1.0"?>
<company>
<staff>
<firstname>yong</firstname>
<lastname>mook kim</lastname>
<nickname>mkyong</nickname>
<salary>100000</salary>
</staff>
</company>

Thanks for your help!

Regards,
dti



On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy <An...@mpac.ca>wrote:

>  The common problem users have are adding values to the classpath AFTER
> the daemons had been started. If you are getting ClassNotFound exception
> and are 100% sure you have correctly specified path to the jar files and
> your jar files actually have the compiled class then simply restart the
> daemons s that they can pick up new configuration.
>
> * *
>
>
>
> *From:* dyuti a [mailto:hadoop.hive04@gmail.com]
> *Sent:* Tuesday, November 27, 2012 8:00 AM
> *To:* user@hadoop.apache.org
> *Subject:* ClassNotFoundException: org.jdom2.JDOMException
>
>
>
> 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
>
>
>
>
>  NOTICE: This e-mail message and any attachments are confidential, subject
> to copyright and may be privileged. Any unauthorized use, copying or
> disclosure is prohibited. If you are not the intended recipient, please
> delete and contact the sender immediately. Please consider the environment
> before printing this e-mail. AVIS : le présent courriel et toute pièce
> jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur
> et peuvent être couverts par le secret professionnel. Toute utilisation,
> copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le
> destinataire prévu de ce courriel, supprimez-le et contactez immédiatement
> l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent
> courriel
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
Hi All,
Thank you for your suggestions, i resolved the same. but after that got
into below errors( It works fine when checked in IDE).

//Errors:
java.lang.NullPointerException
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:52)
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
        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.Subject.doAs(Subject.java:396)
        at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1177)
        at org.apache.hadoop.mapred.Child.main(Child.java:264)

 Caused by: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.

org.jdom2.input.JDOMParseException: Error on line 1: XML document
structures must start and end within the same entity.

//First line in xml file (sample file)
<?xml version="1.0"?>
<company>
<staff>
<firstname>yong</firstname>
<lastname>mook kim</lastname>
<nickname>mkyong</nickname>
<salary>100000</salary>
</staff>
</company>

Thanks for your help!

Regards,
dti



On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy <An...@mpac.ca>wrote:

>  The common problem users have are adding values to the classpath AFTER
> the daemons had been started. If you are getting ClassNotFound exception
> and are 100% sure you have correctly specified path to the jar files and
> your jar files actually have the compiled class then simply restart the
> daemons s that they can pick up new configuration.
>
> * *
>
>
>
> *From:* dyuti a [mailto:hadoop.hive04@gmail.com]
> *Sent:* Tuesday, November 27, 2012 8:00 AM
> *To:* user@hadoop.apache.org
> *Subject:* ClassNotFoundException: org.jdom2.JDOMException
>
>
>
> 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
>
>
>
>
>  NOTICE: This e-mail message and any attachments are confidential, subject
> to copyright and may be privileged. Any unauthorized use, copying or
> disclosure is prohibited. If you are not the intended recipient, please
> delete and contact the sender immediately. Please consider the environment
> before printing this e-mail. AVIS : le présent courriel et toute pièce
> jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur
> et peuvent être couverts par le secret professionnel. Toute utilisation,
> copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le
> destinataire prévu de ce courriel, supprimez-le et contactez immédiatement
> l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent
> courriel
>

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by dyuti a <ha...@gmail.com>.
Hi All,
Thank you for your suggestions, i resolved the same. but after that got
into below errors( It works fine when checked in IDE).

//Errors:
java.lang.NullPointerException
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:52)
        at
com.ge.hadoop.test.xmlfileformat.MyParserMapper1.map(MyParserMapper1.java:1)
        at org.apache.hadoop.mapreduce.Mapper.run(Mapper.java:144)
        at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
        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.Subject.doAs(Subject.java:396)
        at
org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1177)
        at org.apache.hadoop.mapred.Child.main(Child.java:264)

 Caused by: org.xml.sax.SAXParseException: XML document structures must
start and end within the same entity.

org.jdom2.input.JDOMParseException: Error on line 1: XML document
structures must start and end within the same entity.

//First line in xml file (sample file)
<?xml version="1.0"?>
<company>
<staff>
<firstname>yong</firstname>
<lastname>mook kim</lastname>
<nickname>mkyong</nickname>
<salary>100000</salary>
</staff>
</company>

Thanks for your help!

Regards,
dti



On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy <An...@mpac.ca>wrote:

>  The common problem users have are adding values to the classpath AFTER
> the daemons had been started. If you are getting ClassNotFound exception
> and are 100% sure you have correctly specified path to the jar files and
> your jar files actually have the compiled class then simply restart the
> daemons s that they can pick up new configuration.
>
> * *
>
>
>
> *From:* dyuti a [mailto:hadoop.hive04@gmail.com]
> *Sent:* Tuesday, November 27, 2012 8:00 AM
> *To:* user@hadoop.apache.org
> *Subject:* ClassNotFoundException: org.jdom2.JDOMException
>
>
>
> 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
>
>
>
>
>  NOTICE: This e-mail message and any attachments are confidential, subject
> to copyright and may be privileged. Any unauthorized use, copying or
> disclosure is prohibited. If you are not the intended recipient, please
> delete and contact the sender immediately. Please consider the environment
> before printing this e-mail. AVIS : le présent courriel et toute pièce
> jointe qui l'accompagne sont confidentiels, protégés par le droit d'auteur
> et peuvent être couverts par le secret professionnel. Toute utilisation,
> copie ou divulgation non autorisée est interdite. Si vous n'êtes pas le
> destinataire prévu de ce courriel, supprimez-le et contactez immédiatement
> l'expéditeur. Veuillez penser à l'environnement avant d'imprimer le présent
> courriel
>

RE: ClassNotFoundException: org.jdom2.JDOMException

Posted by "Kartashov, Andy" <An...@mpac.ca>.
The common problem users have are adding values to the classpath AFTER the daemons had been started. If you are getting ClassNotFound exception and are 100% sure you have correctly specified path to the jar files and your jar files actually have the compiled class then simply restart the daemons s that they can pick up new configuration.


From: dyuti a [mailto:hadoop.hive04@gmail.com]
Sent: Tuesday, November 27, 2012 8:00 AM
To: user@hadoop.apache.org
Subject: ClassNotFoundException: org.jdom2.JDOMException

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


NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le pr?sent courriel et toute pi?ce jointe qui l'accompagne sont confidentiels, prot?g?s par le droit d'auteur et peuvent ?tre couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autoris?e est interdite. Si vous n'?tes pas le destinataire pr?vu de ce courriel, supprimez-le et contactez imm?diatement l'exp?diteur. Veuillez penser ? l'environnement avant d'imprimer le pr?sent courriel

RE: ClassNotFoundException: org.jdom2.JDOMException

Posted by "Kartashov, Andy" <An...@mpac.ca>.
The common problem users have are adding values to the classpath AFTER the daemons had been started. If you are getting ClassNotFound exception and are 100% sure you have correctly specified path to the jar files and your jar files actually have the compiled class then simply restart the daemons s that they can pick up new configuration.


From: dyuti a [mailto:hadoop.hive04@gmail.com]
Sent: Tuesday, November 27, 2012 8:00 AM
To: user@hadoop.apache.org
Subject: ClassNotFoundException: org.jdom2.JDOMException

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


NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le pr?sent courriel et toute pi?ce jointe qui l'accompagne sont confidentiels, prot?g?s par le droit d'auteur et peuvent ?tre couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autoris?e est interdite. Si vous n'?tes pas le destinataire pr?vu de ce courriel, supprimez-le et contactez imm?diatement l'exp?diteur. Veuillez penser ? l'environnement avant d'imprimer le pr?sent courriel

RE: ClassNotFoundException: org.jdom2.JDOMException

Posted by "Kartashov, Andy" <An...@mpac.ca>.
The common problem users have are adding values to the classpath AFTER the daemons had been started. If you are getting ClassNotFound exception and are 100% sure you have correctly specified path to the jar files and your jar files actually have the compiled class then simply restart the daemons s that they can pick up new configuration.


From: dyuti a [mailto:hadoop.hive04@gmail.com]
Sent: Tuesday, November 27, 2012 8:00 AM
To: user@hadoop.apache.org
Subject: ClassNotFoundException: org.jdom2.JDOMException

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


NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le pr?sent courriel et toute pi?ce jointe qui l'accompagne sont confidentiels, prot?g?s par le droit d'auteur et peuvent ?tre couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autoris?e est interdite. Si vous n'?tes pas le destinataire pr?vu de ce courriel, supprimez-le et contactez imm?diatement l'exp?diteur. Veuillez penser ? l'environnement avant d'imprimer le pr?sent courriel

RE: ClassNotFoundException: org.jdom2.JDOMException

Posted by "Kartashov, Andy" <An...@mpac.ca>.
The common problem users have are adding values to the classpath AFTER the daemons had been started. If you are getting ClassNotFound exception and are 100% sure you have correctly specified path to the jar files and your jar files actually have the compiled class then simply restart the daemons s that they can pick up new configuration.


From: dyuti a [mailto:hadoop.hive04@gmail.com]
Sent: Tuesday, November 27, 2012 8:00 AM
To: user@hadoop.apache.org
Subject: ClassNotFoundException: org.jdom2.JDOMException

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


NOTICE: This e-mail message and any attachments are confidential, subject to copyright and may be privileged. Any unauthorized use, copying or disclosure is prohibited. If you are not the intended recipient, please delete and contact the sender immediately. Please consider the environment before printing this e-mail. AVIS : le pr?sent courriel et toute pi?ce jointe qui l'accompagne sont confidentiels, prot?g?s par le droit d'auteur et peuvent ?tre couverts par le secret professionnel. Toute utilisation, copie ou divulgation non autoris?e est interdite. Si vous n'?tes pas le destinataire pr?vu de ce courriel, supprimez-le et contactez imm?diatement l'exp?diteur. Veuillez penser ? l'environnement avant d'imprimer le pr?sent courriel

Re: ClassNotFoundException: org.jdom2.JDOMException

Posted by bharath vissapragada <bh...@gmail.com>.
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 <ha...@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