Thrift Interface for HBase

Source: Internet
Author: User

This thrift is used to allow other programs to connect with HBase, and you can call HBase in a different language if it is thrift that HBase opens the API for program invocation.

The current hbase (0.94.11, which is based on this version) has two sets of thrift interfaces (which can be called THRIFT1 and thrift2), which are incompatible (too arbitrary, which may be a problem for all open source software). According to official documents, THRIFT1 is likely to be abandoned, but the article on the Internet is basically introduced THRIFT1, this article mainly introduces thrift2.
To use HBase's thrift interface, you must start its service, command behavior: bin/hbase thrift2 start

Thrift The default listening port is 9090 and can be used with NETSTAT-NL | grep 9090 to see if the port has a service.

A simple comparison between THRIFT1 and thrift2
The two version of the thrift file is located in the following location,

Src/main/resources/org/apache/hadoop/hbase/thrift/hbase.thrift
Src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift

THRIFT1 file has about 24K, and thrift2 only about 12K, it seems that the new version has done a lot of simplification.
namespace, the new version will change thrift to thrift2 to show the difference. The following table is the difference between thrift and thrift2, it can be seen that the difference between the two really large, especially in the service of the method, thrift2 to simplify and synthesize, and the content of the DDL removed, about these structures, the specific meaning of the service, see the thrift file in the comments, The details are listed below.

http://blog.csdn.net/guxch/article/details/12163047

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.