如何解析Zookeeper /hbase/region-in-transition子节点存储的数据?
How to parse data stored in child node of Zookeeper /hbase/region-in-transition?
我试图通过查看来确定是否有任何区域正在经历分裂
动物园管理员中的数据。
我手动触发了区域分割,并从子 Zookeeper 中捕获了数据
节点 /hbase/region-in-transition
对应区域。
数据如下所示
"ÿ^@^@^@^Tmaster:60000^R!¯^R<83><9d>^OJPBUF^H3^R4bar,,1526471941526.ac8b42de46021dcbf3d597326eb60de1.^X«<8f>ÓÆ¶,"^V
localhost^PôÔ^C^X÷<84>ÊŶ,*^@"
但是每当我尝试使用 protobuf class ClusterStatusProtos.RegionInTransition
解析上述数据时,解析都会失败。
有没有办法以某种方式解析这些数据并确定这是否对应
到处于 SPLIT 或 SPLITTING 状态的区域?
环境
- Hbase 版本 - 1.2.0
- 动物园管理员 - 3.4.8
这已在 hbase 电子邮件中得到答复 thread
Hi,
Using the above clue I researched further to found out that I need to
first use
org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.removeMetaData(byte[]
data) to remove the metadata and then org.apache.hadoop.hbase.
RegionTransition.parseFrom(byte[] data)
Regards, Nand
On Fri, May 18, 2018 at 2:34 PM, Balazs Meszaros <
balazs.meszaros@cloudera.com> wrote:
Hi,
HBase parses the binary data in region-in-transition ZooKeeper node with
org.apache.hadoop.hbase.RegionTransition.parseFrom(byte[] data). It is in
the hbase-client jar. These APIs are private, so use them carefully.
Best regards,
Balazs
On Fri, May 18, 2018 at 5:49 AM Debraj Manna
wrote:
Hi
We posted the same in stacker flow.
We didn't get any reply there also. Anyone any thoughts?
On Wed 16 May, 2018, 6:54 PM Nand kishor Bansal,
wrote:
Hi Users,
I'm trying to find out if any region is going through split by looking
at
data in zookeeper.
I triggered a region split manually and captured the data from child ZK
node /hbase/region-in-transition which corresponded to the region.
"ÿ^@^@^@^Tmaster:60000^R!¯^R<83><9d>^OJPBUF^H3^R4bar,,1526471941526.
ac8b42de46021dcbf3d597326eb60de1.^X«<8f>ÓÆ¶,"^V
localhost^PôÔ^C^X÷<84>ÊŶ,*^@"
But when I tried to parse the above data using protobuf class
ClusterStatusProtos.RegionInTransition, it failed to parse.
Is there a way to parse this data somehow and determine it correspond
to a region in SPLIT or SPLITTING state.
I am using HBase 1.2.0 and Zookeeper 3.4.8
Thanks,
Nand
我试图通过查看来确定是否有任何区域正在经历分裂 动物园管理员中的数据。
我手动触发了区域分割,并从子 Zookeeper 中捕获了数据
节点 /hbase/region-in-transition
对应区域。
数据如下所示
"ÿ^@^@^@^Tmaster:60000^R!¯^R<83><9d>^OJPBUF^H3^R4bar,,1526471941526.ac8b42de46021dcbf3d597326eb60de1.^X«<8f>ÓÆ¶,"^V
localhost^PôÔ^C^X÷<84>ÊŶ,*^@"
但是每当我尝试使用 protobuf class ClusterStatusProtos.RegionInTransition
解析上述数据时,解析都会失败。
有没有办法以某种方式解析这些数据并确定这是否对应 到处于 SPLIT 或 SPLITTING 状态的区域?
环境
- Hbase 版本 - 1.2.0
- 动物园管理员 - 3.4.8
这已在 hbase 电子邮件中得到答复 thread
Hi,
Using the above clue I researched further to found out that I need to first use org.apache.hadoop.hbase.zookeeper.RecoverableZooKeeper.removeMetaData(byte[] data) to remove the metadata and then org.apache.hadoop.hbase. RegionTransition.parseFrom(byte[] data)
Regards, Nand
On Fri, May 18, 2018 at 2:34 PM, Balazs Meszaros < balazs.meszaros@cloudera.com> wrote:
Hi,
HBase parses the binary data in region-in-transition ZooKeeper node with org.apache.hadoop.hbase.RegionTransition.parseFrom(byte[] data). It is in the hbase-client jar. These APIs are private, so use them carefully.
Best regards, Balazs
On Fri, May 18, 2018 at 5:49 AM Debraj Manna wrote:
Hi
We posted the same in stacker flow.
We didn't get any reply there also. Anyone any thoughts?
On Wed 16 May, 2018, 6:54 PM Nand kishor Bansal, wrote:
Hi Users,
I'm trying to find out if any region is going through split by looking at data in zookeeper.
I triggered a region split manually and captured the data from child ZK node /hbase/region-in-transition which corresponded to the region.
"ÿ^@^@^@^Tmaster:60000^R!¯^R<83><9d>^OJPBUF^H3^R4bar,,1526471941526. ac8b42de46021dcbf3d597326eb60de1.^X«<8f>ÓÆ¶,"^V localhost^PôÔ^C^X÷<84>ÊŶ,*^@"
But when I tried to parse the above data using protobuf class
ClusterStatusProtos.RegionInTransition, it failed to parse.
Is there a way to parse this data somehow and determine it correspond to a region in SPLIT or SPLITTING state.
I am using HBase 1.2.0 and Zookeeper 3.4.8
Thanks,
Nand