Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Hbase Region still in transition after importing snapshot

Highlighted

Hbase Region still in transition after importing snapshot

New Contributor

Let me please explain my problem.

1. I exported data from HBase 1.1.3 using ExportSnapshot, then saved the snapshot to local filesystem. The Hbase instance was 1 node, working only for OpenTSDB.

2. I copied files to a new standalone Hbase 1.2.5 instance (B), in details to $hbase_data_dir/.hbase-snapshot and $hbase_data_dir/archive/data/default

3. I created necessary tables in B and through shell> restore_snapshot, all 4 tables were restored.

Unfortunately, my Hbase is still not working.

scan 'tsdb' results in:

ERROR: No server address listed in hbase:meta for region tsdb,,1485605532334.9290b440cc55492dc16fa5b41c5a8254. containing row 

When I do hbck -repair, I get:

util.HBaseFsckRepair: Region still in transition, waiting for it to become assigned:

In the Web UI:

15203-screen.png

Thank you in advance for your answers.

2 REPLIES 2

Re: Hbase Region still in transition after importing snapshot

You should look at the HBase Master and RegionServer logs to understand why these regions failed to be assigned.

Re: Hbase Region still in transition after importing snapshot

New Contributor

Thank you for your fast answer :)

Here is a piece from logs:

handler.OpenRegionHandler: Failed open of region=tsdb,\x00\x02OX\xB2`\xD0\x00\x00\x01\x00\x97D\x00\x00\x03\x00\x00_\x00\x00\x04\x00\x004,1489718792446.a38ea9c28bd1a11574e831668d80c19f., starting to roll back the global memstore size.
org.apache.hadoop.hbase.DoNotRetryIOException: Compression algorithm 'snappy' previously failed test.
	at org.apache.hadoop.hbase.util.CompressionTest.testCompression(CompressionTest.java:91)
	at org.apache.hadoop.hbase.regionserver.HRegion.checkCompressionCodecs(HRegion.java:6560)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6512)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6479)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6450)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6406)
	at org.apache.hadoop.hbase.regionserver.HRegion.openHRegion(HRegion.java:6357)
	at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.openRegion(OpenRegionHandler.java:362)
	at org.apache.hadoop.hbase.regionserver.handler.OpenRegionHandler.process(OpenRegionHandler.java:129)
	at org.apache.hadoop.hbase.executor.EventHandler.run(EventHandler.java:129)
	at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
	at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
	at java.lang.Thread.run(Thread.java:745)
Don't have an account?
Coming from Hortonworks? Activate your account here