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 B6037FF35 for ; Wed, 3 Apr 2013 22:41:45 +0000 (UTC) Received: (qmail 40209 invoked by uid 500); 3 Apr 2013 22:41:40 -0000 Delivered-To: apmail-hadoop-hdfs-user-archive@hadoop.apache.org Received: (qmail 40099 invoked by uid 500); 3 Apr 2013 22:41:40 -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 40089 invoked by uid 99); 3 Apr 2013 22:41:40 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 22:41:40 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of varsha.raveendran@gmail.com designates 74.125.82.47 as permitted sender) Received: from [74.125.82.47] (HELO mail-wg0-f47.google.com) (74.125.82.47) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Apr 2013 22:41:36 +0000 Received: by mail-wg0-f47.google.com with SMTP id y10so2171046wgg.14 for ; Wed, 03 Apr 2013 15:41:15 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type; bh=G2uUBdEH/jKxeoFHHECui57zy8MvHuh/DiVdM4lQUpI=; b=QSCGlcw2S26g87le/BJk5euj0I3+w5Fq/61TVthTWK71lRlkq0at63I1Anf/NcQYhx BWq2JzbIDY6qtu3eWuRRdYav9SV837lYnIcj+PVoLsaO0xmzCnYan6LZncszZ+vrp5T4 MxSo/PImQmwWtV5bTnBvabQE1lmGTw8kWKZYJH2k8FX0aBdUAc72A9+3eIKlMv30BiiC gOwhB0DtIN+MFdaIOWYRgAB4VQvS1UcMV4DJj6XrTpToHygWg5J1J5EpeBhVY8pZNI+o RCDhgivdqUPi+5SwTF01AZMSxZoXp/FNaeNDokcRZvC74uBbn1aac0n74GstisyjQDcs dq8Q== X-Received: by 10.194.83.33 with SMTP id n1mr5674669wjy.7.1365028875151; Wed, 03 Apr 2013 15:41:15 -0700 (PDT) MIME-Version: 1.0 Received: by 10.194.125.143 with HTTP; Wed, 3 Apr 2013 15:40:55 -0700 (PDT) In-Reply-To: References: From: Varsha Raveendran Date: Thu, 4 Apr 2013 04:10:55 +0530 Message-ID: Subject: Re: Error while running MapR program on multinode configuration To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=047d7bb04d7e3648e304d97c8d1f X-Virus-Checked: Checked by ClamAV on apache.org --047d7bb04d7e3648e304d97c8d1f Content-Type: text/plain; charset=ISO-8859-1 Thank you! You are right! I created the jar file using the command line and not eclipse and it worked! On Thu, Apr 4, 2013 at 4:06 AM, Mohammad Tariq wrote: > It seems to be a non-hadoop issue to me. Is the jar which you are finally > creating a runnable jar?We can't reference external classes(jars) in a > runnable jar file. Everything must be contained inside the jar itself. > > Warm Regards, > Tariq > https://mtariq.jux.com/ > cloudfront.blogspot.com > > > On Thu, Apr 4, 2013 at 3:28 AM, Varsha Raveendran < > varsha.raveendran@gmail.com> wrote: > >> Thanks for replying! >> >> version : hadoop 1.1.1 >> >> I am creating a jar file called ga_test.jar and then placing it in the >> build path of another program. >> Also, I am using eclipse to create another jar file including ga_test.jar >> as a reference library. I do not know why hadoop is taking the filename as >> rsrc:ga_test.jar. (Maybe thats where the ":" is coming into the picture!) >> >> Thanks! >> >> >> >> >> On Thu, Apr 4, 2013 at 3:18 AM, Mohammad Tariq wrote: >> >>> Which version are you using? Could you plz show me your code, if >>> possible for you. >>> Also, how are you running the job? For a detailed explanation you might >>> find this useful. >>> >>> Warm Regards, >>> Tariq >>> https://mtariq.jux.com/ >>> cloudfront.blogspot.com >>> >>> >>> On Thu, Apr 4, 2013 at 3:09 AM, Varsha Raveendran < >>> varsha.raveendran@gmail.com> wrote: >>> >>>> But I do not have a ":" in any of my file names. >>>> What could the other reasons be? I am not able to debug the error.. >>>> >>>> Thank you for replying. >>>> >>>> >>>> On Thu, Apr 4, 2013 at 2:02 AM, Mohammad Tariq wrote: >>>> >>>>> Hello ma'am, >>>>> >>>>> Please make sure that you don't have ":" in your files. >>>>> >>>>> Warm Regards, >>>>> Tariq >>>>> https://mtariq.jux.com/ >>>>> cloudfront.blogspot.com >>>>> >>>>> >>>>> On Thu, Apr 4, 2013 at 1:50 AM, Varsha Raveendran < >>>>> varsha.raveendran@gmail.com> wrote: >>>>> >>>>>> Hello, >>>>>> >>>>>> I am facing this error while trying to run a jar file on hadoop : >>>>>> >>>>>> 13/04/04 01:48:01 INFO mapred.JobClient: Cleaning up the staging area >>>>>> hdfs://MT2012158:54310/app/hadoop/tmp/mapred/staging/hduser/.staging/job_201304032344_0008 >>>>>> Exception in thread "main" java.lang.reflect.InvocationTargetException >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:616) >>>>>> at >>>>>> org.eclipse.jdt.internal.jarinjarloader.JarRsrcLoader.main(JarRsrcLoader.java:58) >>>>>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) >>>>>> at >>>>>> sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57) >>>>>> at >>>>>> sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) >>>>>> at java.lang.reflect.Method.invoke(Method.java:616) >>>>>> at org.apache.hadoop.util.RunJar.main(RunJar.java:156) >>>>>> Caused by: java.lang.IllegalArgumentException: >>>>>> java.net.URISyntaxException: Relative path in absolute URI: rsrc:ga_test.jar >>>>>> at org.apache.hadoop.fs.Path.initialize(Path.java:148) >>>>>> at org.apache.hadoop.fs.Path.(Path.java:126) >>>>>> at >>>>>> org.apache.hadoop.mapred.JobClient.copyAndConfigureFiles(JobClient.java:841) >>>>>> at >>>>>> org.apache.hadoop.mapred.JobClient.copyAndConfigureFiles(JobClient.java:717) >>>>>> at >>>>>> org.apache.hadoop.mapred.JobClient.access$400(JobClient.java:179) >>>>>> at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:927) >>>>>> at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java:912) >>>>>> at java.security.AccessController.doPrivileged(Native Method) >>>>>> at javax.security.auth.Subject.doAs(Subject.java:416) >>>>>> at >>>>>> org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1136) >>>>>> at >>>>>> org.apache.hadoop.mapred.JobClient.submitJobInternal(JobClient.java:912) >>>>>> at >>>>>> org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:886) >>>>>> at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java:1323) >>>>>> at edu.iiitb.config.GAMain.launch(Unknown Source) >>>>>> at edu.iiitb.config.GAMain.run(Unknown Source) >>>>>> at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65) >>>>>> at edu.iiitb.config.GAMain.runGA(Unknown Source) >>>>>> at TC1.main(TC1.java:21) >>>>>> ... 10 more >>>>>> Caused by: java.net.URISyntaxException: Relative path in absolute >>>>>> URI: rsrc:ga_test.jar >>>>>> at java.net.URI.checkPath(URI.java:1804) >>>>>> at java.net.URI.(URI.java:752) >>>>>> at org.apache.hadoop.fs.Path.initialize(Path.java:145) >>>>>> ... 27 more >>>>>> >>>>>> Please help!!! >>>>>> >>>>>> -- >>>>>> *-Varsha * >>>>>> >>>>> >>>>> >>>> >>>> >>>> -- >>>> *-Varsha * >>>> >>> >>> >> >> >> -- >> *-Varsha * >> > > -- *-Varsha * --047d7bb04d7e3648e304d97c8d1f Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Thank you! You are right!
=A0I created the jar file usi= ng the command line and not eclipse and it worked!




