首页 新闻 会员 周边 捐助

HBase 创建表,表存在和不存在的问题

0
悬赏园豆:10 [待解决问题]

hbase(main):004:0> exists 'test'
Table test does not exist
0 row(s) in 0.0980 seconds

hbase(main):005:0> create 'test','cf'

ERROR: Table already exists: test!

Here is some help for this command:
Create table; pass table name, a dictionary of specifications per
column family, and optionally a dictionary of table configuration.
Dictionaries are described below in the GENERAL NOTES section.
Examples:

hbase> create 't1', {NAME => 'f1', VERSIONS => 5}
hbase> create 't1', {NAME => 'f1'}, {NAME => 'f2'}, {NAME => 'f3'}
hbase> # The above in shorthand would be the following:
hbase> create 't1', 'f1', 'f2', 'f3'
hbase> create 't1', {NAME => 'f1', VERSIONS => 1, TTL => 2592000, BLOCKCACHE => true}
hbase> create 't1', 'f1', {SPLITS => ['10', '20', '30', '40']}
hbase> create 't1', 'f1', {SPLITS_FILE => 'splits.txt'}
hbase> # Optionally pre-split the table into NUMREGIONS, using
hbase> # SPLITALGO ("HexStringSplit", "UniformSplit" or classname)
hbase> create 't1', 'f1', {NUMREGIONS => 15, SPLITALGO => 'HexStringSplit'}

youcheng1的主页 youcheng1 | 初学一级 | 园豆:63
提问于:2013-12-20 15:25
< >
分享
所有回答(1)
0

解决了没有?我也遇到这个问题了...求解答

百度 | 园豆:202 (菜鸟二级) | 2015-03-18 11:38
清除回答草稿
   您需要登录以后才能回答,未注册用户请先注册