You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Syed Abdul Kather <in...@gmail.com> on 2013/12/13 14:38:54 UTC
Reading the data from specified region
Hi ,
Is there a way where i can read record in region directly?
Example :
If my table is splited into 8 region and i have 4 RS(Each has 2
region) . I have control on my Rowkey split.
Now i need to read data directly from the Region and process [Data
Locality]. I will send my jar to the specified region and it will get
executed kinda
If there is link to read it Please share it can be useful.
Thanks and Regards,
S SYED ABDUL KATHER
Re: Reading the data from specified region
Posted by Syed Abdul Kather <in...@gmail.com>.
Hi ,
Thanks for your reply . Actually i am trying to write my own framework
kinda. As i need to do lot of in memory operation [ via mem cache ] within
region . So i required to read the data directly in the region in that RS
.
If there is a way where i can read the data in that region in RS. It
will really helps . Please let me know if there is way to do that.
Thanks in Advance
Syed Abdul Kather
Thanks and Regards,
S SYED ABDUL KATHER
On Fri, Dec 13, 2013 at 9:09 PM, Jean-Marc Spaggiari <
jean-marc@spaggiari.org> wrote:
> Hi Syed,
>
> What is you goal?
>
> Do you want to read all the entries for this region and process them? Or
> you want to get a specific entry on this region? Or you want to process all
> the regions, but make sure you are doing that locally to the region server?
>
> For 1: You a scan using the region boundaries.
> For 2: Use a get
> For 3: You a MR job.
>
> JM
>
>
> 2013/12/13 Syed Abdul Kather <in...@gmail.com>
>
> > Hi Ted ,
> > Thanks for your reply . But I don't want to use coprocessor . Is
> > there a way where I can read data via our custom jar
> >
> > Like :
> >
> > Region obj = new Region ( Region name )
> > Obj.read() ;
> >
> > Thanks
> > Syed
> >
> >
> > On Dec 13, 2013 8:36 PM, "Ted Yu" <yu...@gmail.com> wrote:
> >
> > > Take a look at
> > > https://blogs.apache.org/hbase/entry/coprocessor_introduction
> > >
> > > Cheers
> > >
> > > On Dec 13, 2013, at 5:38 AM, Syed Abdul Kather <in...@gmail.com>
> > wrote:
> > >
> > > > Hi ,
> > > > Is there a way where i can read record in region directly?
> > > >
> > > > Example :
> > > > If my table is splited into 8 region and i have 4 RS(Each has 2
> > > > region) . I have control on my Rowkey split.
> > > > Now i need to read data directly from the Region and process [Data
> > > > Locality]. I will send my jar to the specified region and it will get
> > > > executed kinda
> > > >
> > > >
> > > > If there is link to read it Please share it can be useful.
> > > >
> > > > Thanks and Regards,
> > > > S SYED ABDUL KATHER
> > >
> >
>
Re: Reading the data from specified region
Posted by Jean-Marc Spaggiari <je...@spaggiari.org>.
Hi Syed,
What is you goal?
Do you want to read all the entries for this region and process them? Or
you want to get a specific entry on this region? Or you want to process all
the regions, but make sure you are doing that locally to the region server?
For 1: You a scan using the region boundaries.
For 2: Use a get
For 3: You a MR job.
JM
2013/12/13 Syed Abdul Kather <in...@gmail.com>
> Hi Ted ,
> Thanks for your reply . But I don't want to use coprocessor . Is
> there a way where I can read data via our custom jar
>
> Like :
>
> Region obj = new Region ( Region name )
> Obj.read() ;
>
> Thanks
> Syed
>
>
> On Dec 13, 2013 8:36 PM, "Ted Yu" <yu...@gmail.com> wrote:
>
> > Take a look at
> > https://blogs.apache.org/hbase/entry/coprocessor_introduction
> >
> > Cheers
> >
> > On Dec 13, 2013, at 5:38 AM, Syed Abdul Kather <in...@gmail.com>
> wrote:
> >
> > > Hi ,
> > > Is there a way where i can read record in region directly?
> > >
> > > Example :
> > > If my table is splited into 8 region and i have 4 RS(Each has 2
> > > region) . I have control on my Rowkey split.
> > > Now i need to read data directly from the Region and process [Data
> > > Locality]. I will send my jar to the specified region and it will get
> > > executed kinda
> > >
> > >
> > > If there is link to read it Please share it can be useful.
> > >
> > > Thanks and Regards,
> > > S SYED ABDUL KATHER
> >
>
Re: Reading the data from specified region
Posted by Syed Abdul Kather <in...@gmail.com>.
Hi Ted ,
Thanks for your reply . But I don't want to use coprocessor . Is
there a way where I can read data via our custom jar
Like :
Region obj = new Region ( Region name )
Obj.read() ;
Thanks
Syed
On Dec 13, 2013 8:36 PM, "Ted Yu" <yu...@gmail.com> wrote:
> Take a look at
> https://blogs.apache.org/hbase/entry/coprocessor_introduction
>
> Cheers
>
> On Dec 13, 2013, at 5:38 AM, Syed Abdul Kather <in...@gmail.com> wrote:
>
> > Hi ,
> > Is there a way where i can read record in region directly?
> >
> > Example :
> > If my table is splited into 8 region and i have 4 RS(Each has 2
> > region) . I have control on my Rowkey split.
> > Now i need to read data directly from the Region and process [Data
> > Locality]. I will send my jar to the specified region and it will get
> > executed kinda
> >
> >
> > If there is link to read it Please share it can be useful.
> >
> > Thanks and Regards,
> > S SYED ABDUL KATHER
>
Re: Reading the data from specified region
Posted by Ted Yu <yu...@gmail.com>.
Take a look at https://blogs.apache.org/hbase/entry/coprocessor_introduction
Cheers
On Dec 13, 2013, at 5:38 AM, Syed Abdul Kather <in...@gmail.com> wrote:
> Hi ,
> Is there a way where i can read record in region directly?
>
> Example :
> If my table is splited into 8 region and i have 4 RS(Each has 2
> region) . I have control on my Rowkey split.
> Now i need to read data directly from the Region and process [Data
> Locality]. I will send my jar to the specified region and it will get
> executed kinda
>
>
> If there is link to read it Please share it can be useful.
>
> Thanks and Regards,
> S SYED ABDUL KATHER