[ 
https://issues.apache.org/jira/browse/HBASE-21661?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16735513#comment-16735513
 ] 

Allan Yang commented on HBASE-21661:
------------------------------------

[~stack], thanks for the reviewing, and the nice comments. I have replied all 
the questions in the comments.
I think 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.
And, this patch also prove that thrift2 have a better interface design to 
implement more features. If using thrift1 to implement Admin/Table, it will be 
a disaster.

> 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
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to