hbase-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Sergey Belousov <sergey.belou...@gmail.com>
Subject Splitting table from HBase shell using script
Date Fri, 17 Apr 2015 16:41:08 GMT
Hi all

I was looking into doing some splitting for the table (sort of in
production so I can not use SPLITS on create time) using 'split' command
from HBase shell. (0.98.9-hadoop2)
I have simple JRuby script where I just run 'split'
'table_name','split_key' command using hbase shell /tmp/split_table.rb

Time from time I have this error coming up

ERROR: org.apache.hadoop.hbase.NotServingRegionException: Region

[****************eaten by
mouse***************],1429257507107.82bfbd974d36db11075e4ef1da7abfed.
is not online on ******************,60020,1429256987509
	at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegionByEncodedName(HRegionServer.java:2780)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.getRegion(HRegionServer.java:4337)
	at org.apache.hadoop.hbase.regionserver.HRegionServer.splitRegion(HRegionServer.java:4042)
	at org.apache.hadoop.hbase.protobuf.generated.AdminProtos$AdminService$2.callBlockingMethod(AdminProtos.java:20170)
	at org.apache.hadoop.hbase.ipc.RpcServer.call(RpcServer.java:2029)
	at org.apache.hadoop.hbase.ipc.CallRunner.run(CallRunner.java:108)
	at org.apache.hadoop.hbase.ipc.RpcExecutor.consumerLoop(RpcExecutor.java:112)
	at org.apache.hadoop.hbase.ipc.RpcExecutor$1.run(RpcExecutor.java:92)
	at java.lang.Thread.run(Thread.java:745)



Even thou sleep(2) help mostly it's not guaranty (especially on live
cluster) and not the solution I would like.

So my question is what would be proper way of checking that I am good to
run next split command?


Thank you
SB

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message