hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Vikram Singh Chandel <vikramsinghchan...@gmail.com>
Subject Re: Getting Class not Found Exception while attaching CoProcessor jar( in HDFS) to table
Date Wed, 01 Oct 2014 09:32:16 GMT
Hi Ted

*The Endpoint class is present in the jar*, so why is it not able to find
the class in the jar that i am not able to understand.
But if i add the same jar to the class path of master and all RS it works.
Is there any issue with the command that i am using to attach the jar ? the
same command i have used for earlier version of HBase i.e 0.94.6

On Tue, Sep 30, 2014 at 6:56 PM, Ted Yu <yuzhihong@gmail.com> wrote:

> What endpoint class is in your jar ?
>
> The ClassNotFound exception means the class given by your command cannot
> be found.
>
> Cheers
>
> On Sep 30, 2014, at 4:52 AM, Vikram Singh Chandel <
> vikramsinghchandel@gmail.com> wrote:
>
> > Hi
> >
> > *HBase : 0.98.1 CDH 5.1.1*
> >
> > When i am trying to attach CoPro jar to table in RS logs i am getting
> > following Exceptions
> >
> > ERROR org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost:* Failed
> > to load coprocessor *
> > org.apache.hadoop.hbase.coprocessor.RowCountEndpointCoPro
> > java.io.IOException: *Cannot load external coprocessor class *
> > org.apache.hadoop.hbase.coprocessor.RowCountEndpointCoPro
> >        at
> >
> org.apache.hadoop.hbase.coprocessor.CoprocessorHost.load(CoprocessorHost.java:208)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.loadTableCoprocessors(RegionCoprocessorHost.java:207)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.RegionCoprocessorHost.<init>(RegionCoprocessorHost.java:163)
> >        at
> > org.apache.hadoop.hbase.regionserver.HRegion.<init>(HRegion.java:623)
> >        at
> > org.apache.hadoop.hbase.regionserver.HRegion.<init>(HRegion.java:530)
> >        at sun.reflect.GeneratedConstructorAccessor15.newInstance(Unknown
> > Source)
> >        at
> >
> sun.reflect.DelegatingConstructorAccessorImpl.newInstance(DelegatingConstructorAccessorImpl.java:45)
> >        at java.lang.reflect.Constructor.newInstance(Constructor.java:526)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.HRegion.newHRegion(HRegion.java:4137)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:4448)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:4421)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:4377)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:4328)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:465)
> >        at
> >
> org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:139)
> >        at
> > org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:128)
> >        at
> >
> java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1145)
> >        at
> >
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:615)
> >        at java.lang.Thread.run(Thread.java:745)
> > Caused by: *java.lang.ClassNotFoundException:
> > org.apache.hadoop.hbase.coprocessor.RowCountEndpointCoPro*
> >        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)
> >        at java.net.URLClassLoader.findClass(URLClassLoader.java:354)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:425)
> >        at sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:308)
> >        at java.lang.ClassLoader.loadClass(ClassLoader.java:358)
> >        at
> >
> org.apache.hadoop.hbase.util.CoprocessorClassLoader.loadClass(CoprocessorClassLoader.java:275)
> >        at
> >
> org.apache.hadoop.hbase.coprocessor.CoprocessorHost.load(CoprocessorHost.java:206)
> >
> > *command used to load the jar*
> >
> >
> alter'vsc_sample',METHOD=>'table_att','coprocessor'=>'hdfs://InCites-head.amers1b.ciscloud:8020/user/cloud/ICDS/CoPro/lib/RowCountCoPro0.004.jar|org.apache.hadoop.hbase.coprocessor.RowCountEndpointCoPro|1001'
> >
> >
> >
> >
> > --
> > *Regards*
> >
> > *VIKRAM SINGH CHANDEL*
> >
> > Please do not print this email unless it is absolutely necessary,Reduce.
> > Reuse. Recycle. Save our planet.
>



-- 
*Regards*

*VIKRAM SINGH CHANDEL*

Please do not print this email unless it is absolutely necessary,Reduce.
Reuse. Recycle. Save our planet.

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message