Return-Path: X-Original-To: apmail-hadoop-common-user-archive@www.apache.org Delivered-To: apmail-hadoop-common-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 AD81ED298 for ; Wed, 19 Sep 2012 15:24:18 +0000 (UTC) Received: (qmail 92709 invoked by uid 500); 19 Sep 2012 15:24:13 -0000 Delivered-To: apmail-hadoop-common-user-archive@hadoop.apache.org Received: (qmail 92592 invoked by uid 500); 19 Sep 2012 15:24:13 -0000 Mailing-List: contact user-help@hadoop.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@hadoop.apache.org Delivered-To: mailing list user@hadoop.apache.org Received: (qmail 92584 invoked by uid 99); 19 Sep 2012 15:24:13 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 15:24:13 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=FSL_RCVD_USER,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of harsh@cloudera.com designates 209.85.223.176 as permitted sender) Received: from [209.85.223.176] (HELO mail-ie0-f176.google.com) (209.85.223.176) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 19 Sep 2012 15:24:07 +0000 Received: by iecs9 with SMTP id s9so2097692iec.35 for ; Wed, 19 Sep 2012 08:23:46 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc:content-type:content-transfer-encoding:x-gm-message-state; bh=kZwkvvq7Y3MLtTQrTKBKrdLUgl9DWvUhDMJT7AJwlKk=; b=i7NO79OmncaAgRqu+bihkuJg5SMH+YHzw/gGBeu+JpVdg/bzkN0T6FuIjitGFbQjUY vC6Rjhw1tphKc4xhU4P12QmStoXdvTVaOONqy1YCGUMpojzf6s0iTMUyOeO0Y2yhRPSF mexpK/jXAMp+2Ut05qtWOhxQQgzTX5SoVyqKO1IZ3M1lNi6h6TPQEyEaSPhItyuVUdDM YYAubhfJWlysbvBN0VtvI8tPetGhWxfpie7eCR3HeK6AZH3j0Ljsv5BnPKq5pXJSTkNV 2c8JrBeiizZ43M4Pwsz94gQweA/lHTAFL023KT9V2AZFkb3CUuVMByNIZ5sn6gPM0wQS 8anA== Received: by 10.50.95.231 with SMTP id dn7mr3143358igb.37.1348068226332; Wed, 19 Sep 2012 08:23:46 -0700 (PDT) MIME-Version: 1.0 Received: by 10.50.209.68 with HTTP; Wed, 19 Sep 2012 08:23:25 -0700 (PDT) In-Reply-To: <51BE77A7231E9E488E58380AFBD77272105D57F2@mail1.impetus.co.in> References: <51BE77A7231E9E488E58380AFBD77272105D575A@mail1.impetus.co.in> <51BE77A7231E9E488E58380AFBD77272105D57F2@mail1.impetus.co.in> From: Harsh J Date: Wed, 19 Sep 2012 20:53:25 +0530 Message-ID: Subject: Re: HBase Avro Client To: user@hbase.apache.org Cc: pankaj.misra@impetus.co.in Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable X-Gm-Message-State: ALoCoQl4o3/oqcrum8NgZ73voQfNqqoVjURMvD+nHLhQvkBaRCPcxetltbclaEXtPqeM+Ni15EC6 Hi Pankaj, You reached the Hadoop user lists. Not everyone here may be an HBase user. Moving this to the HBase user lists (user@hbase.apache.org). Please use the right project's lists for best responses. My reply inline. On Wed, Sep 19, 2012 at 12:44 PM, Pankaj Misra wrote: > Hi All, > > I have been searching around for the relevant information around building= an avro HBase client for the HBase Avro server running on a port(9090). I = have come across the HBase Definitive Guide, but even there I only see the = the server startup part in the documentation which I have already done. I won't recommend using HBase Avro Server today, primarily cause it had been marked for removal, and is removed: https://issues.apache.org/jira/browse/HBASE-6553 Instead, try the REST or the Thrift server. If you instead want to persist in using this anyway, read on. > There are a few things that I do understand reading the avro and hbase do= cumentation. As per the documentation, HBase provides AvroServer.HBaseImpl,= which is a server side of the things. This implementation runs as a server= listening to a port (9090) and acts as a bridge between the AvroServer and= HBase. The operations supported are as described in the Hbase.avpr file. The HBaseImpl is what you need actually. See the test-case http://svn.apache.org/repos/asf/hbase/tags/0.94.1/src/test/java/org/apache/= hadoop/hbase/avro/TestAvroServer.java on how to implement an instance of HBaseImpl and use the various objects such as ATableDescriptor, etc. with it. These generated classes are already made available in the distribution. > The doubts however I have are, > 1. If I have to build a client that could connect to this port and could = create table, column families and insert data, what would it take? See above. > 2. Will I have to define a custom schema and have to generate classes out= of it? Doubt it. The docs say you do not need to do this cause for Java things are pre-provided in a distribution. > 3. How would I connect to the Avro server running with HBase? Your client should just specify the right server and port address for the Avro server. > 4. Since the communication is rpc based, how will I specify what operatio= n is to be performed at the server from the client? Via the HBaseImpl client API, same as you'd do on a regular client :) > As I see, the documentation on this issue is very little, hence I am seek= ing help from the community. > > Requesting for help. Thanks. > > Regards > Pankaj Misra > > ________________________________________ > From: Pankaj Misra > Sent: Wednesday, September 19, 2012 9:32 AM > To: user@hadoop.apache.org > Subject: HBase Avro Client > > Hi All, > > I have been trying to find some help around building an Avro client for H= Base, but was not able to find much help, as most of the articles were disc= ussing stand-alone avro as a in-memory data format and serialization engine= . > > I was able to successfully start the avro server with > $bin/hbase avro start > > The server starts up without any problems and runs on a port. Now I want = to build an avro hbase client to describe table, column families and to wri= te data into habase using this avro client. > > I intend to build this client in Java and my hbase version is 0.94.1. I c= ould also see java avro-tools jar version 1.7.1 in avro downloads. Do I nee= d to use this for building my client. Some clues around this would be very = helpful. Thanks. > > Thanks and Regards > Pankaj Misra > > > _ > > ________________________________ > > Impetus Ranked in the Top 50 India=92s Best Companies to Work For 2012. > > Impetus webcast =91Designing a Test Automation Framework for Multi-vendor= Interoperable Systems=92 available at http://lf1.me/0E/. > > > NOTE: This message may contain information that is confidential, propriet= ary, privileged or otherwise protected by law. The message is intended sole= ly for the named addressee. If received in error, please destroy and notify= the sender. Any use of this email is prohibited when received in error. Im= petus does not represent, warrant and/or guarantee, that the integrity of t= his communication has been maintained nor that the communication is free of= errors, virus, interception or interference. > > ________________________________ > > Impetus Ranked in the Top 50 India=92s Best Companies to Work For 2012. > > Impetus webcast =91Designing a Test Automation Framework for Multi-vendor= Interoperable Systems=92 available at http://lf1.me/0E/. > > > NOTE: This message may contain information that is confidential, propriet= ary, privileged or otherwise protected by law. The message is intended sole= ly for the named addressee. If received in error, please destroy and notify= the sender. Any use of this email is prohibited when received in error. Im= petus does not represent, warrant and/or guarantee, that the integrity of t= his communication has been maintained nor that the communication is free of= errors, virus, interception or interference. --=20 Harsh J