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 DEE5EE719 for ; Tue, 25 Dec 2012 13:39:54 +0000 (UTC) Received: (qmail 45135 invoked by uid 500); 25 Dec 2012 13:39:52 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 45058 invoked by uid 500); 25 Dec 2012 13:39:52 -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 45050 invoked by uid 99); 25 Dec 2012 13:39:52 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2012 13:39:52 +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 (athena.apache.org: domain of beatls@gmail.com designates 209.85.216.179 as permitted sender) Received: from [209.85.216.179] (HELO mail-qc0-f179.google.com) (209.85.216.179) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 25 Dec 2012 13:39:46 +0000 Received: by mail-qc0-f179.google.com with SMTP id b14so4065729qcs.38 for ; Tue, 25 Dec 2012 05:39:25 -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=z9uFneZvG+qHPHI4Ew8czuILFE6M2iHO6uepliYYwtU=; b=yqIdjx0jL00LJbZsKhZz1WuUueW3in2sGY5v+WH/HTSN0LXPcvHZu36Fx5U1zm2Kqs UUyVN22S5AJBCFQFebsMcg9CSrdePUBtytT8sfm4FI22WOK869XDwgW6mSaSCYo4EITq DY2amj9EJIIpI+DxOf1AVjiE5QcJ1nVFqR65oNWfdfm3OoAUtdwaEsqeCC0szdP204gI /tLO4Dz5uLUqQ5P+87yjSL4tmbLK/PNS8j6m5nvNYwL6BlRooZrKhz9YQ+wrBrtY3cxG kW4ccuINHwZkI2McG1Nu2mlu7SJDbo8YkHiq43MySVX/x0isaJZHr0NRsq3KfqFPOrM1 MN3w== MIME-Version: 1.0 Received: by 10.49.131.67 with SMTP id ok3mr14081546qeb.42.1356442765325; Tue, 25 Dec 2012 05:39:25 -0800 (PST) Received: by 10.49.17.7 with HTTP; Tue, 25 Dec 2012 05:39:25 -0800 (PST) In-Reply-To: References: Date: Tue, 25 Dec 2012 21:39:25 +0800 Message-ID: Subject: Re: how can thrift connect to hbase? From: hua beatls To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7bdc06f02f757804d1ad71f5 X-Virus-Checked: Checked by ClamAV on apache.org --047d7bdc06f02f757804d1ad71f5 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable Hi Andy, shoud i first install as http://abloz.com/2012/05/31/example-thrift-installation.html, then configure thrift as @ http://abloz.com/2012/06/01/python-operating-hbase-thrift-to.html. that's first install thrift using tarball from apache.thirft.org, then configrue and start it with './hbase-daemon.sh start thrift'. Best R. beatls On Tue, Dec 25, 2012 at 9:29 PM, hua beatls wrote: > Hi Andy, > you give me two ways to install (or configure) thriftserver , first > is showed @ > http://abloz.com/2012/06/01/python-operating-hbase-thrift-to.html > second way @ > http://abloz.com/2012/05/31/example-thrift-installation.html, i prefer > the first one, but seems the second one if official? > which one is better, or both works? > > Best R. > > beatls > > > On Mon, Dec 24, 2012 at 7:49 PM, =E5=91=A8=E6=A2=A6=E6=83=B3 wrote: > >> hi beatls=EF=BC=8C >> >> for your question, the answer is YES! >> if you just need a c++ client to access HBase, >> just run thrift server like this: >> in hbase home dir, run >> bin/hbase-daemon.sh start thrift >> or >> bin/hbase-daemon.sh start thrift2 >> >> then you can using your c++ thrift client to connect. >> I have some articles about via thrift connect hbase in Chinese: >> http://abloz.com/2012/06/01/python-operating-hbase-thrift-to.html >> http://abloz.com/2012/10/18/php-thrift-access-hbase-two.html >> http://abloz.com/2012/05/31/example-thrift-installation.html >> >> I'm using python and php connect hbase,not c++. >> I also translate part of the HBase document to Chinese,url is: >> >> http://abloz.com/hbase/book.html >> >> for your reference. >> >> Thanks. >> Andy Zhou >> >> 2012/12/24 hua beatls >> >> > Hi, >> > we have a c++ client, and the thrift server was installed on th= e >> > Ndatanode ®ionservers. >> > ( from the official document we know that it is not recommended >> for >> > the thrift colocated with nn &jobtracker). >> > as we understand the processs from client to hbase shown below: >> > client--->thrift server----->zookeeper---->hbase. >> > my quesiton: can thrift server deploy on a stangalone server( do >> not >> > colocated with NN&Jobtracker); >> > >> > Many Thanks! >> > >> > >> > beatls >> > >> > >> > >> > On Sun, Dec 23, 2012 at 7:52 AM, Luk=C3=A1=C5=A1 Drbal >> > wrote: >> > >> > > Hi Xiang, >> > > please don't send question like this ... nobody can't response messa= ge >> > like >> > > this. >> > > This is one of questions were response can be: "yes, you can, go it" >> > > I write this message only because we have many client for access to >> HBase >> > > via thrift and i want share our experience and take some new ideas. >> > > >> > > What's your client language? >> > > >> > > Here is many options, for exaple we have enabled >> > > hbase.regionserver.export.thrift >> > > and we use all region servers from client side (this is maybe bad, i >> don' >> > > know) >> > > >> > > LesTR >> > > -- >> > > send from lower keyboard, please excuse my typos >> > > >> > > >> > > >> > > ** >> > > 2012/12/22 Xiang Hua >> > > >> > > > Hi, >> > > > how can thrift server connect to hbase, through zookeeper? how >> to >> > > > config it? >> > > > >> > > > >> > > > Thanks! >> > > > >> > > > >> > > > beatls >> > > > >> > > >> > > >> > > >> > > -- >> > > Save The World - http://www.worldcommunitygrid.org/ >> > > >> http://www.worldcommunitygrid.org/stat/viewMemberInfo.do?userName=3DLesT= R >> > > >> > > LesTR >> > > >> > >> > > --047d7bdc06f02f757804d1ad71f5--