[ https://issues.apache.org/jira/browse/HBASE-21661?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Allan Yang updated HBASE-21661: ------------------------------- Release Note: ThriftAdmin/ThriftTable are implemented based on Thrift2. With ThriftAdmin/ThriftTable, People can use thrift2 protocol just like HTable/HBaseAdmin. Example of using ThriftConnection Configuration conf = HBaseConfiguration.create(); conf.set(ClusterConnection.HBASE_CLIENT_CONNECTION_IMPL,ThriftConnection.class.getName()); Connection conn = ConnectionFactory.createConnection(conf); Table table = conn.getTable(tablename) It is just like a normal Connection, similar use experience with the default ConnectionImplementation > Provide Thrift2 implementation of Table/Admin > --------------------------------------------- > > Key: HBASE-21661 > URL: https://issues.apache.org/jira/browse/HBASE-21661 > Project: HBase > Issue Type: Sub-task > Reporter: Allan Yang > Assignee: Allan Yang > Priority: Major > Fix For: 3.0.0, 2.2.0 > > Attachments: HBASE-21661.patch, HBASE-21661.v2.patch, > HBASE-21661.v3.patch, HBASE-21661.v4.patch, HBASE-21661.v5.patch > > > Provide Thrift2 implementation of Table/Admin, making Java user to use thrift > client more easily(Some environment which can not expose ZK or RS Servers > directly require thrift or REST protocol even using Java). > Another Example of this is RemoteHTable and RemoteAdmin, they are REST > connectors. > ThriftAdmin/ThriftTable provides another good reason for Java user to use > thrift2 and not thrift1. Before, they need to convert HBase Get/Put/Scan... > to TGet/TPut/TScan and construct a thrift client all by themselves. With > ThriftAdmin/ThriftTable, they can use thrift protocol just like > HTable/HBaseAdmin. They are just like RemoteHTable/RemoteAdmin for REST > protocols. -- This message was sent by Atlassian JIRA (v7.6.3#76005)