On Thu, Apr 4, 2013 = at 4:06 AM, Mohammad Tariq <dontariq@gmail.com> wrote:
It seems to be a non-hadoop= issue to me. Is the jar which you are finally creating a runnable jar?We c= an't reference external classes(jars) in a runnable jar file. Everythin= g must be contained inside the jar itself.
On Thu, Apr= 4, 2013 at 3:28 AM, Varsha Raveendran <varsha.raveendran@gmail.= com> wrote:
Thanks for replying!

ver= sion : hadoop 1.1.1

I am creating a jar file called ga_test.ja= r and then placing=A0 it in the build path of another program.
Al= so, I am using eclipse to create another jar file including ga_test.jar as = a reference library. I do not know why hadoop is taking the filename as rsr= c:ga_test.jar.=A0 (Maybe thats where the ":" is coming into the p= icture!)

Thanks!


<= div>


On Thu, Apr 4, 2013 at 3:18 AM,= Mohammad Tariq <dontariq@gmail.com> wrote:
Which version are you using? Could you pl= z show me your code, if possible for you.=A0
Also, how are you running the job? For a detailed explanation you might fin= d this=A0useful.
On Thu, Apr 4, 2013 at 3= :09 AM, Varsha Raveendran <varsha.raveendran@gmail.com> wrote:
=A0But I do not have a ":" in any of my fil= e names.
What could the other reasons be? I am not able to debug = the error..

