No commit activity in last 3 years
No release in over 3 years
This is an updated HBase wrapper based on Thrift 1.0.0, gemified and ready to be used with Ruby.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0.1.1
~> 4.0.0
>= 0

Runtime

 Project Readme

HBase Thrift Ruby

A gemified Ruby wrapper for Thrift's implementation of HBase.

Made specifically to be used with Thrift 1.0.0

Installation

gem install hbase_thrift_ruby

Usage

Create a table:

  require 'rubygems'
  require 'hbase_thrift_ruby'

  host = 'my.hadoop-master-node.com'
  port = 9090

  socket = Thrift::Socket.new(host, port)
  transport = Thrift::BufferedTransport.new(socket)
  transport.open
  protocol = Thrift::BinaryProtocol.new(transport)

  client = HBase::Client.new(protocol)
  
  columns = []
  col_descriptor = Hbase::ColumnDescriptor.new
  col_descriptor.name = 'test'
  columns << col_descriptor

  client.createTable('test_table',columns)