请注意,Chip Turner 开发的 C++ Hbase 客户端实际上经过了 Thrift(至少当前代码是这样)。因此,您将 C++ API 转换为 Thrift API,再转换为 Java API。一个优点似乎是 C++ API 试图紧密贴近原始的 Java API。
Note that the C++ Hbase client developed by Chip Turner actually goes through Thrift (at least the current code does). So you have a C++ API translated to the Thrift API, translated to the Java API. The one advantage appears to be that the C++ API is trying to hew closely to the original Java API.
发布评论
评论(5)
我不知道纯 C HBase 客户端,但似乎有一个 C++ 客户端:
https://github.com/apache/hbase/tree/master/hbase-native-client
I don't know of a pure C HBase client, but there seems to be a C++ client:
https://github.com/apache/hbase/tree/master/hbase-native-client
有几个选项需要考虑:
Thrift
Avro 是另一个值得研究的新选项。
HBase bug 跟踪器 HBase-1015 上有关于 C 和 C++ 客户端的讨论。
查看上述选项,看看什么最适合您的要求。
hbase 构建于 HDFS 之上,它是一个类似 Hadoop 相关的数据库,具有 C 库。
libhdfs 是一个基于 ac 的库,用于访问 hdfs。它是使用 jni 创建的。
http://wiki.apache.org/hadoop/LibHDFS
http://hadoop.apache.org/common/docs/current/libhdfs.html
这是一个示例项目:
https://github.com/kzk/libhdfs-example
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
请注意,Chip Turner 开发的 C++ Hbase 客户端实际上经过了 Thrift(至少当前代码是这样)。因此,您将 C++ API 转换为 Thrift API,再转换为 Java API。一个优点似乎是 C++ API 试图紧密贴近原始的 Java API。
Note that the C++ Hbase client developed by Chip Turner actually goes through Thrift (at least the current code does). So you have a C++ API translated to the Thrift API, translated to the Java API. The one advantage appears to be that the C++ API is trying to hew closely to the original Java API.
此处提供了 HBase 的本机 API libhbase,类似于 libhdfs。
您还可以从
A native API for HBase, libhbase, similar to libhdfs is available here.
You can also download the pre-built packages for CentOS/RedHat and Ubuntu from for HBase 0.98.x from here.
您可以使用 Thrift 作为连接 HBase 的网关。
You can use Thrift as a gateway to connect with HBase.