Thank you for replying.


On Thu, Apr 4, 2013 at 2:02 AM, Mohammad= Tariq <dontariq@gmail.com> wrote:
Hello ma'am,

=A0 =A0Please make sur= e that you don't have ":" in your files.


On Thu, Apr 4, 2013 at 1:50 AM, Varsha R= aveendran <varsha.raveendran@gmail.com> wrote:
=
Hello,

I am facing this error while= trying to run a jar file on hadoop :

13/04/04 01:48:01 INFO mapred.= JobClient: Cleaning up the staging area hdfs://MT2012158:54310/app/hadoop/t= mp/mapred/staging/hduser/.staging/job_201304032344_0008
Exception in thread "main" java.lang.reflect.InvocationTargetExce= ption
=A0=A0=A0 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native M= ethod)
=A0=A0=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMe= thodAccessorImpl.java:57)
=A0=A0=A0 at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMeth= odAccessorImpl.java:43)
=A0=A0=A0 at java.lang.reflect.Method.invoke(Met= hod.java:616)
=A0=A0=A0 at org.eclipse.jdt.internal.jarinjarloader.JarRs= rcLoader.main(JarRsrcLoader.java:58)
=A0=A0=A0 at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)=A0=A0=A0 at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAcces= sorImpl.java:57)
=A0=A0=A0 at sun.reflect.DelegatingMethodAccessorImpl.i= nvoke(DelegatingMethodAccessorImpl.java:43)
=A0=A0=A0 at java.lang.reflect.Method.invoke(Method.java:616)
=A0=A0=A0 = at org.apache.hadoop.util.RunJar.main(RunJar.java:156)
Caused by: java.l= ang.IllegalArgumentException: java.net.URISyntaxException: Relative path in= absolute URI: rsrc:ga_test.jar
=A0=A0=A0 at org.apache.hadoop.fs.Path.initialize(Path.java:148)
=A0=A0= =A0 at org.apache.hadoop.fs.Path.<init>(Path.java:126)
=A0=A0=A0 a= t org.apache.hadoop.mapred.JobClient.copyAndConfigureFiles(JobClient.java:8= 41)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient.copyAndConfigureFile= s(JobClient.java:717)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient.access$400(JobClient.java:1= 79)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient$2.run(JobClient.java= :927)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient$2.run(JobClient.ja= va:912)
=A0=A0=A0 at java.security.AccessController.doPrivileged(Native = Method)
=A0=A0=A0 at javax.security.auth.Subject.doAs(Subject.java:416)
=A0=A0= =A0 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInform= ation.java:1136)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient.submitJ= obInternal(JobClient.java:912)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient.submitJob(JobClient.java:88= 6)
=A0=A0=A0 at org.apache.hadoop.mapred.JobClient.runJob(JobClient.java= :1323)
=A0=A0=A0 at edu.iiitb.config.GAMain.launch(Unknown Source)
= =A0=A0=A0 at edu.iiitb.config.GAMain.run(Unknown Source)
=A0=A0=A0 at org.apache.hadoop.util.ToolRunner.run(ToolRunner.java:65)
= =A0=A0=A0 at edu.iiitb.config.GAMain.runGA(Unknown Source)
=A0=A0=A0 at = TC1.main(TC1.java:21)
=A0=A0=A0 ... 10 more
Caused by: java.net.URISy= ntaxException: Relative path in absolute URI: rsrc:ga_test.jar
=A0=A0=A0 at java.net.URI.checkPath(URI.java:1804)
=A0=A0=A0 at java.net= .URI.<init>(URI.java:752)
=A0=A0=A0 at org.apache.hadoop.fs.Path.i= nitialize(Path.java:145)
=A0=A0=A0 ... 27 more

Please help!= !!

--
= -Varsha=A0




--
<= b>-Varsha=A0




--
<= b>-Varsha=A0




--
-Varsha=A0
--047d7bb04d7e3648e304d97c8d1f--