This class is a glue object that connects Thrift RPC calls to the HBase client API primarily defined in the HTableInterface.
ThriftServer - this class starts up a Thrift server which implements the HBase API specified in the HbaseClient.thrift IDL file.
The HBase API is defined in the
file hbase.thrift. A server-side implementation of the API is in
org.apache.hadoop.hbase.thrift2.ThriftHBaseServiceHandler with the
server boiler plate in
The generated interfaces, types, and RPC utility files are checked into SVN under the
To stop, use:
./bin/hbase-daemon.sh stop thriftThese are the command line arguments the Thrift server understands in addition to
HBase currently uses version 0.9.0 of Apache Thrift.
The files were generated by running the commands under the hbase checkout dir:
thrift -strict --gen java:hashcode ./hbase-thrift/src/main/resources/org/apache/hadoop/hbase/thrift2/hbase.thrift # Move the generated files into place their expected location under hbase mv gen-java/org/apache/hadoop/hbase/thrift2/generated/* hbase-thrift/src/main/java/org/apache/hadoop/hbase/thrift2/generated/ # Remove the gen-java file made by thrift rm -rf gen-java
The 'thrift' binary is the Thrift compiler, and it is distributed separately from HBase in a Thrift release. Additionally, specific language runtime libraries are a part of a Thrift release. A version of the Java runtime is included in HBase via maven.
Copyright © 2014 The Apache Software Foundation. All Rights Reserved.