HBase via JRuby suggestions?
The HBase shell is now based on jirb, the JRuby implementation of the interactive ruby shell irb. Are there any nice tricks for interacting with HBase in JRuby programmatically other than through this shell?
The example on the Hadoop wiki appears to just be straight calls to the Java 开发者_JAVA技巧API; is there anything else I can do?
You can interact directly with the HBase client Java classes. There's a sample here: http://wiki.apache.org/hadoop/Hbase/JRuby
There are Thrift and REST APIs for HBase:
http://wiki.apache.org/hadoop/Hbase/ThriftApi http://hbase.apache.org/docs/r0.20.4/api/org/apache/hadoop/hbase/stargate/package-summary.html#package_description
I'd assume that either of these could be used from Ruby.
There's Rhino http://qslack.com/projects/rhino-a-ruby-hbase-orm/ which is an Ruby ORM for HBase
精彩评论