Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Tom Brown
Yes, the jar file contains all the required classes. On Mon, Oct 27, 2014 at 5:23 PM, Gary Helmling wrote: > If you are configuring the coprocessor via > hbase.coprocessor.region.classes, then it is a region endpoint. > > For the moment, only table-configured coprocessors support loading > from

Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Gary Helmling
If you are configuring the coprocessor via hbase.coprocessor.region.classes, then it is a region endpoint. For the moment, only table-configured coprocessors support loading from a jar file in HDFS. Coprocessors configured in hbase-site.xml need to be resolvable on the regionserver's classpath. I

Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Tom Brown
I tried to attach the coprocessor directly to a table, and it is able to load the coprocessor class. Unfortunately, when I try and use the coprocessor I get a ClassNotFoundException on one of the supporting classes required by the coprocessor. It's almost as if the ClassLoader used to load the cop

Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Tom Brown
I'm not sure how to tell if it is a region endpoint or a region server endpoint. I have not had to explicitly associate the coprocessor with the table before (it is loaded via "hbase.coprocessor.region.classes" in hbase-site.xml), so it might be a region server endpoint. However, the coprocessor c

Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Gary Helmling
Hi Tom, First off, are you talking about a region endpoint (vs. master endpoint or region server endpoint)? As long as you are talking about a region endpoint, the endpoint coprocessor can be configured as a table coprocessor, the same as a RegionObserver. You can see an example and description

Re: How to deploy coprocessor via HDFS

2014-10-27 Thread Sean Busbey
Are you attempting to add the coprocessor via hbase-site.xml or via the shell? If the HBase Shell, check out chapter 13.3.2 in the ref guide[1]. It walks through loading an example. The given file path is just a URL that gets handed directly to Hadoop's Path class, so the example you gave would ma

Re: Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Sean Busbey
Hi Benjamin, This is expected behavior. Commons Lang 3 is not backwards compatible with Commons Lang 2.x. They use different java packages in an effort to ease projects that have to rely on both while transitioning. -Sean On Mon, Oct 27, 2014 at 9:50 AM, Sznajder ForMailingList < bs4mailingl...

How to deploy coprocessor via HDFS

2014-10-27 Thread Tom Brown
Is it possible to deploy an endpoint coprocessor via HDFS or must I distribute the jar file to each regionserver individually? In my testing, it appears the endpoint coprocessors cannot be loaded from HDFS, though I'm not at all sure I'm doing it right (are delimiters ":" or "|", when I use "hdfs:

Re: Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
By the way, Ted, when I am adding hbase-site.xml to the classpath, I do not see it changes something.. Benjamin On Mon, Oct 27, 2014 at 6:24 PM, Sznajder ForMailingList < bs4mailingl...@gmail.com> wrote: > Yes. my apologize, I did not mention it... > > Benjamin > > On Mon, Oct 27, 2014 at 5:55 P

Re: Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
Yes. my apologize, I did not mention it... Benjamin On Mon, Oct 27, 2014 at 5:55 PM, Ted Yu wrote: > Have you solved the problem reported in this thread ? > > http://search-hadoop.com/m/DHED4sVPwz1 > > Cheers > > On Mon, Oct 27, 2014 at 7:54 AM, Sznajder ForMailingList < > bs4mailingl...@gmail.

Re: Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Ted Yu
Have you solved the problem reported in this thread ? http://search-hadoop.com/m/DHED4sVPwz1 Cheers On Mon, Oct 27, 2014 at 7:54 AM, Sznajder ForMailingList < bs4mailingl...@gmail.com> wrote: > Hi, > > I am running from my Eclipse on Windows (using Java 1.6) a simple API call > to Hbase 0.98.5

Connection via API to Hbase installation - Stuck after HbaseAdmin

2014-10-27 Thread Sznajder ForMailingList
Hi, I am running from my Eclipse on Windows (using Java 1.6) a simple API call to Hbase 0.98.5 installed on a remote cluster. The call admin = new HBaseAdmin(conf); passes.. However, the next line admin.listTables(); is *stuck* forever. Do you have any hints?! Best regards Benjamin

Re: Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Sznajder ForMailingList
Many thanks! Strangely, when adding commons-lang 3.2, it failed. Adding back the 2.6 it worked! On Mon, Oct 27, 2014 at 4:10 PM, Ted Yu wrote: > Which release of HBase are you using ? > If 0.98.x, here is the dependency on commons-lang: > 2.6 > > Cheers > > On Mon, Oct 27, 2014 at 7:03 AM

Re: Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Ted Yu
Which release of HBase are you using ? If 0.98.x, here is the dependency on commons-lang: 2.6 Cheers On Mon, Oct 27, 2014 at 7:03 AM, Sznajder ForMailingList < bs4mailingl...@gmail.com> wrote: > Hi > > I want to connect from my windows laptop to an installed HBASE > > When running the code ,

Connection via API to Hbase installation - java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils

2014-10-27 Thread Sznajder ForMailingList
Hi I want to connect from my windows laptop to an installed HBASE When running the code , I get the following error: java.lang.NoClassDefFoundError: org/apache/commons/lang/ArrayUtils at org.apache.hadoop.hbase.HConstants.(HConstants.java:907) at org.apache.hadoop.hbase.client.HConnectio