hbase(main):005:0> truncate 'fr:test'
Truncating 'FaceBase' table (it may take a while):
- Disabling table...
- Dropping table...
- Creating table...
0 row(s) in 14.4220 seconds
truncate是disable、drop、create三个动作的自动化集成。
删除表时需要先进行禁用,
disable 'emp'
drop 'emp'