Re: hbase coprocessor unit testing

2012-04-19 Thread Marcin Cylke
On 17/04/12 18:45, Alex Baranau wrote: I don't think that your error is related to CPs stuff. What lib versions do you use? Can you compare with those of the HBaseHUT pom? Ok, I've managed to track down the source of my error. If I do normal Put modifications in my prePut/postPut method

Re: hbase coprocessor unit testing

2012-04-19 Thread Marcin Cylke
On 17/04/12 18:45, Alex Baranau wrote: I don't think that your error is related to CPs stuff. What lib versions do you use? Can you compare with those of the HBaseHUT pom? Ok, I've managed to track down the source of my error. If I do normal Put modifications in my prePut/postPut method

Re: hbase coprocessor unit testing

2012-04-19 Thread Alex Baranau
Are you sure you need to do table.close() after each put? Looks incorrect. Alex Baranau -- Sematext :: http://blog.sematext.com/ :: Solr - Lucene - Hadoop - HBase On Thu, Apr 19, 2012 at 2:48 AM, Marcin Cylke m...@touk.pl wrote: On 17/04/12 18:45, Alex Baranau wrote: I don't think that

Re: [ hbase ] Re: hbase coprocessor unit testing

2012-04-17 Thread Marcin Cylke
On 16/04/12 16:49, Alex Baranau wrote: Here's some code that worked for me [1]. You may also find useful to look at the pom's dependencies [2]. Thanks, Your cluster initialization is certainly more elegant than what I had. However it still gives me the same error as I reported. Moreover, I've

Re: [ hbase ] Re: hbase coprocessor unit testing

2012-04-17 Thread Alex Baranau
Just tried to do a clean clone, then $ mvn -Dtest=TestHBaseHutCps test went well [1]. How long does it take for test to fail when you run it? Some sanity checks: 1) make sure you don't have 127.0.1.1 in your /etc/hosts (only 127.0.0.1) 2) make sure there are no hbase/hadoop processes running

Re: hbase coprocessor unit testing

2012-04-17 Thread Marcin Cylke
On 17/04/12 15:15, Alex Baranau wrote: Hi Some sanity checks: 1) make sure you don't have 127.0.1.1 in your /etc/hosts (only 127.0.0.1) I've removed this entry and it worked right away :) Could You explain why it did so big difference? Now the test from HBaseHUT works fine, but mine code is

Re: [ hbase ] Re: hbase coprocessor unit testing

2012-04-17 Thread Marcin Cylke
On 16/04/12 16:49, Alex Baranau wrote: Here's some code that worked for me [1]. You may also find useful to look at the pom's dependencies [2]. Thanks, Your cluster initialization is certainly more elegant than what I had. However it still gives me the same error as I reported. Moreover, I've

Re: hbase coprocessor unit testing

2012-04-17 Thread Alex Baranau
I don't think that your error is related to CPs stuff. What lib versions do you use? Can you compare with those of the HBaseHUT pom? Re 127.0.1.1 vs 127.0.0.1 - what your hosts file looked like before and now? I think it's just the issue with resolving IP - at one place it resolves using

Re: hbase coprocessor unit testing

2012-04-16 Thread Alex Baranau
Here's some code that worked for me [1]. You may also find useful to look at the pom's dependencies [2]. Alex Baranau -- Sematext :: http://blog.sematext.com/ :: Solr - Lucene - Hadoop - HBase [1] From