Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-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 78D89DAD1 for ; Wed, 3 Oct 2012 16:27:10 +0000 (UTC) Received: (qmail 8640 invoked by uid 500); 3 Oct 2012 16:27:08 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 8401 invoked by uid 500); 3 Oct 2012 16:27:08 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 8392 invoked by uid 99); 3 Oct 2012 16:27:08 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 16:27:08 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.216.169] (HELO mail-qc0-f169.google.com) (209.85.216.169) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 03 Oct 2012 16:26:59 +0000 Received: by qcqt2 with SMTP id t2so7530139qcq.14 for ; Wed, 03 Oct 2012 09:26:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:x-originating-ip:in-reply-to:references:date :message-id:subject:from:to:content-type:x-gm-message-state; bh=pHSCPSQxfhAK5WPcFESGJzJcgU/kKcP++42HZuEMhoE=; b=Fiy2OyR/Daomyk9oQ0xdETFYwyEcLM77fQ3FM7clJR2XsaKOz6qbSSmGz8Qvr1FzgR cjSCCeh/KjrGDAuz3xELSGMfmmFI1B6b6pPhU9CObHS9uJzOYokdHUqdr76llSrLx/qS wNcSeO3FCTMUf/XUwcKVTe1MfheN20hW2OHgz8jG3OmuNTv8oCBjywbO+YC1Am7IVgOu MxAffjNhFJX6ZT2DxfrC6SOdFlfy7W4sZWaTyc13yMMC8B5rslcV0mvyQFwEFEThqKhf P1ueHCUHbunpUHxtWhujy5fzPzHuWz6Rjmum0d3OMYv737duEv1GEr/lNC9WSZ2FINGe Sxsg== MIME-Version: 1.0 Received: by 10.49.59.82 with SMTP id x18mr13219365qeq.9.1349281598246; Wed, 03 Oct 2012 09:26:38 -0700 (PDT) Received: by 10.49.72.102 with HTTP; Wed, 3 Oct 2012 09:26:38 -0700 (PDT) X-Originating-IP: [78.55.248.147] In-Reply-To: References: <6BDC06FA-A136-44B1-88FA-26F99F857735@gmail.com> Date: Wed, 3 Oct 2012 18:26:38 +0200 Message-ID: Subject: Re: BigDecimalColumnInterpreter From: Julian Wissmann To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b6d8b285d8f2204cb2a1ad4 X-Gm-Message-State: ALoCoQmD85RP0hln2VyEZT+HjSzBOzZ1i4eQNs9twHHcM8HYI9KDEO3knhBprDSewLJ8LGCv3T3d --047d7b6d8b285d8f2204cb2a1ad4 Content-Type: text/plain; charset=ISO-8859-1 Hi, thank you Anil. I realized I had put the jar only on the master and expected stuff to work from there. I now deployed it on all the regionservers and loaded AggregateImplementation on the regions. It works now. Thank you! 2012/9/29 Robertis Tongbram > For pushing jars to the region servers , i have a small script. > > > > #!/usr/bin/expect -f > > > for {set i 1} {$i < 6} {incr i 1} { > > > spawn scp target/lib.jar root@region-$i:/opt/hbase/hbase-0.92.1/lib/ > expect { > -re ".*es.*o.*" { > exp_send "yes\r" > exp_continue > } > -re ".*sword.*" { > exp_send "p4sSw0rd\r" > } > } > interact > > } > > > > I have my region servers as region-1, region-2 and so on, default > installation is at /opt/hbase/hbase-0.92.1/ > lib.jar is the final jar file that has the classes. > > I put this script where the pom file is ( i have a maven project). > > > > > Hope this helps. > > > Thanks, > Robertis > > > > On Sat, Sep 29, 2012 at 8:35 AM, anil gupta wrote: > > > This ColumnInterpreter is required at the server side. You need to put > the > > jar into the classpath of regionservers. HBase picks up all the jar under > > $hbase_home/lib folder. So you can put the jar containing the BDCI class > in > > this folder. Please make sure that in your client side you are > referencing > > the correct BDCI class(the full name of class at server side should match > > with the ColumnInterpreter class you reference on client side). Once you > > put the jar into lib folder then you will need to restart the cluster > once > > so that the regionserver will the load the jar containing BDCI. > > > > Basically you just need to put the utility class(which i sent a couple of > > weeks ago) into a jar, copy the jar into lib folder, restart the cluster, > > and then run the utility. It should work. > > > > Hope it's clear this time. > > > > Thanks, > > Anil Gupta > > > > On Sat, Sep 29, 2012 at 8:03 AM, Julian Wissmann > > wrote: > > > > > Interesting. Did you put just the ColumnInterpreter into the jar? > > > > > > 2012/9/21 Anil Gupta > > > > > > > I was able to run it successfully once I copied the jar into lib > > folders > > > > of region server and hamster and restarted the cluster. > > > > Did you copied the jar into lib folders of region servers and hmaster > > and > > > > restarted the cluster. If yes, can you share the logs of regionserver > > > > hosting the region test table? > > > > > > > > Best Regards, > > > > Anil > > > > > > > > On Sep 21, 2012, at 4:14 AM, Julian Wissmann < > julian.wissmann@sdace.de > > > > > > > wrote: > > > > > > > > > Hi Anil, > > > > > > > > > > found some time to test it, today. Same error as you get, same > error > > as > > > > > always ;-) > > > > > > > > > > Julian > > > > > > > > > > 2012/9/20 anil gupta > > > > > > > > > >> Hi Julian, > > > > >> > > > > >> I am curious to know whether you got the opportunity to test BDCI > > > > utility i > > > > >> sent last week along with some suggestions on using it? Did it run > > > > >> successfully? > > > > >> > > > > >> I will try to have a look at your unit test over weekend. > > > > >> Thanks, > > > > >> Anil Gupta > > > > >> > > > > >> On Thu, Sep 20, 2012 at 10:29 AM, Julian Wissmann > > > > >> wrote: > > > > >> > > > > >>> Hi, > > > > >>> > > > > >>> as I've also mentioned in the JIRA Issue: > > > > >>> > > > > >>> I've written a Test, but have problems with Medium Tests > requiring > > > > >>> MiniDFSCluster: > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------- > > > > >>> Test set: > org.apache.hadoop.hbase.coprocessor.TestAggregateProtocol > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > ------------------------------------------------------------------------------- > > > > >>> Tests run: 1, Failures: 0, Errors: 1, Skipped: 0, Time elapsed: > > 3.239 > > > > >>> sec <<< FAILURE! > > > > >>> org.apache.hadoop.hbase.coprocessor.TestAggregateProtocol Time > > > elapsed: > > > > >>> 0.001 sec <<< ERROR! > > > > >>> java.lang.NullPointerException > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hdfs.MiniDFSCluster.startDataNodes(MiniDFSCluster.java:422) > > > > >>> at > > > > org.apache.hadoop.hdfs.MiniDFSCluster.(MiniDFSCluster.java:280) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniDFSCluster(HBaseTestingUtility.java:433) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:653) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:603) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.HBaseTestingUtility.startMiniCluster(HBaseTestingUtility.java:590) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.coprocessor.TestAggregateProtocol.setupBeforeClass(TestAggregateProtocol.java:77) > > > > >>> at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25) > > > > >>> at java.lang.reflect.Method.invoke(Method.java:597) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.junit.runners.model.FrameworkMethod$1.runReflectiveCall(FrameworkMethod.java:45) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.junit.internal.runners.model.ReflectiveCallable.run(ReflectiveCallable.java:15) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.junit.runners.model.FrameworkMethod.invokeExplosively(FrameworkMethod.java:42) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > org.junit.internal.runners.statements.RunBefores.evaluate(RunBefores.java:27) > > > > >>> at > > > > >>> > > > > >> > > > > > > > > > > org.junit.internal.runners.statements.RunAfters.evaluate(RunAfters.java:30) > > > > >>> at org.junit.runners.ParentRunner.run(ParentRunner.java:300) > > > > >>> at org.junit.runners.Suite.runChild(Suite.java:128) > > > > >>> at org.junit.runners.Suite.runChild(Suite.java:24) > > > > >>> at org.junit.runners.ParentRunner$3.run(ParentRunner.java:231) > > > > >>> at > > > > >> > > > java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441) > > > > >>> at > > java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303) > > > > >>> at java.util.concurrent.FutureTask.run(FutureTask.java:138) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886) > > > > >>> at > > > > >>> > > > > >>> > > > > >> > > > > > > > > > > java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908) > > > > >>> at java.lang.Thread.run(Thread.java:662) > > > > >>> > > > > >>> Therefor I have not been able to do a run of the test, yet. > However > > > if > > > > >>> someone would be willing to run it I can just attach it to the > > issue. > > > > >>> > > > > >>> Regards, > > > > >>> Julian > > > > >>> > > > > >>>> Hi Ted, > > > > >>>> > > > > >>>> I've been unable to squeeze time for writing unit test for BDCI > > due > > > to > > > > >> my > > > > >>>> tight schedule lately. I will try to submit the patch with unit > > test > > > > >> next > > > > >>>> week. > > > > >>>> > > > > >>>> Thanks, > > > > >>>> Anil > > > > >>>> > > > > >>>> On Sat, Sep 15, 2012 at 7:56 AM, Ted Yu > > > wrote: > > > > >>>> > > > > >>>>> Anil: > > > > >>>>> Thanks for the sharing. > > > > >>>>> If you add a test to HBASE-6669 showing use of > > > > >>> BigDecimalColumnInterpreter, > > > > >>>>> your patch would be more easily acceptable. > > > > >>>>> > > > > >>>>> Cheers > > > > >>>>> > > > > >>>>> On Fri, Sep 14, 2012 at 3:17 PM, anil gupta < > > anilgupta84@gmail.com > > > > > > > > >>> wrote: > > > > >>>>> > > > > >>>>>> Hi Guys, > > > > >>>>>> > > > > >>>>>> The regionservers need to have the jar which contains the > > > > >>>>>> BigDecimalColumnInterpreter class in their classpath. I was > > > > >>> successfully > > > > >>>>>> able to run the utility class once i copied the jar across the > > > > >> cluster > > > > >>>>> and > > > > >>>>>> rebooted the cluster. Also, please specify the following > > property > > > in > > > > >>>>>> hbase-site.xml to load the co-processor: > > > > >>>>>> > > > > >>>>>> hbase.coprocessor.region.classes > > > > >>>>>> > > > > >>>>>> > > > > >>>>> > > > > >>> > > > > >> > > > > > > > > > > org.apache.hadoop.hbase.coprocessor.AggregateImplementation > > > > >>>>>> > > > > >>>>>> > > > > >>>>>> Let me know once you guys try this out. > > > > >>>>>> > > > > >>>>>> Thanks, > > > > >>>>>> Anil Gupta > > > > >>>>>> > > > > >>>>>> > > > > >>>> > > > > >>>> > > > > >>> > > > > >>> > > > > >> > > > > >> > > > > >> -- > > > > >> Thanks & Regards, > > > > >> Anil Gupta > > > > >> > > > > > > > > > > > > > > > -- > > Thanks & Regards, > > Anil Gupta > > > --047d7b6d8b285d8f2204cb2a1ad4--