Hbase shell中List命令与exists 命令
List命令用于列出HBase中所有的表格,语法为:
list
exists命令用于检查一个表格是否存在,语法为:
exists '<table_name>'
其中,<table_name>为表格名称。
示例:
列出所有表格:
hbase(main):001:0> list
TABLE
test_table
1 row(s) in 0.0130 seconds
检查表格是否存在:
hbase(main):001:0> exists 'test_table'
true
如果表格不存在,则返回false。
原文地址: https://www.cveoy.top/t/topic/gCY7 著作权归作者所有。请勿转载和采集!