资源说明:Common C++ client that accesses HBase cluster through HBase ThriftServer.
# HBase Thrift For C++ Client This is a common C++ client that accesses HBase cluster through HBase ThriftServer. It based on HBase thrift, but not the new thrift interface in HBase 0.94+ version. ## Prerequisites * Download, decompress and install [thrift-0.8.0](https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz).wget https://dist.apache.org/repos/dist/release/thrift/0.8.0/thrift-0.8.0.tar.gz tar zxvf thrift-0.8.0.tar.gz sudo yum install automake libtool flex bison pkgconfig gcc-c++ boost-devel libevent-devel zlib-devel python-devel ruby-devel cd thrift-0.8.0 ./configure make sudo make install* Download and decompress [hbase-0.92.1](http://www.fayea.com/apache-mirror/hbase/hbase-0.92.1/hbase-0.92.1.tar.gz) or previous versions.wget http://www.fayea.com/apache-mirror/hbase/hbase-0.92.1/hbase-0.92.1.tar.gz tar zxvf hbase-0.92.1.tar.gz## Instructions * Run Thrift to generate the cpp module HBase:thrift --gen cpp [hbase-root]/src/main/resources/org/apache/hadoop/hbase/thrift/Hbase.thrift* Make the project to generate binary program:make demo make test* Execute the binary program:./demo [host] [port] ./testput [host] [port] [key_len] [val_len] [list_num] ./testget [host] [port] [key_len] [val_len] [list_num] [block_cache_flag]## Contributors * Yuan Panfeng ([@ypf412](https://github.com/ypf412))
本源码包内暂不包含可直接显示的源代码文件,请下载源码包。