HBase with Go

2,845 views
Skip to first unread message

Trung Pham

unread,
Jul 27, 2012, 4:14:15 AM7/27/12
to golan...@googlegroups.com
Do you know how I can access HBase data from a Go application?

I can't seem to find any Hbase client for Go...

Henrik Johansson

unread,
Jul 27, 2012, 4:44:33 AM7/27/12
to Trung Pham, golan...@googlegroups.com
I think there is a REST interface to HBase, Stargate but not really
sure of its status.

/ Henke

Varadharajan Mukundan

unread,
Jul 27, 2012, 7:33:16 AM7/27/12
to Trung Pham, golan...@googlegroups.com
Greetings,

> Do you know how I can access HBase data from a Go application?

HBase has a thrift interface
(http://wiki.apache.org/hadoop/Hbase/ThriftApi) and it can be used to
access HBase from go.

--
Thanks,
M. Varadharajan

------------------------------------------------

"Experience is what you get when you didn't get what you wanted"
-By Prof. Randy Pausch in "The Last Lecture"

My Journal :- www.thinkasgeek.wordpress.com

Henrik Johansson

unread,
Jul 27, 2012, 7:55:11 AM7/27/12
to Varadharajan Mukundan, Trung Pham, golan...@googlegroups.com
Yes that seems to be the way to go.

https://github.com/pomack/thrift4go might be what you need.

/ Hank

Varadharajan Mukundan

unread,
Jul 27, 2012, 8:01:36 AM7/27/12
to Henrik Johansson, Trung Pham, golan...@googlegroups.com
Greetings,

> https://github.com/pomack/thrift4go might be what you need.

I was wondering whether we should be making use of another library
instead of just Thirft stuff. The author has mentioned that the
necessity of the project was because of the fact that the upstream
development was closed for that release and he has maintain it
separately. As also mentioned in the project description, it seems the
project has been rebased in this revision
http://svn.apache.org/repos/asf/thrift/tags/thrift-0.8.0/ . So i think
just using thrift should be fine.

Henrik Johansson

unread,
Jul 27, 2012, 8:50:25 AM7/27/12
to Varadharajan Mukundan, Trung Pham, golan...@googlegroups.com
Does the author not mean that this repo is still needed for thift 0.8?

It seems that this repo is rebased upon thrift 0.8 but is still needed
for proper Go support.

I might have time to test later but i suspect that this is the case.

/ Hank

Varadharajan Mukundan

unread,
Jul 27, 2012, 8:57:26 AM7/27/12
to Henrik Johansson, Trung Pham, golan...@googlegroups.com
Greetings,

> Does the author not mean that this repo is still needed for thift 0.8?
>
> It seems that this repo is rebased upon thrift 0.8 but is still needed
> for proper Go support.

I could see the necessary files required for go version in the lib/
folder (thrift 8.0,
http://svn.apache.org/repos/asf/thrift/tags/thrift-0.8.0/lib/). I
think it should be enough to get started.

The Author tried to merge it with 0.7.0 version of Thrift which was
ceased for release. It was merged before the 0.8.0 release.

Varadharajan Mukundan

unread,
Jul 27, 2012, 9:00:26 AM7/27/12
to Henrik Johansson, Trung Pham, golan...@googlegroups.com
Greetings,

> I think there is a REST interface to HBase, Stargate but not really
> sure of its status.

Yeah. There is a ReST interface but its deprecated
(http://wiki.apache.org/hadoop/Hbase/HbaseRest)

aarong...@gmail.com

unread,
Jul 2, 2013, 6:28:40 PM7/2/13
to golan...@googlegroups.com, Henrik Johansson, Trung Pham, srina...@gmail.com
Over the last year has this advice changed? 

Thanks,

Aaron

Bryan Whitehead

unread,
Jul 16, 2013, 8:42:53 PM7/16/13
to Varadharajan Mukundan, Henrik Johansson, Trung Pham, golan...@googlegroups.com
The native rest engine is depreciated in favor of Stargate. So use
REST w/Stargate.

http://wiki.apache.org/hadoop/Hbase/Stargate

This page can be reached from the official docs here:
http://wiki.apache.org/hadoop/Hbase

Just look at the "HBase non-java access" section.

David DENG

unread,
Jul 16, 2013, 11:30:57 PM7/16/13
to golan...@googlegroups.com
I can find some by searching: http://go-search.org/search?q=hbase

But none is widely used, not sure of whether they are OK for you.

David
Message has been deleted
Message has been deleted
Message has been deleted
Message has been deleted

vince...@gmail.com

unread,
Oct 16, 2014, 10:02:13 PM10/16/14
to golan...@googlegroups.com
I also find that hbae has 2 version thrift interface, the other version interface of thrift is called thrift2, and this version gen code by thrift can be directly used by golang, it's very good, and I also write some introduces about thrift2 in my blog: http://blog.kissdata.com/2014/08/04/golang-thrift-hbase.html

在 2012年7月27日星期五UTC+8下午4时14分15秒,Trung Pham写道:
Reply all
Reply to author
Forward
0 new messages