Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
HBase >> mail # user >> how can thrift connect to hbase?


Copy link to this message
-
Re: how can thrift connect to hbase?
hi beatls,

for your question, the answer is YES!
if you just need a c++ client to access HBase,
just run thrift server like this:
in hbase home dir, run
bin/hbase-daemon.sh start thrift
or
bin/hbase-daemon.sh start thrift2

then you can using your c++ thrift client to connect.
I have some articles about  via thrift connect hbase in Chinese:
http://abloz.com/2012/06/01/python-operating-hbase-thrift-to.html
http://abloz.com/2012/10/18/php-thrift-access-hbase-two.html
http://abloz.com/2012/05/31/example-thrift-installation.html

I'm using python and php connect hbase,not c++.
I also translate part of the HBase document to Chinese,url is:

http://abloz.com/hbase/book.html

for your reference.

Thanks.
Andy Zhou

2012/12/24 hua beatls <[EMAIL PROTECTED]>

> Hi,
>        we have a c++ client, and the thrift server was installed on the
> Ndatanode ®ionservers.
>       ( from the official document we know that it is not recommended for
> the thrift colocated with nn &jobtracker).
>       as we understand the processs from client to hbase shown below:
>      client--->thrift server----->zookeeper---->hbase.
>      my quesiton: can thrift server deploy on a stangalone server( do not
> colocated with NN&Jobtracker);
>
>      Many Thanks!
>
>
>      beatls
>
>
>
> On Sun, Dec 23, 2012 at 7:52 AM, Lukáš Drbal <[EMAIL PROTECTED]>
> wrote:
>
> > Hi Xiang,
> > please don't send question like this ... nobody can't response message
> like
> > this.
> > This is one of questions were response can be: "yes, you can, go it"
> > I write this message only because we have many client for access to HBase
> > via thrift and i want share our experience and take some new ideas.
> >
> > What's your client language?
> >
> > Here is many options, for exaple we have enabled
> > hbase.regionserver.export.thrift
> > and we use all region servers from client side (this is maybe bad, i don'
> > know)
> >
> > LesTR
> > --
> > send from lower keyboard, please excuse my typos
> >
> >
> >
> > **
> > 2012/12/22 Xiang Hua <[EMAIL PROTECTED]>
> >
> > > Hi,
> > >    how can thrift server connect to hbase, through zookeeper?  how to
> > > config it?
> > >
> > >
> > > Thanks!
> > >
> > >
> > > beatls
> > >
> >
> >
> >
> > --
> > Save The World - http://www.worldcommunitygrid.org/
> > http://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=LesTR
> >
> > LesTR
> >
>