【问题标题】:phoenix hbase table presplit with multiple split points for the same regionphoenix hbase table presplit,同一区域有多个分割点
【发布时间】:2018-02-21 01:30:09
【问题描述】:

我正在使用 apachephoenix 4.9.1hbase-1.1.2。 为了预先分割表格,我在表格创建时使用以下选项

拆分开(0,1,2,3,4,5,6,7,8,9,10)

1) is it possible to split (0&1,2&3,4&5,5&6,6&7,8&9)  like this?

2) i tried merging the regions manually using hbase shell. if i
merge a presplit table to (0&1,2&3,4&5,5&6,6&7,8&9) whether it will
contain the presplit info of both regions?

【问题讨论】:

  • 非常酷的问题 - 我对答案很感兴趣

标签: hadoop hbase phoenix


【解决方案1】:

可以这样拆分 (0&1,2&3,4&5,5&6,6&7,8&9) 吗?'

是的,只需使用 SPLIT ON(1,3,5,7,9)。

在这种情况下,所有 =3 进入第二个拆分,=5 进入第三个拆分,依此类推。

我在这里假设在多个拆分中使用相同的键(例如,4&5、5&6 中的键“5”)是一个错字。您不能在多个拆分中拥有相同的密钥。

2) 我尝试使用 hbase shell 手动合并区域。如果我 将预拆分表合并到 (0&1,2&3,4&5,5&6,6&7,8&9) 是否会 包含两个区域的预拆分信息?

是的,会的。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2017-07-09
    • 2021-06-10
    • 2015-05-05
    相关资源
    最近更新 更多