Search code examples
hbase

Is there any C library for HBase?


I need HBase to store large amount of indexing keywords and values (currently using Redis), but I can't find any C library to connect, write or read HBase.

I Googled, but found nothing. Does anybody have an idea? Or is there any similar Hadoop-related database that has mature C library?


Solution

  • There are several options to consider:

    • Thrift

    • Avro is another new option to look into.

    • You could use a plain REST api calls using Stargate.

    There is a discussion on the HBase bug tracker HBase-1015 about c and c++ clients.

    Look into the above options to see what best fits your requirements.

    HDFS, upon which hbase is built, is a similar Hadoop-related database that has a C library.

    libhdfs is a c based library to access hdfs. It was created using jni.

    http://wiki.apache.org/hadoop/LibHDFS

    http://hadoop.apache.org/common/docs/current/libhdfs.html

    Here is an example project:

    https://github.com/kzk/libhdfs-example