First, please update from 0.20.4.  It has well-known deadlock.  Go to 0.20.6.

Second, can you verify you indeed have a hole in your table?   Dump
the .META. content to a file first.  This might make debugging easier:

$ echo "scan '.META.'" | ./bin/hbase shell > /tmp/meta.txt

Then, taking the row below, try and elicit which region range is
responsible or is there a hole where this row would land (remember
regions are demarced by a start row (inclusive) and end row
(exclusive)).  Otherwise, if the region IS online, try fetching from
it.  Try fetching its startrow.  Do you get same issue as below?

Next, grep this problematic region in the master logs.  Try to figure
its provenance.  What happened to it when?  Where was it deployed?  Is
it doubly-assigned (something that could happen back in 0.20.4 days w/
a higher frequency).

See how far you get with the above then come back here with what you've learned.

Good luck.
St.Ack

On Wed, Jan 12, 2011 at 3:13 AM, Stanley Xu <[email protected]> wrote:
> Dear All,
>
> We are using the hbase 0.20.4 on a project, and met the following errors
> while insert/update some data to the table today:
>
> org.apache.hadoop.hbase.client.RetriesExhaustedException: Trying to contact
> region server Some server, retryOnlyOne=true, index=0, islastrow=false,
> tries=9, numtries=10, i=0, listsize=2, region=URLTag,
> http://msn.ynet.com/view.jsp\x3Foid=76005602\x26pageno=7,1294655021916<http://msn.ynet.com/view.jsp%5Cx3Foid=76005602%5Cx26pageno=7,1294655021916>
> for
> region URLTag,
> http://msn.ent.ynet.com/view.jsp\x3Foid=49939357\x26pageno=10,1294742159472<http://msn.ent.ynet.com/view.jsp%5Cx3Foid=49939357%5Cx26pageno=10,1294742159472>,
> row 
> 'http://msn.ent.ynet.com/view.jsp\x3Foid=75954594<http://msn.ent.ynet.com/view.jsp%5Cx3Foid=75954594>',
> but failed after 10 attempts.
> Exceptions:
>
> at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers$Batch.process(HConnectionManager.java:1167)
> ~[hbase-0.20.4.jar:na]
> at
> org.apache.hadoop.hbase.client.HConnectionManager$TableServers.processBatchOfRows(HConnectionManager.java:1248)
> ~[hbase-0.20.4.jar:na]
> at org.apache.hadoop.hbase.client.HTable.flushCommits(HTable.java:666)
> ~[hbase-0.20.4.jar:na]
> at org.apache.hadoop.hbase.client.HTable.put(HTable.java:510)
> ~[hbase-0.20.4.jar:na]
> at
> com.mediav.contextual.targeting.batch.job.HBaseTaggingJob$HBaseTaggingThread.run(HBaseTaggingJob.java:164)
> ~[crawler-server.jar:na]
> at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:441)
> [na:1.6.0_22]
> at java.util.concurrent.FutureTask$Sync.innerRun(FutureTask.java:303)
> [na:1.6.0_22]
> at java.util.concurrent.FutureTask.run(FutureTask.java:138) [na:1.6.0_22]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.runTask(ThreadPoolExecutor.java:886)
> [na:1.6.0_22]
> at
> java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:908)
> [na:1.6.0_22]
> at java.lang.Thread.run(Thread.java:662) [na:1.6.0_22]
>
> I have searched the mail list and find the following link:
> http://search-hadoop.com/m/ile3u1vHa0z1/Trying+to+contact+region+server+Some+server+0.20.4+2278&subj=error+adding+row+to+table+in+0+20+4
>
> Which has the same log as what I met, I am wondering to know if this kind of
> "hole" between regions is a bug?  Or we just use the hbase in a wrong way?
> And is there anyway I could fix it except merging the regions permanently if
> it is a bug in hbase? Like upgrade to a newer version of hbase?
>
> We could fix this by merge the regions that has the problem, but I guess we
> will then meet it again.
>
> Best wishes,
> Stanley Xu
>

Reply via email to