You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@hbase.apache.org by Trung Pham <tr...@phamcom.com> on 2012/07/29 09:39:30 UTC

Recommend protocol connecting to HBASE

Which protocol is better supported?

Protocol Buffer, Thrift, Avro?

I'm particularly interested in knowing which protocol(s) support the
checkAndPut api.

Thanks.

Re: Recommend protocol connecting to HBASE

Posted by Khang Pham <kh...@gmail.com>.
Hi,

I used Thrift 0.8 and Hbase 0.20.6. My app is in R languagge and everything
works just fine.

-- Khang

On Mon, Jul 30, 2012 at 3:12 AM, Harsh J <ha...@cloudera.com> wrote:

> Trung,
>
> Thrift API to HBase is well supported, and you may use that.
>
> Thrift2 is a new implementation of the Thrift API for HBase,
> introduced in 0.94, in order to better-support the newer APIs of
> HTable/etc. without breaking compatibility of the earlier Thrift
> server for existing users.
>
> Thrift2 was done via https://issues.apache.org/jira/browse/HBASE-1744
>
> So if you're going to be using a release of 0.94 or higher, consider
> using Thrift2 server rather than the deprecated Thrift server.
>
> On Sun, Jul 29, 2012 at 11:54 PM, Trung Pham <tr...@phamcom.com> wrote:
> > Also. What's the difference between thrift and thrift2 server? I thought
> > the thrift protocol spec is stil at version 0.8.
> > On Jul 29, 2012 10:33 AM, "syed kather" <in...@gmail.com> wrote:
> >
> >> Hi trung ,
> >> If you are using different language then go for ThriftAPI.. if you had
> seen
> >> prevoius mail . They had suggested ThriftAPI  . I had worked with Thrift
> >> its nice . I tried to push my data from .net . It helps me .
> >>
> >>
> >> Syed Abdul kather
> >> send from Samsung S3
> >> On Jul 29, 2012 10:06 PM, "Trung Pham" <tr...@phamcom.com> wrote:
> >>
> >> > My application code is not written in Java...
> >> > On Jul 29, 2012 4:56 AM, "John Hancock" <jh...@gmail.com>
> wrote:
> >> >
> >> > > Trung Pam,
> >> > >
> >> > > I hope I am not going to start a flame war here but my take-away
> from
> >> > what
> >> > > I have read so far about HBASE is that the best protocol to use for
> >> > > connecting to HBASE over the network is the Java client libraries by
> >> > > themselves.  I have been working on a Servlet that uses an HTable
> >> object
> >> > > etc. to reach the HBASE server. This is an easy way to go since the
> >> > entire
> >> > > api is available. If your models and controllers are not written in
> >> Java,
> >> > > then my point is moot.
> >> > >
> >> > > -John
> >> > >
> >> > > On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com>
> wrote:
> >> > >
> >> > > > Which protocol is better supported?
> >> > > >
> >> > > > Protocol Buffer, Thrift, Avro?
> >> > > >
> >> > > > I'm particularly interested in knowing which protocol(s) support
> the
> >> > > > checkAndPut api.
> >> > > >
> >> > > > Thanks.
> >> > > >
> >> > >
> >> >
> >>
>
>
>
> --
> Harsh J
>

Re: Recommend protocol connecting to HBASE

Posted by Harsh J <ha...@cloudera.com>.
Trung,

Thrift API to HBase is well supported, and you may use that.

Thrift2 is a new implementation of the Thrift API for HBase,
introduced in 0.94, in order to better-support the newer APIs of
HTable/etc. without breaking compatibility of the earlier Thrift
server for existing users.

Thrift2 was done via https://issues.apache.org/jira/browse/HBASE-1744

So if you're going to be using a release of 0.94 or higher, consider
using Thrift2 server rather than the deprecated Thrift server.

On Sun, Jul 29, 2012 at 11:54 PM, Trung Pham <tr...@phamcom.com> wrote:
> Also. What's the difference between thrift and thrift2 server? I thought
> the thrift protocol spec is stil at version 0.8.
> On Jul 29, 2012 10:33 AM, "syed kather" <in...@gmail.com> wrote:
>
>> Hi trung ,
>> If you are using different language then go for ThriftAPI.. if you had seen
>> prevoius mail . They had suggested ThriftAPI  . I had worked with Thrift
>> its nice . I tried to push my data from .net . It helps me .
>>
>>
>> Syed Abdul kather
>> send from Samsung S3
>> On Jul 29, 2012 10:06 PM, "Trung Pham" <tr...@phamcom.com> wrote:
>>
>> > My application code is not written in Java...
>> > On Jul 29, 2012 4:56 AM, "John Hancock" <jh...@gmail.com> wrote:
>> >
>> > > Trung Pam,
>> > >
>> > > I hope I am not going to start a flame war here but my take-away from
>> > what
>> > > I have read so far about HBASE is that the best protocol to use for
>> > > connecting to HBASE over the network is the Java client libraries by
>> > > themselves.  I have been working on a Servlet that uses an HTable
>> object
>> > > etc. to reach the HBASE server. This is an easy way to go since the
>> > entire
>> > > api is available. If your models and controllers are not written in
>> Java,
>> > > then my point is moot.
>> > >
>> > > -John
>> > >
>> > > On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com> wrote:
>> > >
>> > > > Which protocol is better supported?
>> > > >
>> > > > Protocol Buffer, Thrift, Avro?
>> > > >
>> > > > I'm particularly interested in knowing which protocol(s) support the
>> > > > checkAndPut api.
>> > > >
>> > > > Thanks.
>> > > >
>> > >
>> >
>>



