hbase-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Nand kishor Bansal <nkba...@gmail.com>
Subject Re: How to parse data stored in child node of ZK /hbase/region-in-transition
Date Sun, 20 May 2018 06:06:40 GMT
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 <subharaj.manna@gmail.com>
> wrote:
>
> > Hi
> >
> > We posted the same in stacker flow.
> >
> > https://stackoverflow.com/q/50378236/785523
> >
> > We didn't get any reply there also. Anyone any thoughts?
> >
> > On Wed 16 May, 2018, 6:54 PM Nand kishor Bansal, <nkbansl@gmail.com>
> > 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
> > >
> >
>

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message