删除zookeeper中对应表注册信息
进入zookeeper客户端
# zkCli.sh -server 127.0.0.1:2181
列出HBase下所有表结构
[zk: 127.0.0.1:2181(CONNECTED) 1] ls /hbase/table
删除对应表
[zk: 127.0.0.1:2181(CONNECTED) 1] deleteall /hbase/table/CLCC
删除hdfs对应表数据
查看HDFS中对应表的数据
# hadoop dfs -ls /hbase/data/default
删除对应表的数据
# hadoop dfs -rm -r /hbase/data/default/CLCC
删除hbase:meta对应表信息
进入HBase shell
# hBase shell
列出所有表
hbase(main):035:0> list
列出对应表的所有信息(按照需求自己修改STARTROW)
hbase(main):035:0> scan 'hbase:meta', {STARTROW=>'CLCC', LIMIT=>2}
删除语句的结构
注意:rowkey有可能会换行
deleteall 'hbase:meta','rowkey','colume'
挨个删除
deleteall 'hbase:meta','CLCC,,1602734999427.d4c9ded0da391643289a1ea6ef28e55d.','info:sn'
deleteall 'hbase:meta','CLCC,,1602734999427.d4c9ded0da391643289a1ea6ef28e55d.','info:state'
deleteall 'hbase:meta','CLCC,,1602734999427.d4c9ded0da391643289a1ea6ef28e55d.','info:serverstartcode'
deleteall 'hbase:meta','CLCC,,1602734999427.d4c9ded0da391643289a1ea6ef28e55d.','info:server'
deleteall 'hbase:meta','CLCC,,1602734999427.d4c9ded0da391643289a1ea6ef28e55d.','info:seqnumDuringOpen'
deleteall 'hbase:meta','CLCC,,1602732799964.e274da2ef136b17f549a5b48d939f2e9.','info:regioninfo'
deleteall 'hbase:meta','CLCC','table:state'