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 EBA4E17E26 for ; Sun, 4 Jan 2015 10:50:32 +0000 (UTC) Received: (qmail 90400 invoked by uid 500); 4 Jan 2015 10:50:31 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 90337 invoked by uid 500); 4 Jan 2015 10:50:31 -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 89976 invoked by uid 99); 4 Jan 2015 10:50:29 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 10:50:29 +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 ayache.khettar@googlemail.com designates 209.85.215.50 as permitted sender) Received: from [209.85.215.50] (HELO mail-la0-f50.google.com) (209.85.215.50) by apache.org (qpsmtpd/0.29) with ESMTP; Sun, 04 Jan 2015 10:50:24 +0000 Received: by mail-la0-f50.google.com with SMTP id pn19so16815209lab.23 for ; Sun, 04 Jan 2015 02:48:33 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=googlemail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=PyfaAlZawbafHD2k/8Mi5/FZVVISPkQNZ9D7+f6Kozs=; b=SW0EGLke3M30gy9oXLGTh20LHs4Aub69fW2sjqwt24TPEij/V5hD60zKG96j7hoWCi 557cCy76WNTycSvv18E7XOiE7V7C0pnH2wYWzZS5wP4njRs/wrKj4VmoI+L7nSaeDPdp s+VanUPJCK+/UNC8s0OoiZIVd4yUdrSqvwpT8Jgfm61oygB2WpaNhed2epvl/MHHVJ6F 11uTwbZ1qettTHeND812FiUsE/X9ch6WHWgF0bNhXo3lwbGXht9a1pdSPhc7hAQoZ5QS oShUw3GEn6LX14Y9mu0JeonpDuZT3JMnFZxzmxuQBDuob0Byd5eOku6P+ZoYD4isILoP RV2A== MIME-Version: 1.0 X-Received: by 10.112.147.10 with SMTP id tg10mr86556982lbb.92.1420368513460; Sun, 04 Jan 2015 02:48:33 -0800 (PST) Received: by 10.25.81.1 with HTTP; Sun, 4 Jan 2015 02:48:33 -0800 (PST) In-Reply-To: References: Date: Sun, 4 Jan 2015 10:48:33 +0000 Message-ID: Subject: Re: Storing Json format in Hbase From: Ayache Khettar To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=047d7b3a8ec0b1effe050bd15006 X-Virus-Checked: Checked by ClamAV on apache.org --047d7b3a8ec0b1effe050bd15006 Content-Type: text/plain; charset=UTF-8 Hi You could perfectly store XML into Hbase without any issue. All depends what do with the XML. To query back the XML, you will have to store its metadata with it using the same row ID. This way you could query back the XML. I would go for JSON transformation only if the down stream flow needs the payload in JSON format. Ayache On 4 January 2015 at 10:07, Chandrashekhar Kotekar < shekhar.kotekar@gmail.com> wrote: > You can convert xml to json using map-reduce program and then store json > into HBase but you need to decide what should be your row key. > > Another point you have to take into account is that if you want to search > anything inside json or not. If you want to search inside json then HBase > won't be best option for you. Probably you can switch to MongoDB or some > other document store. > > Hope it helps... > > Regards, > Chandrashekhar > On 04-Jan-2015 3:32 PM, "Shashidhar Rao" > wrote: > > > Hi, > > > > Can someone guide me if the solution I am proposing is a feasible option > or > > not > > > > 1. Large xml data is delivered through external system. > > 2. Convert these into json format. > > 3. Store it into HBASE ,even though there will be hardly any updates , > only > > retrieval. I have looked at Hive but finally had to decide against it as > > retrieval would be slow. > > 4. Need to use Hadoop Nosql as other components are all using Hadoop > > ecosystem. > > > > Can xml data be directly stored into Hbase without any > > transformation.(second question) > > > > Any suggestions on storing xml data on Nosql. (only open source and no > > commercial nosql) > > > > Thanks in advance > > > > Shashi > > > --047d7b3a8ec0b1effe050bd15006--