Return-Path: X-Original-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-hdfs-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 52238DA07 for ; Wed, 28 Nov 2012 12:57:01 +0000 (UTC) Received: (qmail 62869 invoked by uid 500); 28 Nov 2012 12:56:56 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 62622 invoked by uid 500); 28 Nov 2012 12:56:55 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 62611 invoked by uid 99); 28 Nov 2012 12:56:55 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 12:56:55 +0000 X-ASF-Spam-Status: No, hits=1.7 required=5.0 tests=FREEMAIL_ENVFROM_END_DIGIT,HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of hadoop.hive04@gmail.com designates 209.85.214.194 as permitted sender) Received: from [209.85.214.194] (HELO mail-ob0-f194.google.com) (209.85.214.194) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Nov 2012 12:56:50 +0000 Received: by mail-ob0-f194.google.com with SMTP id lz20so1855707obb.5 for ; Wed, 28 Nov 2012 04:56:29 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=UiqVFD0+OLpQLavg7G0CruuSEa0NFEcs53ma4gg6vLE=; b=ATuiP+ufDB1EcKWYXIECdWBxFf0rfCXbqP57FdKqOmbtHlxEMa2ZZ47Zdvlw2MoNGZ tQ842NtDpE1hjMnHmiHFueJTrqwoUkR4r16KOKhmc2vCgWhem1bsADtJgX7wMzDcOiW5 YVv81HiQAHy39082IhhcIBnj7tVUOGqiQrQ0NbLSXpAzu5AqQR8cgqP2jfusSCTBVEzZ FgtEh/5aut65ZRIJkV0fZj1mwhep0mbcsApknuxVLZ1Ok3J7qaTA2X9OcNP6XU2I6JXr aXASMBEXKx55zvJxogklWsko73HA9Yp+D3Ep1yLVhRteLiaoMo7m8zHDxYCZBAAI+PLk Llqw== MIME-Version: 1.0 Received: by 10.182.188.36 with SMTP id fx4mr3110804obc.6.1354107389787; Wed, 28 Nov 2012 04:56:29 -0800 (PST) Received: by 10.76.20.101 with HTTP; Wed, 28 Nov 2012 04:56:29 -0800 (PST) In-Reply-To: References: Date: Wed, 28 Nov 2012 18:26:29 +0530 Message-ID: Subject: Re: ClassNotFoundException: org.jdom2.JDOMException From: dyuti a To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d04463168f4beed04cf8db1bf X-Virus-Checked: Checked by ClamAV on apache.org --f46d04463168f4beed04cf8db1bf Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable 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:5= 2) 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.j= ava: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) yong mook kim mkyong 100000 Thanks for your help! Regards, dti On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy wr= ote: > 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:95= 1) > > 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, subjec= t > 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 environmen= t > before printing this e-mail. AVIS : le pr=E9sent courriel et toute pi=E8c= e > jointe qui l'accompagne sont confidentiels, prot=E9g=E9s par le droit d'a= uteur > et peuvent =EAtre couverts par le secret professionnel. Toute utilisation= , > copie ou divulgation non autoris=E9e est interdite. Si vous n'=EAtes pas = le > destinataire pr=E9vu de ce courriel, supprimez-le et contactez imm=E9diat= ement > l'exp=E9diteur. Veuillez penser =E0 l'environnement avant d'imprimer le p= r=E9sent > courriel > --f46d04463168f4beed04cf8db1bf Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi All,
Thank you=A0for your suggestions, i resolved the= same. but after that got into below errors( It works fine when checked in = IDE).

//Errors:
java.lang.NullPointerExcep= tion
=A0 =A0 =A0 =A0 at com.ge.hadoop.test.xmlfileformat.MyParser= Mapper1.map(MyParserMapper1.java:52)
=A0 =A0 =A0 =A0 at com.ge.hadoop.test.xmlfileformat.MyParserMapper1.ma= p(MyParserMapper1.java:1)
=A0 =A0 =A0 =A0 at org.apache.hadoop.ma= preduce.Mapper.run(Mapper.java:144)
=A0 =A0 =A0 =A0 at org.apache= .hadoop.mapred.MapTask.runNewMapper(MapTask.java:647)
=A0 =A0 =A0 =A0 at org.apache.hadoop.mapred.MapTask.run(MapTask.java:3= 23)
=A0 =A0 =A0 =A0 at org.apache.hadoop.mapred.Child$4.run(Child= .java:270)
=A0 =A0 =A0 =A0 at java.security.AccessController.doPr= ivileged(Native Method)
=A0 =A0 =A0 =A0 at javax.security.auth.Subject.doAs(Subject.java:396)<= /div>
=A0 =A0 =A0 =A0 at org.apache.hadoop.security.UserGroupInformatio= n.doAs(UserGroupInformation.java:1177)
=A0 =A0 =A0 =A0 at org.apa= che.hadoop.mapred.Child.main(Child.java:264)

