14

I spent some time looking around, and all I could find is Jython. It's an option, but is there something that could be used in a more pythonesque (simpler) way?

mdahlman
  • 9,204
  • 4
  • 44
  • 72
Wojtek
  • 143
  • 1
  • 1
  • 5

4 Answers4

8

Stargate is still in the contrib part of the Hbase project while ThriftServer is maintained in core(org.apache.hadoop.hbase.thrift). Grab the HBase.thrift file from the repository and run

thrift --gen py HBase.thrift on it, shove the contents into wherever, and startup a thrift server. Stargate is very very slow. The HBase thrift still has some work to be done on it, however it is still being actively worked on

A couple of places to get started

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

juhanic
  • 805
  • 8
  • 16
  • Stargate seems to be an integral part of HBase now. http://wiki.apache.org/hadoop/Hbase/Stargate – Oren_H May 15 '12 at 08:38
4

You can try thrift python bindings but the project seems dead. I'd go with starting HBase REST server, and then using python standard libraries to access that RESTful web service.

Ofri Raviv
  • 24,375
  • 3
  • 55
  • 55
3

FWIW, I'm trying to get something started at http://github.com/hammer/pyhbase. Totally a hack right now but will be polishing it over the next few weeks. I link to the Mozilla client that I started from.

Jeff Hammerbacher
  • 4,226
  • 2
  • 29
  • 36
1

Also go through https://github.com/tousif/Hwrapper wrapper for the Hbase REST api.

Perception
  • 79,279
  • 19
  • 185
  • 195
tousif
  • 103
  • 3
  • 16