Return-Path: X-Original-To: apmail-hbase-user-archive@www.apache.org Delivered-To: apmail-hbase-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id DF29010B23 for ; Tue, 21 Jan 2014 17:38:10 +0000 (UTC) Received: (qmail 29767 invoked by uid 500); 21 Jan 2014 17:38:06 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 29699 invoked by uid 500); 21 Jan 2014 17:38:06 -0000 Mailing-List: contact user-help@hbase.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hbase.apache.org Delivered-To: mailing list user@hbase.apache.org Received: (qmail 29691 invoked by uid 99); 21 Jan 2014 17:38:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 17:38:06 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of yuzhihong@gmail.com designates 209.85.217.176 as permitted sender) Received: from [209.85.217.176] (HELO mail-lb0-f176.google.com) (209.85.217.176) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 Jan 2014 17:37:59 +0000 Received: by mail-lb0-f176.google.com with SMTP id w7so5607549lbi.21 for ; Tue, 21 Jan 2014 09:37:39 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=du1ZKwQ5Onf4KYPrpuaq6IkC3HfkJ7V0EuBuLqsV930=; b=c8SgF5TRd/0w55rp7TwscWOS0CsumcG2poTZ3rRr7ng2cvFM1oYoZI3cu4ZZARW/J1 uEV4a/naw+qVpUT1uTm6Kgn2gIbMX3wL8qh/eO82QSTGL6Z//qzZ6QUFoPJ2QSd71mPF BUHfopxf5Hb/otKjh5dTL88+nPnvbkKZc2gSbSpmOnfO64+Y3tttdmT/UfAV7blZsHd3 cjRp16yvrfh53EnIiHg9K062LydJd4POg1Z9vwCzYt69Ck0QOG4DJmKjf/5wzDEZM11Z TVi5vdhGhXCHc1qMCAZfYX/Ikl/QGgLRbbI/oxEGtAcoJB+scPr3ZeVblHy7X+FXUSSv oncQ== MIME-Version: 1.0 X-Received: by 10.112.173.138 with SMTP id bk10mr1227345lbc.58.1390325859038; Tue, 21 Jan 2014 09:37:39 -0800 (PST) Received: by 10.112.156.167 with HTTP; Tue, 21 Jan 2014 09:37:38 -0800 (PST) In-Reply-To: References: Date: Tue, 21 Jan 2014 09:37:38 -0800 Message-ID: Subject: Re: HBase Thrift2 does not support createTable() API anymore? From: Ted Yu To: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a11c27e96f33afb04f07e76a7 X-Virus-Checked: Checked by ClamAV on apache.org --001a11c27e96f33afb04f07e76a7 Content-Type: text/plain; charset=ISO-8859-1 Tianying: This thread is more up-to-date compared to the one you mentioned: http://search-hadoop.com/m/O9OjiuXFJQ1/hbase+thrift2+lars&subj=Thrift+2+Update Cheers On Tue, Jan 21, 2014 at 9:30 AM, Tianying Chang wrote: > Hi, Ram > > I find this post by Tim Sell, He said the HBaseAdmin is intentionally not > implemented. In that thread, Jimmy Xiang recommend to deprecate Thrift2 > instead of Thrift. But I assume the current status is to deprecate Thrift, > instead of Thrift2, right? > > http://mail-archives.apache.org/mod_mbox/hbase-dev/201212.mbox/%3CCAE9meBbH7V1PhSbeGtEpbXg1h5drbS+YdVyO0aKDR1d4JCE65Q@mail.gmail.com%3E > > > But on the other hand, there is already Jira for adding the HBaseAdmin into > Thrift2 https://issues.apache.org/jira/browse/HBASE-8820 > > Thanks > Tian-Ying > > > On Mon, Jan 20, 2014 at 9:18 PM, Tianying Chang wrote: > > > Ram, thanks for your confirmation! Probably very few people are using > > Thrift2? Is that Thrift2 not being supported at production level? I have > > seen people using finagle thrift server more often than the native HBase > > Thrift server. > > > > Thanks > > Tian-Ying > > > > > > On Mon, Jan 20, 2014 at 7:53 PM, ramkrishna vasudevan < > > ramkrishna.s.vasudevan@gmail.com> wrote: > > > >> Hi > >> I too have seen that in thrift2 the admin APIs are not supported. I am > not > >> very clear on the reason why it got removed. Would be better if we add > >> it, but if there was a reason for not doing it its better we know about > >> it. > >> If not +1 on adding that support. We can file a JIRA too for the same. > >> > >> Regards > >> Ram > >> > >> > >> On Tue, Jan 21, 2014 at 7:26 AM, Tianying Chang > >> wrote: > >> > >> > Hi, Thanks Ted for the link. > >> > > >> > HappyBase! Does this mean that the native HBase Thrift2 does not > >> support > >> > those API like createTable anymore? > >> > > >> > I felt it is more reliable to use native HBase Thrift2? But it seems > >> > support to HBase thrift is very limited? Most jira on Thrift2 are > >> > unresolved? So Is it recommended to use HappyBase instead of native > >> HBase > >> > Thrift2? > >> > > >> > Thanks > >> > Tian-Ying > >> > > >> > > >> > On Mon, Jan 20, 2014 at 5:41 PM, Ted Yu wrote: > >> > > >> > > See this thread: http://search-hadoop.com/m/reCSb2hpZ4v > >> > > > >> > > I found the following in happybase/connection.py : > >> > > > >> > > COMPAT_MODES = ('0.90', '0.92', '0.94', '0.96') > >> > > > >> > > Meaning support for 0.96 is there. > >> > > > >> > > Cheers > >> > > > >> > > > >> > > On Mon, Jan 20, 2014 at 5:26 PM, Tianying Chang > >> > wrote: > >> > > > >> > > > Thanks Ted. I am trying to use Python to access the HBase Thrift2 > >> > server. > >> > > > Is HBaseAdmin exposed in Hbase.thrift? I could not find it in > >> > > HBase.thrift? > >> > > > > >> > > > Thanks > >> > > > Tian-Ying > >> > > > > >> > > > > >> > > > On Mon, Jan 20, 2014 at 5:14 PM, Ted Yu > >> wrote: > >> > > > > >> > > > > I assume you were referring to 0.96+ > >> > > > > > >> > > > > The 3 methods you mentioned belong to HBaseAdmin > >> > > > > > >> > > > > Please take a look > >> > > > > at > >> > > > > > >> > > > > >> > > > >> > > >> > hbase-thrift/src/test/java/org/apache/hadoop/hbase/thrift2/TestThriftHBaseServiceHandler.java > >> > > > > where you can find examples for table creation, etc. > >> > > > > > >> > > > > Cheers > >> > > > > > >> > > > > > >> > > > > On Mon, Jan 20, 2014 at 4:56 PM, Tianying Chang < > >> tychang@gmail.com> > >> > > > wrote: > >> > > > > > >> > > > > > Hi, > >> > > > > > > >> > > > > > It seems some API that is supported by Thrift are not in the > >> > Thrift2 > >> > > > > > anymore, e.g. createTable, deleteTable, getTableRegions, and > so > >> on? > >> > > > > > Basically, these are those API that supported by Thrift2. How > >> can I > >> > > > > > createTable through Thrift2? Am I missing something here? > >> > > > > > > >> > > > > > Thanks > >> > > > > > Tian-Ying > >> > > > > > > >> > > > > > print 'Functions:' > >> > > > > > print ' bool exists(string table, TGet get)' > >> > > > > > print ' TResult get(string table, TGet get)' > >> > > > > > print ' getMultiple(string table, gets)' > >> > > > > > print ' void put(string table, TPut put)' > >> > > > > > print ' bool checkAndPut(string table, string row, string > >> > family, > >> > > > > string > >> > > > > > qualifier, string value, TPut put)' > >> > > > > > print ' void putMultiple(string table, puts)' > >> > > > > > print ' void deleteSingle(string table, TDelete > >> deleteSingle)' > >> > > > > > print ' deleteMultiple(string table, deletes)' > >> > > > > > print ' bool checkAndDelete(string table, string row, > string > >> > > family, > >> > > > > > string qualifier, string value, TDelete deleteSingle)' > >> > > > > > print ' TResult increment(string table, TIncrement > >> increment)' > >> > > > > > print ' TResult append(string table, TAppend append)' > >> > > > > > print ' i32 openScanner(string table, TScan scan)' > >> > > > > > print ' getScannerRows(i32 scannerId, i32 numRows)' > >> > > > > > print ' void closeScanner(i32 scannerId)' > >> > > > > > print ' void mutateRow(string table, TRowMutations > >> > rowMutations)' > >> > > > > > print ' getScannerResults(string table, TScan scan, i32 > >> > numRows)' > >> > > > > > > >> > > > > > >> > > > > >> > > > >> > > >> > > > > > --001a11c27e96f33afb04f07e76a7--