=A0Caused by: org.xml.sax.SAXParseException: XML d= ocument 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=3D"1.0"?>
<company>
<s= taff>
<firstname>yong</firstname>
<lastname>mook kim= </lastname>
<= nickname>mkyong</nickname>
<salary>100000</salary>
</staff= >
</company>

<= font class=3D"Apple-style-span" color=3D"#1f497d" face=3D"Calibri, sans-ser= if">Thanks for yo= ur help!

Regards,
dti



On Tue, Nov 27, 2012 at 8:01 PM, Kartashov, Andy <Andy.Kartashov@mp= ac.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 th= ey can pick up new configuration.

=A0

=A0

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

<= div>

=A0

Hi All,

am working on=A0XML processing in hadoop , followed the steps from the blog=A0=A0http://xmlandhadoop.blogspot.in/.I have added all jars in classpath but still getting the below exception. is there anything that i missed out?

=A0

=A0

Error: java.lang.ClassNotFoundException: org.jdom2.J= DOMException

=A0 =A0 =A0 =A0 at java.net.URLClassLoader$1.run(URL= ClassLoader.java:202)

=A0 =A0 =A0 =A0 at java.security.AccessController.do= Privileged(Native Method)

=A0 =A0 =A0 =A0 at java.net.URLClassLoader.findClass= (URLClassLoader.java:190)

=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(C= lassLoader.java:307)

=A0 =A0 =A0 =A0 at sun.misc.Launcher$AppClassLoader.= loadClass(Launcher.java:301)

=A0 =A0 =A0 =A0 at java.lang.ClassLoader.loadClass(C= lassLoader.java:248)

=A0 =A0 =A0 =A0 at java.lang.Class.forName0(Native M= ethod)

=A0 =A0 =A0 =A0 at java.lang.Class.forName(Class.jav= a:247)

=A0 =A0 =A0 =A0 at org.apache.hadoop.conf.Configurat= ion.getClassByName(Configuration.java:951)

=A0 =A0 =A0 =A0 at org.apache.hadoop.conf.Configurat= ion.getClass(Configuration.java:1002)

=A0 =A0 =A0 =A0 at org.apache.hadoop.mapreduce.JobCo= ntext.getMapperClass(JobContext.java:217)

=A0 =A0 =A0 =A0 at org.apache.hadoop.mapred.MapTask.= runNewMapper(MapTask.java:602)

=A0 =A0 =A0 =A0 at org.apache.hadoop.mapred.MapTask.= run(MapTask.java:323)

=A0 =A0 =A0 =A0 at org.apache.hadoop.mapred.Child$4.= run(Child.java:270)

=A0 =A0 =A0 =A0 at java.security.AccessController.do= Privileged(Native Method)

=A0 =A0 =A0 =A0 at javax.security.auth

=A0

=A0

Thanks for your help in a= dvance!

=A0

Regards,

dti

=A0

=A0

NOTICE: This e-mail message and any attachments are confidential, subject t= o copyright and may be privileged. Any unauthorized use, copying or disclos= ure 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= =E9sent courriel et toute pi=E8ce jointe qui l'accompagne sont confiden= tiels, prot=E9g=E9s par le droit d'auteur et peuvent =EAtre couverts pa= r le secret professionnel. Toute utilisation, copie ou divulgation non autoris=E9e est interdite. Si vous n'=EAtes pas le = destinataire pr=E9vu de ce courriel, supprimez-le et contactez imm=E9diatem= ent l'exp=E9diteur. Veuillez penser =E0 l'environnement avant d'= ;imprimer le pr=E9sent courriel

--f46d04463168f4beed04cf8db1bf--