-- 
Harsh J

Re: Recommend protocol connecting to HBASE

Posted by Trung Pham <tr...@phamcom.com>.
Also. What's the difference between thrift and thrift2 server? I thought
the thrift protocol spec is stil at version 0.8.
On Jul 29, 2012 10:33 AM, "syed kather" <in...@gmail.com> wrote:

> Hi trung ,
> If you are using different language then go for ThriftAPI.. if you had seen
> prevoius mail . They had suggested ThriftAPI  . I had worked with Thrift
> its nice . I tried to push my data from .net . It helps me .
>
>
> Syed Abdul kather
> send from Samsung S3
> On Jul 29, 2012 10:06 PM, "Trung Pham" <tr...@phamcom.com> wrote:
>
> > My application code is not written in Java...
> > On Jul 29, 2012 4:56 AM, "John Hancock" <jh...@gmail.com> wrote:
> >
> > > Trung Pam,
> > >
> > > I hope I am not going to start a flame war here but my take-away from
> > what
> > > I have read so far about HBASE is that the best protocol to use for
> > > connecting to HBASE over the network is the Java client libraries by
> > > themselves.  I have been working on a Servlet that uses an HTable
> object
> > > etc. to reach the HBASE server. This is an easy way to go since the
> > entire
> > > api is available. If your models and controllers are not written in
> Java,
> > > then my point is moot.
> > >
> > > -John
> > >
> > > On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com> wrote:
> > >
> > > > Which protocol is better supported?
> > > >
> > > > Protocol Buffer, Thrift, Avro?
> > > >
> > > > I'm particularly interested in knowing which protocol(s) support the
> > > > checkAndPut api.
> > > >
> > > > Thanks.
> > > >
> > >
> >
>

Re: Recommend protocol connecting to HBASE

Posted by syed kather <in...@gmail.com>.
Hi trung ,
If you are using different language then go for ThriftAPI.. if you had seen
prevoius mail . They had suggested ThriftAPI  . I had worked with Thrift
its nice . I tried to push my data from .net . It helps me .


Syed Abdul kather
send from Samsung S3
On Jul 29, 2012 10:06 PM, "Trung Pham" <tr...@phamcom.com> wrote:

> My application code is not written in Java...
> On Jul 29, 2012 4:56 AM, "John Hancock" <jh...@gmail.com> wrote:
>
> > Trung Pam,
> >
> > I hope I am not going to start a flame war here but my take-away from
> what
> > I have read so far about HBASE is that the best protocol to use for
> > connecting to HBASE over the network is the Java client libraries by
> > themselves.  I have been working on a Servlet that uses an HTable object
> > etc. to reach the HBASE server. This is an easy way to go since the
> entire
> > api is available. If your models and controllers are not written in Java,
> > then my point is moot.
> >
> > -John
> >
> > On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com> wrote:
> >
> > > Which protocol is better supported?
> > >
> > > Protocol Buffer, Thrift, Avro?
> > >
> > > I'm particularly interested in knowing which protocol(s) support the
> > > checkAndPut api.
> > >
> > > Thanks.
> > >
> >
>

Re: Recommend protocol connecting to HBASE

Posted by Trung Pham <tr...@phamcom.com>.
My application code is not written in Java...
On Jul 29, 2012 4:56 AM, "John Hancock" <jh...@gmail.com> wrote:

> Trung Pam,
>
> I hope I am not going to start a flame war here but my take-away from what
> I have read so far about HBASE is that the best protocol to use for
> connecting to HBASE over the network is the Java client libraries by
> themselves.  I have been working on a Servlet that uses an HTable object
> etc. to reach the HBASE server. This is an easy way to go since the entire
> api is available. If your models and controllers are not written in Java,
> then my point is moot.
>
> -John
>
> On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com> wrote:
>
> > Which protocol is better supported?
> >
> > Protocol Buffer, Thrift, Avro?
> >
> > I'm particularly interested in knowing which protocol(s) support the
> > checkAndPut api.
> >
> > Thanks.
> >
>

Re: Recommend protocol connecting to HBASE

Posted by John Hancock <jh...@gmail.com>.
Trung Pam,

I hope I am not going to start a flame war here but my take-away from what
I have read so far about HBASE is that the best protocol to use for
connecting to HBASE over the network is the Java client libraries by
themselves.  I have been working on a Servlet that uses an HTable object
etc. to reach the HBASE server. This is an easy way to go since the entire
api is available. If your models and controllers are not written in Java,
then my point is moot.

-John

On Sun, Jul 29, 2012 at 3:39 AM, Trung Pham <tr...@phamcom.com> wrote:

> Which protocol is better supported?
>
> Protocol Buffer, Thrift, Avro?
>
> I'm particularly interested in knowing which protocol(s) support the
> checkAndPut api.
>
> Thanks.
>