以下方法可以实现重命名,以及不同namespace表迁移
hbase shell> disable 'HADP:XXTABNAME'
hbase shell> snapshot 'HADP:XXTABNAME', 'XXTABNAME_SNAP'
hbase shell> clone_snapshot 'XXTABNAME_SNAP', 'PRD:URMTPINF'
hbase shell> delete_snapshot 'XXTABNAME_SNAP'
hbase shell> drop 'HADP:XXTABNAME'
hbase shell> disable 'HADP:XXTABNAME'
hbase shell> snapshot 'HADP:XXTABNAME', 'XXTABNAME_SNAP'
hbase shell> clone_snapshot 'XXTABNAME_SNAP', 'PRD:URMTPINF'
hbase shell> delete_snapshot 'XXTABNAME_SNAP'
hbase shell> drop 'HADP:XXTABNAME'
来自 “ ITPUB博客 ” ,链接:http://blog.itpub.net/308563/viewspace-2136325/,如需转载,请注明出处,否则将追究法律责任。
转载于:http://blog.itpub.net/308563/viewspace-2136325/