hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Puri, Aseem" <Aseem.P...@Honeywell.com>
Subject RE: Exception in rowcount program
Date Thu, 23 Apr 2009 12:55:10 GMT
I am running the code on eclipse and set all external Hadoop and HBase
jar file path there

Aseem Puri

-----Original Message-----
From: Ryan Smith [mailto:ryan.justin.smith@gmail.com] 
Sent: Thursday, April 23, 2009 6:19 PM
To: hbase-user@hadoop.apache.org
Subject: Re: Exception in rowcount program

Looks like you need to put the hbase jar on HADOOP's Classpath.
Hadoop's
classpath can be configured in hadoop/conf/hadoop-env.sh


On Thu, Apr 23, 2009 at 8:29 AM, Puri, Aseem
<Aseem.Puri@honeywell.com>wrote:

> Hi
>
>            When I am implementing rowcount program it is throwing a
> exception:
>
>
>
> 09/04/23 17:35:50 INFO mapred.TableInputFormatBase: split: 0->slave:,
>
> 09/04/23 17:35:55 INFO mapred.JobClient: Running job:
> job_200904231131_0011
>
> 09/04/23 17:35:56 INFO mapred.JobClient:  map 0% reduce 0%
>
> 09/04/23 17:36:14 INFO mapred.JobClient: Task Id :
> attempt_200904231131_0011_m_000000_0, Status : FAILED
>
> java.lang.RuntimeException: java.lang.RuntimeException:
> java.lang.ClassNotFoundException:
> org.apache.hadoop.hbase.io.ImmutableBytesWritable
>
>      at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:752)
>
>      at
>
org.apache.hadoop.mapred.JobConf.getMapOutputKeyClass(JobConf.java:477)
>
>      at
>
org.apache.hadoop.mapred.JobConf.getOutputKeyComparator(JobConf.java:551
> )
>
>      at
>
org.apache.hadoop.mapred.MapTask$MapOutputBuffer.<init>(MapTask.java:508
> )
>
>      at org.apache.hadoop.mapred.MapTask.run(MapTask.java:305)
>
>      at org.apache.hadoop.mapred.Child.main(Child.java:158)
>
> Caused by: java.lang.RuntimeException:
java.lang.ClassNotFoundException:
> org.apache.hadoop.hbase.io.ImmutableBytesWritable
>
>      at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:720)
>
>      at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:744)
>
>      ... 5 more
>
> Caused by: java.lang.ClassNotFoundException:
> org.apache.hadoop.hbase.io.ImmutableBytesWritable
>
>      at java.net.URLClassLoader$1.run(URLClassLoader.java:200)
>
>      at java.security.AccessController.doPrivileged(Native Method)
>
>      at java.net.URLClassLoader.findClass(URLClassLoader.java:188)
>
>      at java.lang.ClassLoader.loadClass(ClassLoader.java:307)
>
>      at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:301)
>
>      at java.lang.ClassLoader.loadClass(ClassLoader.java:252)
>
>      at java.lang.ClassLoader.loadClassInternal(ClassLoader.java:320)
>
>      at java.lang.Class.forName0(Native Method)
>
>      at java.lang.Class.forName(Class.java:247)
>
>      at
>
org.apache.hadoop.conf.Configuration.getClassByName(Configuration.java:6
> 73)
>
>      at
> org.apache.hadoop.conf.Configuration.getClass(Configuration.java:718)
>
>      ... 6 more
>
>
>
> Can anybody tell me how can I resolve this exception.
>
>
>
> Thanks & Regards
>
> Aseem Puri
>
>
>
>
>
>

Mime
View raw message