分享

【已解决】hbase表存在不存在问题

高帝斯法则 发表于 2014-10-14 08:41:47 [显示全部楼层] 回帖奖励 阅读模式 关闭右栏 7 33797
本帖最后由 高帝斯法则 于 2014-12-26 17:01 编辑

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'}
神奇的错误,求大神帮忙,怎么解决这个问题

已有(7)人评论

跳转到指定楼层
高帝斯法则 发表于 2014-10-14 10:13:03
回复

使用道具 举报

muyannian 发表于 2014-10-14 11:30:13
回复

使用道具 举报

desehawk 发表于 2014-10-14 11:44:02
表示围观,解决神速啊, 比飞机都快
回复

使用道具 举报

高帝斯法则 发表于 2014-10-14 22:55:45
回复

使用道具 举报

chuyuan_zhou 发表于 2014-12-26 16:51:59
飘过,学习学习!
回复

使用道具 举报

kanwei163 发表于 2014-12-30 20:08:06
高帝斯法则 发表于 2014-10-14 10:13
解决办法:
通过./hbase zkcli命令进入zookeeper client模式,在zk client模式下输入ls /hbase/table命令 ...

如果不通过删除znode和重启hbase,能有解决办法么?
回复

使用道具 举报

高帝斯法则 发表于 2014-12-31 08:14:05
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则

关闭

推荐上一条 /2 下一条