Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 064AEE38F for ; Thu, 14 Feb 2013 18:42:01 +0000 (UTC) Received: (qmail 22247 invoked by uid 500); 14 Feb 2013 18:42:00 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 22210 invoked by uid 500); 14 Feb 2013 18:42:00 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 22190 invoked by uid 99); 14 Feb 2013 18:41:59 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 18:41:59 +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 cypris87@gmail.com designates 74.125.82.169 as permitted sender) Received: from [74.125.82.169] (HELO mail-we0-f169.google.com) (74.125.82.169) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 14 Feb 2013 18:41:54 +0000 Received: by mail-we0-f169.google.com with SMTP id t11so2249038wey.14 for ; Thu, 14 Feb 2013 10:41:32 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:date:message-id:subject:from:to :content-type; bh=ChaKCCUJ3utfRVFhcbQ8KiiQLVCo0UNA46/oo7s857g=; b=xhsfb/P1tlFwDVL+d6D6R/ezLHS2p+anwU0Nz8kb66p1xhsVRTaF3td2W1ygPpK44K 7AJj7UTR1NsRWXSV1QI5nzaPtEjO4Gf11xGA8OtU8ZcX1YJ4hF1fkEcZxI2wSDnZ2L9Z 7Y2YxkD4NzYARPs7ZzKRdC6fJ6o+S9KWnZ8eq3jfUF+tXi+BO4yfdgR1CVaEvHU0Jh+a /tA0YEjTsEiwBB1uAF4X/0PTDhCvVRU+cAwjv6RoW7r2RBR+eoYiWNDgXiQhJuOlNv33 1RW/cKflTvK+KIj5P56E+OFYqoz1pIRcp3mwGPeEp7UbOYRdbzLIpN7MoirdWpr99vAx p90Q== MIME-Version: 1.0 X-Received: by 10.180.81.164 with SMTP id b4mr1189532wiy.34.1360867292856; Thu, 14 Feb 2013 10:41:32 -0800 (PST) Received: by 10.194.139.51 with HTTP; Thu, 14 Feb 2013 10:41:32 -0800 (PST) Date: Thu, 14 Feb 2013 13:41:32 -0500 Message-ID: Subject: Jobs failing with ClassNotFoundException From: Chris Sigman To: user Content-Type: multipart/alternative; boundary=14dae9cc9fbe93c06704d5b39b50 X-Virus-Checked: Checked by ClamAV on apache.org --14dae9cc9fbe93c06704d5b39b50 Content-Type: text/plain; charset=ISO-8859-1 Hi everyone, I've got a job I'm running that I can't figure out why it's failing. I've tried running jobs from the examples, and they work just fine. I'm running the job via > ./bin/tool.sh ~/MovingAverage.jar movingaverage.MAJob inst namenode root pass stockdata movingaverage which I see is running the following exec call that seems perfect to me: exec /usr/lib/hadoop/bin/hadoop jar /MovingAverage.jar movingaverage.MAJob -libjars "/opt/accumulo/lib/libthrift-0.6.1.jar,/opt/accumulo/lib/ accumulo-core-1.4.2.jar,/usr/lib/zookeeper//zookeeper-3.3. 5-cdh3u5.jar,/opt/accumulo/lib/cloudtrace-1.4.2.jar,/opt/ accumulo/lib/commons-collections-3.2.jar,/opt/accumulo/lib/commons- configuration-1.5.jar,/opt/accumulo/lib/commons-io-1.4. jar,/opt/accumulo/lib/commons-jci-core-1.0.jar,/opt/ accumulo/lib/commons-jci-fam-1.0.jar,/opt/accumulo/lib/ commons-lang-2.4.jar,/opt/accumulo/lib/commons-logging- 1.0.4.jar,/opt/accumulo/lib/commons-logging-api-1.0.4.jar" inst namenode root pass tmpdatatable movingaverage but when the job runs, it gets to the map phase and fails: 13/02/14 13:25:26 INFO mapred.JobClient: Task Id : attempt_201301171408_0293_m_000000_0, Status : FAILED java.lang.RuntimeException: java.lang.ClassNotFoundException: org.apache.accumulo.core.client.mapreduce.AccumuloInputFormat at org.apache.hadoop.conf.Configuration.getClass( Configuration.java:1004) at org.apache.hadoop.mapreduce.JobContext.getInputFormatClass( JobContext.java:205) at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:606) at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323) at org.apache.hadoop.mapred.Child$4.run(Child.java:266) at java.security.AccessController.doPrivileged(Native Method) at javax.security.auth.Subject.doAs(Subject.java:415) at org.apache.hadoop.security.UserGroupInformation.doAs( UserGroupInformation.java:1278) at org.apache.hadoop.mapred.Child.main(Child.java:260) Caused by: java.lang.ClassNotFoundException: org.apache.accumulo.core. client.mapreduce.AccumuloInputFormat at java.net.URLClassLoader$1.run(URLClassLoader.java:366) at java.net.URLClassLoader$1.run(URLClassLoader.java:355) at java.security.AccessController.doPrivileged(Native Method) I've also tried hacking it to work by adding the accumulo-core jar to hadoop's lib dir, but that doesn't seem to work either. Thanks for any help, -- Chris --14dae9cc9fbe93c06704d5b39b50 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable
Hi everyone,

