溫馨提示×

溫馨提示×

您好,登錄后才能下訂單哦!

密碼登錄×
登錄注冊×
其他方式登錄
點擊 登錄注冊 即表示同意《億速云用戶服務(wù)條款》

hbase刪除表報錯的解決方法

發(fā)布時間:2020-07-23 22:56:16 來源:網(wǎng)絡(luò) 閱讀:2108 作者:jingangyh 欄目:關(guān)系型數(shù)據(jù)庫

hbase建表時,如果snappy或者其他壓縮沒有安裝好,在建表時會出現(xiàn)掛起的狀態(tài),并且這張表也刪除不掉,還會給集群帶來影響,最明顯的影響是無法平衡,下面是報錯的現(xiàn)狀,和解決方法:

詳細(xì)內(nèi)容請參考:http://www.itinit.net/thread-1924-1-1.html


hbase(main):012:0> drop 'T21_0513_201301_bigtable'
ERROR: org.apache.hadoop.hbase.TableNotDisabledException:
org.apache.hadoop.hbase.TableNotDisabledException: T21_0513_201301_bigtable
at
org.apache.hadoop.hbase.master.HMaster.checkTableModifiable(HMaster.java:1240)
at
org.apache.hadoop.hbase.master.handler.TableEventHandler.<init>(TableEventHandler.java:70)
at
org.apache.hadoop.hbase.master.handler.DeleteTableHandler.<init>(DeleteTableHandler.java:42)
at org.apache.hadoop.hbase.master.HMaster.deleteTable(HMaster.java:1099)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:601)
at
org.apache.hadoop.hbase.ipc.WritableRpcEngine$Server.call(WritableRpcEngine.java:364)
at
org.apache.hadoop.hbase.ipc.HBaseServer$Handler.run(HBaseServer.java:1345)
 below is the excerpts from webui:
Regions in TransitionRegionStatebd8d2bf3ef04d0f8d3dac5ca2f612f42T21_0513_201301_bigtable,27100750000000000000000000000000000000000000000000000000000,1358994123350.bd8d2bf3ef04d0f8d3dac5ca2f612f42.
state=PENDING_OPEN, ts=Thu Jan 24 16:58:34 CST 2013 (699s ago),
server=hadoop1,60020,1358993820407


四種方法:
 1.) Shut the HBase cluster - go to ZKcli and rmr /hbase - Start HBase

 2.) Move the table, use hbck -fixMeta -fixAssignments, restart the HBase
 (not a great option if there is data on the table)

3.) Force an assign on the region for the table and see if it clears it
 up
 (Should create a new znode)

 4.) Go to ZK Cli and check /hbase for unassigned regions and other data
 correlating with that region and remove it, then restart HBase

disable 'table_name'
drop 'tab-name'
向AI問一下細(xì)節(jié)

免責(zé)聲明:本站發(fā)布的內(nèi)容(圖片、視頻和文字)以原創(chuàng)、轉(zhuǎn)載和分享為主,文章觀點不代表本網(wǎng)站立場,如果涉及侵權(quán)請聯(lián)系站長郵箱:is@yisu.com進(jìn)行舉報,并提供相關(guān)證據(jù),一經(jīng)查實,將立刻刪除涉嫌侵權(quán)內(nèi)容。

AI