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