I've got a job I= 'm running that I can't figure out why it's failing. =A0I'v= e tried running jobs from the examples, and they work just fine. =A0I'm= running the job via

>=A0./bin/tool.sh ~/MovingAverage.jar movingaver= age.MAJob inst namenode root pass stockdata movingaverage

which I see is running the following exec call that seems perfe= ct to me:

exec /usr/lib/hadoop/bin/hadoop jar /MovingAverage.j= ar movingaverage.MAJob -libjars "/opt/accumulo/lib/libthrift-0.6.1.jar,= /opt/accumulo/lib/accumulo-core-1.4.2.jar,/usr/lib/zookeeper//zookeeper-3.3.<= /span>5-= cdh3u5.jar,/opt/accumulo/lib/cloudtrace-1.4.2.jar,/opt/accumulo/lib/commons-<= /span>co= llections-3.2.jar,/opt/accumulo/lib/commons-configuration-1.5.jar,/opt/accumul= o/lib/commons-io-1.4.jar,/opt/accumulo/lib/commons-jci-core-1.0.jar,/opt/accum= ulo/lib/commons-jci-fam-1.0.jar,/opt/accumulo/lib/commons-lang-2.4.jar,/opt/<= /span>ac= cumulo/lib/commons-logging-1.0.4.jar,/opt/accumulo/lib/commons-logging-api-1.= 0.4.jar" inst namenode root pass tmpdatatable movingaverage

but when the job runs, it gets to the m= ap phase and fails:=A0

13/02/14 13:25:26 INFO mapred.JobClient: Task Id : a= ttempt_201301171408_0293_m_000000_0, Status : FAILED
java.lan= g.RuntimeException: java.lang.ClassNotFoundException: org.apache.accumulo.co= re.client.mapreduce.AccumuloInputFormat
=A0=A0= =A0 at org.apache.hadoop.conf.Configuration.getClass(Configuration.java:1004)=
=A0=A0= =A0 at org.apache.hadoop.mapreduce.JobContext.getInputFormatClass(JobContext.j= ava:205)
=A0=A0= =A0 at org.apache.hadoop.mapred.MapTask.runNewMapper(MapTask.java:606)=
=A0=A0= =A0 at org.apache.hadoop.mapred.MapTask.run(MapTask.java:323)
=A0=A0= =A0 at org.apache.hadoop.mapred.Child$4.run(Child.java:266)
=A0=A0= =A0 at java.security.AccessController.doPrivileged(Native Method)
=A0=A0= =A0 at javax.security.auth.Subject.doAs(Subject.java:415)
=A0=A0= =A0 at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformat= ion.java:1278)
=A0=A0= =A0 at org.apache.hadoop.mapred.Child.main(Child.java:260)
Caused b= y: java.lang.ClassNotFoundException: org.apache.accumulo.core.client.mapreduc= e.AccumuloInputFormat
=A0=A0= =A0 at java.net.URLClassLoader$1.run(URLClassLoader.java:366)
=A0=A0= =A0 at java.net.URLClassLoader$1.run(URLClassLoader.java:355)
=A0=A0= =A0 at java.security.AccessController.doPrivileged(Native Method)

I've also tried hacking it to work = by adding the accumulo-core jar to hadoop's lib dir, but that doesn'= ;t seem to work either.

Thanks for any help,
--
Chris
--14dae9cc9fbe93c06704d5b39b50--