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 <[email protected]> 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 <[email protected]>
> 
>> 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
>> <[email protected]>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.<init>(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 <[email protected]> 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 <[email protected]>
>>> 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:
>>>>>> <property>
>>>>>>        <name>hbase.coprocessor.region.classes</name>
>>>>>> 
>>>>>> 
>>>>> 
>>> 
>> <value>org.apache.hadoop.hbase.coprocessor.AggregateImplementation</value>
>>>>>> </property>
>>>>>> 
>>>>>> Let me know once you guys try this out.
>>>>>> 
>>>>>> Thanks,
>>>>>> Anil Gupta
>>>>>> 
>>>>>> 
>>>> 
>>>> 
>>> 
>>> 
>> 
>> 
>> --
>> Thanks & Regards,
>> Anil Gupta
>> 

Reply via email to