views:

211

answers:

3

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?

+1  A: 

You can try thrift python bindings but the projects seems dead. I'd go with Stargate, a RESTful Web service front end for HBase, as dealing with REST web services should be easy enough with standard libraries.

Ofri Raviv
Stargate works out just fine, though it looks like there is no Python library that would wrap the Stargate calls in Python calls, you have to do it yourself.
Wojtek
+1  A: 

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
A: 

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