hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ryan Smith <ryan.justin.sm...@gmail.com>
Subject Re: Exception in rowcount program
Date Thu, 23 Apr 2009 13:30:21 GMT
On the master node, there should be a conf/hadoop-env.sh file.  Do you have
this file?

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

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message