Re: Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Vinod Gupta Tankala
J-D, here is the meta scan file - https://docs.google.com/document/d/1_g2Ce20H65rukrEe8i9UWaW9wskaV34_96ElpOQDsYE/edit?hl=en_US I solved this problem "Chain of regions in table AkStats is broken; edges does not contain 277808094:1314921600:daily:Volume" using combination of check_meta and hbck -fi

Re: Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Rohit Nigam
Try running hbase org.jruby.Main add_table.rb /hbase/tablename This will clean the inconsistencies in .META. table . If you see run hbck again and you see holes in the table then you have to do more effort in cleaning the table. Rohit On Tue, Sep 27, 2011 at 1:23 PM, Jean-Daniel Cryans wrote:

Re: Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Jean-Daniel Cryans
Yes, please send the info I asked. About the hbck errors you had, this is usually fixed with -fix: Region AkStats,277808094:1314921600:daily:Volume,1317052667861.1ecc871503cd827934c3a9077b44e52b. not deployed on any region server. This is "probably" a region that wasn't cleaned up so it's not

Re: Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Vinod Gupta Tankala
J-D, I was getting these errors even after restarting the client. So it probably is not straightforward. Also, I was able to run a combination of check_meta.rb and hbck with their fix options and restore some of the inconsistencies. i still have 4 inconsistencies left (earlier it was 7) but check_m

Re: Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Jean-Daniel Cryans
Hi vinod, Yeah WREs are never fun, hopefully we can help you fixing it. First, about the difference when querying from the shell and your java client. - Is it a long lived client? Did you restart it since you got the WREs? - If not, this could just be due to the fact that it has a cache of reg

Java client throws WrongRegionException but same key accessible via hbase shell

2011-09-27 Thread Vinod Gupta Tankala
I find this hard to believe. For the same row key, my java client is throwing wrong region exception. But I can query the same using hbase shell. Im on 0.90.2 version. Also note that I have inconsistencies in my regions that I am still trying to figure out. But regardless, the inconsistencies shou