Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id BDB8C200B76 for ; Tue, 30 Aug 2016 12:23:12 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id BC3E4160ABA; Tue, 30 Aug 2016 10:23:12 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 0B6E2160AA8 for ; Tue, 30 Aug 2016 12:23:11 +0200 (CEST) Received: (qmail 25482 invoked by uid 500); 30 Aug 2016 10:23:10 -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 25466 invoked by uid 99); 30 Aug 2016 10:23:10 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Aug 2016 10:23:10 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id C0CF218027E for ; Tue, 30 Aug 2016 10:23:09 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 3.086 X-Spam-Level: *** X-Spam-Status: No, score=3.086 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, MISSING_HEADERS=1.207, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id 4tZe3t0lF0um for ; Tue, 30 Aug 2016 10:23:08 +0000 (UTC) Received: from mail-yw0-f171.google.com (mail-yw0-f171.google.com [209.85.161.171]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B92CB5F39A for ; Tue, 30 Aug 2016 10:23:07 +0000 (UTC) Received: by mail-yw0-f171.google.com with SMTP id z8so8405562ywa.1 for ; Tue, 30 Aug 2016 03:23:07 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:cc; bh=fJHf4SJ0LSzqRd1IcPZeTV9ct11Wcylg/2iOP7+UwLc=; b=BZ91X91fzeeox7FdMGVWlrrCNDWkTn61QWnsADRJghlWL746FQAJIEmmT5E6W2XEut 89os+H7miGj2lZInvFs+TrOySCFhvdXpH3yW19TOQa5WqVUoQX9sAS1h45mEmgISLnpS l0sG2ihf7wmiAidAhSPApH6iqYqKKD0POekOYX0CuTKHDC8ItGuUx2mVxxipC68QbkE1 +CTBy5LiJjrgXMA7Btsuz3vd6AKCNEorCO1dK5Ioe/uAlhapl7G/1zf6EekJp/COov7I r57YpB+9LY3M5M3lAT5WXoZdCRdD6uwAXxR/2T50NM9sLh+7vHMWcwowRvFt1TsokWFO /8aA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:cc; bh=fJHf4SJ0LSzqRd1IcPZeTV9ct11Wcylg/2iOP7+UwLc=; b=lT9PRlDDDmsl+izWkpcsZWaB76FLg6yTXFK5trhusJmNtroARlazqbnquggJTw0INn c6FHToFEDmutaQOhVt5UNpp1K9jiv5dcxL08YmchFI1E6fp2TLS4nc74IWS5t+gABNlF qf1mPgYS2IGWf32apVnLadGlRyh35OI9d3NfmyEScuOdkjY3cLS+7a5890HxMRPjuSl7 as8/3nFHQ6+3KHJKqgzu4u/zNFTgwo0ZoyYjIi2nZUlKPOYAns/KnKB55Mn4/EeSb2Xn Et/lakeBTr/MzJJc9BG1ONKpZ2C5U4nC3a+khj+MY+CSf4n3PNPUHYRNwQrZCoGXrMna 9n8g== X-Gm-Message-State: AE9vXwMTR74aUdV07RiLAZko1946vQ743yPcmhn7w5ZP+mF/4YXLLzWNSKIAGW/vcOEgZzAuUAi/iKJ1b2bPkw== X-Received: by 10.129.111.87 with SMTP id k84mr2227387ywc.257.1472552581133; Tue, 30 Aug 2016 03:23:01 -0700 (PDT) MIME-Version: 1.0 Received: by 10.37.22.214 with HTTP; Tue, 30 Aug 2016 03:23:00 -0700 (PDT) In-Reply-To: References: From: Ted Yu Date: Tue, 30 Aug 2016 03:23:00 -0700 Message-ID: Subject: Re: Avro schema getting changed dynamically Cc: "user@hbase.apache.org" Content-Type: multipart/alternative; boundary=001a1146ff9082fa7e053b475d72 archived-at: Tue, 30 Aug 2016 10:23:12 -0000 --001a1146ff9082fa7e053b475d72 Content-Type: text/plain; charset=UTF-8 Probably you can poll user@avro for how the new field is handled given old data. FYI On Mon, Aug 29, 2016 at 11:28 PM, Manjeet Singh wrote: > I want ot add few more points > > I am using Java native Api for Hbase get/put > > and below is the example > > assume i have below schema and I am inserting data by using this schema > into Hbase but later I have new new values coming and i need to fit this > into my schema for this I need to create new schema as showing in below > example > in example 2 I have new field time stamp > > example 1 > { "type" : "record", "name" : "twitter_schema", "namespace" : > "com.miguno.avro", "fields" : [ { "name" : "username", "type" : "string", > "doc" : "Name of the user account on Twitter.com" }, { "name" : "tweet", > "type" : "string", "doc" : "The content of the user's Twitter message" } ] > } > > > example 2 > > > { "type" : "record", "name" : "twitter_schema", "namespace" : > "com.miguno.avro", "fields" : [ { "name" : "username", "type" : "string", > "doc" : "Name of the user account on Twitter.com" }, { "name" : "tweet", > "type" : "string", "doc" : "The content of the user's Twitter message" }, { > "name" : "timestamp", "type" : "long", "doc" : "Unix epoch time in seconds" > } ], } > > > > > Thanks > Manjeet > > > > > > On Tue, Aug 30, 2016 at 11:47 AM, Manjeet Singh < > manjeet.chandhok@gmail.com> > wrote: > > > Hi All, > > > > I have use case to put data in avro format in Hbase , I have frequent > read > > write operations but its not a problem. > > > > Problem is what if my avro schema get changed how shuld I deal with it? > > This should in mind what about older data which already inserted in Hbase > > and now we have new schema. > > > > can anyone suggest me solution for the same > > > > Thanks > > Manjeet > > > > -- > > luv all > > > > > > -- > luv all > --001a1146ff9082fa7e053b475d72--