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 54EE9E405 for ; Fri, 11 Jan 2013 17:41:07 +0000 (UTC) Received: (qmail 91032 invoked by uid 500); 11 Jan 2013 17:41:04 -0000 Delivered-To: apmail-hbase-user-archive@hbase.apache.org Received: (qmail 90966 invoked by uid 500); 11 Jan 2013 17:41:04 -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 90915 invoked by uid 99); 11 Jan 2013 17:41:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 17:41:04 +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 mohitanchlia@gmail.com designates 209.85.223.177 as permitted sender) Received: from [209.85.223.177] (HELO mail-ie0-f177.google.com) (209.85.223.177) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 11 Jan 2013 17:40:59 +0000 Received: by mail-ie0-f177.google.com with SMTP id k13so2624712iea.22 for ; Fri, 11 Jan 2013 09:40:38 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:x-received:in-reply-to:references:date:message-id :subject:from:to:content-type; bh=Hxj+CDZa3795+jMhYsd59PmlWyZ6JFoEccPPQd1A1bA=; b=F1gst/OxdCekmvmwZrxexg39THBOoZZH9t/3xDfzbu0SwKsyr9EDPWOYdmkBS/qViP 8C3ptjII+DmLCslUe+AxwZVd5HjHEZutiSGiU+Ho5D5zbIOCVbfFZCHkcQsOz0q7nT2M +EWFm4Y2sTfUQ0LeSLGzo3AmvIcCT5NrvRpl2OGdpXpvEky6OXvCCQhfp0Nkb81g3+m0 rvgOHs0EkaX/H1OsvPxhoM4AjyrNJj4SyjQaOgDqv220IPzEleP8Lna9oJ+OybNBKFVu csrVMsym+qaeWFq37WAw3qPZs8oRKPKAQTeKO5VZ5wlU0r+m8m7HgMfqa3mROe9Sstvs XN5A== MIME-Version: 1.0 X-Received: by 10.50.106.199 with SMTP id gw7mr8476igb.26.1357926038807; Fri, 11 Jan 2013 09:40:38 -0800 (PST) Received: by 10.64.44.228 with HTTP; Fri, 11 Jan 2013 09:40:38 -0800 (PST) In-Reply-To: References: <1357380684848-4036184.post@n3.nabble.com> <3702994083872207037@unknownmsgid> <1357876263.21531.YahooMailNeo@web140603.mail.bf1.yahoo.com> Date: Fri, 11 Jan 2013 09:40:38 -0800 Message-ID: Subject: Re: Storing images in Hbase From: Mohit Anchlia To: user@hbase.apache.org Content-Type: multipart/alternative; boundary=e89a8f234d6d2ca39f04d306cbcb X-Virus-Checked: Checked by ClamAV on apache.org --e89a8f234d6d2ca39f04d306cbcb Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: quoted-printable I think it really depends on volume of the traffic, data distribution per region, how and when files compaction occurs, number of nodes in the cluster. In my experience when it comes to blob data where you are serving 10s of thousand+ requests/sec writes and reads then it's very difficult to manage HBase without very hard operations and maintenance in play. Jack earlier mentioned they have 1 billion images, It would be interesting to know what they see in terms of compaction, no of requests per sec. I'd be surprised that in high volume site it can be done without any Caching layer on the top to alleviate IO spikes that occurs because of GC and compactions= . On Fri, Jan 11, 2013 at 7:27 AM, Mohammad Tariq wrote: > IMHO, if the image files are not too huge, Hbase can efficiently serve th= e > purpose. You can store some additional info along with the file depending > upon your search criteria to make the search faster. Say if you want to > fetch images by the type, you can store images in one column and its > extension in another column(jpg, tiff etc). > > BTW, what exactly is the problem which you are facing. You have written > "But I still cant do it"? > > Warm Regards, > Tariq > https://mtariq.jux.com/ > > > On Fri, Jan 11, 2013 at 8:30 PM, Michael Segel >wrote: > > > That's a viable option. > > HDFS reads are faster than HBase, but it would require first hitting th= e > > index in HBase which points to the file and then fetching the file. > > It could be faster... we found storing binary data in a sequence file a= nd > > indexed on HBase to be faster than HBase, however, YMMV and HBase has > been > > improved since we did that project.... > > > > > > On Jan 10, 2013, at 10:56 PM, shashwat shriparv < > dwivedishashwat@gmail.com> > > wrote: > > > > > Hi Kavish, > > > > > > i have a better idea for you copy your image files to a single file o= n > > > hdfs, and if new image comes append it to the existing image, and kee= p > > and > > > update the metadata and the offset to the HBase. Because if you put > > bigger > > > image in hbase it wil lead to some issue. > > > > > > > > > > > > =E2=88=9E > > > Shashwat Shriparv > > > > > > > > > > > > On Fri, Jan 11, 2013 at 9:21 AM, lars hofhansl > wrote: > > > > > >> Interesting. That's close to a PB if my math is correct. > > >> Is there a write up about this somewhere? Something that we could li= nk > > >> from the HBase homepage? > > >> > > >> -- Lars > > >> > > >> > > >> ----- Original Message ----- > > >> From: Jack Levin > > >> To: user@hbase.apache.org > > >> Cc: Andrew Purtell > > >> Sent: Thursday, January 10, 2013 9:24 AM > > >> Subject: Re: Storing images in Hbase > > >> > > >> We stored about 1 billion images into hbase with file size up to 10M= B. > > >> Its been running for close to 2 years without issues and serves > > >> delivery of images for Yfrog and ImageShack. If you have any > > >> questions about the setup, I would be glad to answer them. > > >> > > >> -Jack > > >> > > >> On Sun, Jan 6, 2013 at 1:09 PM, Mohit Anchlia > > > >> wrote: > > >>> I have done extensive testing and have found that blobs don't belon= g > in > > >> the > > >>> databases but are rather best left out on the file system. Andrew > > >> outlined > > >>> issues that you'll face and not to mention IO issues when compactio= n > > >> occurs > > >>> over large files. > > >>> > > >>> On Sun, Jan 6, 2013 at 12:52 PM, Andrew Purtell > > > >> wrote: > > >>> > > >>>> I meant this to say "a few really large values" > > >>>> > > >>>> On Sun, Jan 6, 2013 at 12:49 PM, Andrew Purtell < > apurtell@apache.org> > > >>>> wrote: > > >>>> > > >>>>> Consider if the split threshold is 2 GB but your one row contains > 10 > > >> GB > > >>>> as > > >>>>> really large value. > > >>>> > > >>>> > > >>>> > > >>>> > > >>>> -- > > >>>> Best regards, > > >>>> > > >>>> - Andy > > >>>> > > >>>> Problems worthy of attack prove their worth by hitting back. - Pie= t > > Hein > > >>>> (via Tom White) > > >>>> > > >> > > >> > > > > > --e89a8f234d6d2ca39f04d306cbcb--