Skip to content


Subversion checkout URL

You can clone with
Download ZIP


RevolutionAnalytics edited this page · 12 revisions


This R package provides basic connectivity to HBASE, using the Thrift server. R programmers can browse, read, write, and modify tables stored in HBASE. The following functions are part of this package

  • Table Maninpulation, hb.delete.table, hb.describe.table, hb.set.table.mode, hb.regions.table
  • Read/Write
    hb.insert, hb.get, hb.delete,,, hb.scan
  • Utility
  • Initialization
    hb.defaults, hb.init


  • Installing the package requires that you first install and build Thrift. Once you have the libraries built, be sure they are in a path where the R client can find them (i.e. /usr/lib). This package was built and tested using Thrift 0.6.1

    Here is an example for building the libraries on CentOS:

    1. Install all Thrift pre-requisites:
    2. Build Thrfit according to instructions:
    3. Update PKG_CONFIG_PATH: export PKG_CONFIG_PATH=$PKG_CONFIG_PATH:/usr/local/lib/pkgconfig/
    4. Verifiy pkg-config path is correct: pkg-config --cflags thrift , returns: -I/usr/local/include/thrift
    5. Copy Thrift library sudo cp /usr/local/lib/ /usr/lib/

  • The Thrift server by default starts on port 9090.

    [hbase-root]/bin/hbase thrift start

    If you are running on rhbase on a different hostname:port you will have to change how the package is initialized

    hb.init(host=, port=9090)
Something went wrong with that request. Please try again.