Return-Path: X-Original-To: apmail-hadoop-user-archive@minotaur.apache.org Delivered-To: apmail-hadoop-user-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 81D54E382 for ; Fri, 18 Jan 2013 23:37:23 +0000 (UTC) Received: (qmail 56786 invoked by uid 500); 18 Jan 2013 23:37:18 -0000 Delivered-To: apmail-hadoop-user-archive@hadoop.apache.org Received: (qmail 56673 invoked by uid 500); 18 Jan 2013 23:37:18 -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 56664 invoked by uid 99); 18 Jan 2013 23:37:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 23:37:18 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_NEUTRAL X-Spam-Check-By: apache.org Received-SPF: neutral (nike.apache.org: local policy) Received: from [209.85.214.171] (HELO mail-ob0-f171.google.com) (209.85.214.171) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 18 Jan 2013 23:37:11 +0000 Received: by mail-ob0-f171.google.com with SMTP id dn14so4269335obc.30 for ; Fri, 18 Jan 2013 15:36:50 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:in-reply-to:references:from:date:message-id :subject:to:content-type:x-gm-message-state; bh=5y+16uwPDbkrWXXjpNz6rR8ou0KZEhPq5hvLeCTozy4=; b=kqryrF4toU1INgLWzcT8GuZIzN+TPJkteXdoMXL2PQdsnz6FeC+cT2HxWxr0E2gaHR R7v4X3+TR5wlHBAF5xOs57xJz/9jR2U4MhQu/sN74QMY08w5m3s8xvqNU3qZeGdSw2UX EFxNNebpzTndNdyc8SKZuPCjDxz4vWEsCudcrkflcy+TQNTTe9RuluOoW/z2HGJ3GkAk 6sspkZn81XIGFQrGWCGmn/8wLFeJUXc9tnz8iIjyjIq3+UvuYSGdYY7iYUPwtciBmt85 gpyFdScc9B47sG4IekvKppQ3jMzB0MiteMklQjSMj5h/aC9bT3oINe/AnUiEBqsJ9xTq Knzw== X-Received: by 10.182.114.71 with SMTP id je7mr8456109obb.20.1358552210327; Fri, 18 Jan 2013 15:36:50 -0800 (PST) MIME-Version: 1.0 Received: by 10.76.68.197 with HTTP; Fri, 18 Jan 2013 15:36:30 -0800 (PST) In-Reply-To: References: <8EBC38C3-73A0-43F8-ADD5-102CDC593946@maprtech.com> From: Ted Dunning Date: Fri, 18 Jan 2013 15:36:30 -0800 Message-ID: Subject: Re: Estimating disk space requirements To: user@hadoop.apache.org Content-Type: multipart/alternative; boundary=f46d0444ee6de7cad504d39895d9 X-Gm-Message-State: ALoCoQk7jN7zI2jZmopIKNeao6lnhMlgulaJ3OViRx9HHHQHnWpf14w20NuR0KRaKodI/pBw2LK/ X-Virus-Checked: Checked by ClamAV on apache.org --f46d0444ee6de7cad504d39895d9 Content-Type: text/plain; charset=ISO-8859-1 If you make 20 individual small servers, that isn't much different from 20 from one server. The only difference would be if the neighbors of the separate VMs use less resource. On Fri, Jan 18, 2013 at 3:34 PM, Panshul Whisper wrote: > ah now i understand what you mean. > I will be creating 20 individual servers on the cloud, and not create one > big server and make several virtual nodes inside it. > I will be paying for 20 different nodes.. all configured with hadoop and > connected to the cluster. > > Thanx for the intel :) > > > On Fri, Jan 18, 2013 at 11:59 PM, Ted Dunning wrote: > >> It is usually better to not subdivide nodes into virtual nodes. You will >> generally get better performance form the original node because you only >> pay for the OS once and because your disk I/O will be scheduled better. >> >> If you look at EC2 pricing, however, the spot market often has arbitrage >> opportunities where one size node is absurdly cheap relative to others. In >> that case, it pays to scale the individual nodes up or down. >> >> The only reasonable reason to split nodes to very small levels is for >> testing and training. >> >> >> On Fri, Jan 18, 2013 at 2:30 PM, Panshul Whisper wrote: >> >>> Thnx for the reply Ted, >>> >>> You can find 40 GB disks when u make virtual nodes on a cloud like >>> Rackspace ;-) >>> >>> About the os partitions I did not exactly understand what you meant. >>> I have made a server on the cloud.. And I just installed and configured >>> hadoop and hbase in the /use/local folder. >>> And I am pretty sure it does not have a separate partition for root. >>> >>> Please help me explain what u meant and what else precautions should I >>> take. >>> >>> Thanks, >>> >>> Regards, >>> Ouch Whisper >>> 01010101010 >>> On Jan 18, 2013 11:11 PM, "Ted Dunning" wrote: >>> >>>> Where do you find 40gb disks now a days? >>>> >>>> Normally your performance is going to be better with more space but >>>> your network may be your limiting factor for some computations. That could >>>> give you some paradoxical scaling. Hbase will rarely show this behavior. >>>> >>>> Keep in mind you also want to allow for an os partition. Current >>>> standard practice is to reserve as much as 100 GB for that partition but in >>>> your case 10gb better:-) >>>> >>>> Note that if you account for this, the node counts don't scale as >>>> simply. The overhead of these os partitions goes up with number of nodes. >>>> >>>> On Jan 18, 2013, at 8:55 AM, Panshul Whisper >>>> wrote: >>>> >>>> If we look at it with performance in mind, >>>> is it better to have 20 Nodes with 40 GB HDD >>>> or is it better to have 10 Nodes with 80 GB HDD? >>>> >>>> they are connected on a gigabit LAN >>>> >>>> Thnx >>>> >>>> >>>> On Fri, Jan 18, 2013 at 2:26 PM, Jean-Marc Spaggiari < >>>> jean-marc@spaggiari.org> wrote: >>>> >>>>> 20 nodes with 40 GB will do the work. >>>>> >>>>> After that you will have to consider performances based on your access >>>>> pattern. But that's another story. >>>>> >>>>> JM >>>>> >>>>> 2013/1/18, Panshul Whisper : >>>>> > Thank you for the replies, >>>>> > >>>>> > So I take it that I should have atleast 800 GB on total free space on >>>>> > HDFS.. (combined free space of all the nodes connected to the >>>>> cluster). So >>>>> > I can connect 20 nodes having 40 GB of hdd on each node to my >>>>> cluster. Will >>>>> > this be enough for the storage? >>>>> > Please confirm. >>>>> > >>>>> > Thanking You, >>>>> > Regards, >>>>> > Panshul. >>>>> > >>>>> > >>>>> > On Fri, Jan 18, 2013 at 1:36 PM, Jean-Marc Spaggiari < >>>>> > jean-marc@spaggiari.org> wrote: >>>>> > >>>>> >> Hi Panshul, >>>>> >> >>>>> >> If you have 20 GB with a replication factor set to 3, you have only >>>>> >> 6.6GB available, not 11GB. You need to divide the total space by the >>>>> >> replication factor. >>>>> >> >>>>> >> Also, if you store your JSon into HBase, you need to add the key >>>>> size >>>>> >> to it. If you key is 4 bytes, or 1024 bytes, it makes a difference. >>>>> >> >>>>> >> So roughly, 24 000 000 * 5 * 1024 = 114GB. You don't have the space >>>>> to >>>>> >> store it. Without including the key size. Even with a replication >>>>> >> factor set to 5 you don't have the space. >>>>> >> >>>>> >> Now, you can add some compression, but even with a lucky factor of >>>>> 50% >>>>> >> you still don't have the space. You will need something like 90% >>>>> >> compression factor to be able to store this data in your cluster. >>>>> >> >>>>> >> A 1T drive is now less than $100... So you might think about >>>>> replacing >>>>> >> you 20 GB drives by something bigger. >>>>> >> to reply to your last question, for your data here, you will need AT >>>>> >> LEAST 350GB overall storage. But that's a bare minimum. Don't go >>>>> under >>>>> >> 500GB. >>>>> >> >>>>> >> IMHO >>>>> >> >>>>> >> JM >>>>> >> >>>>> >> 2013/1/18, Panshul Whisper : >>>>> >> > Hello, >>>>> >> > >>>>> >> > I was estimating how much disk space do I need for my cluster. >>>>> >> > >>>>> >> > I have 24 million JSON documents approx. 5kb each >>>>> >> > the Json is to be stored into HBASE with some identifying data in >>>>> >> coloumns >>>>> >> > and I also want to store the Json for later retrieval based on >>>>> the Id >>>>> >> data >>>>> >> > as keys in Hbase. >>>>> >> > I have my HDFS replication set to 3 >>>>> >> > each node has Hadoop and hbase and Ubuntu installed on it.. so >>>>> approx >>>>> >> > 11 >>>>> >> GB >>>>> >> > is available for use on my 20 GB node. >>>>> >> > >>>>> >> > I have no idea, if I have not enabled Hbase replication, is the >>>>> HDFS >>>>> >> > replication enough to keep the data safe and redundant. >>>>> >> > How much total disk space I will need for the storage of the data. >>>>> >> > >>>>> >> > Please help me estimate this. >>>>> >> > >>>>> >> > Thank you so much. >>>>> >> > >>>>> >> > -- >>>>> >> > Regards, >>>>> >> > Ouch Whisper >>>>> >> > 010101010101 >>>>> >> > >>>>> >> >>>>> > >>>>> > >>>>> > >>>>> > -- >>>>> > Regards, >>>>> > Ouch Whisper >>>>> > 010101010101 >>>>> > >>>>> >>>> >>>> >>>> >>>> -- >>>> Regards, >>>> Ouch Whisper >>>> 010101010101 >>>> >>>> >> > > > -- > Regards, > Ouch Whisper > 010101010101 > --f46d0444ee6de7cad504d39895d9 Content-Type: text/html; charset=ISO-8859-1 Content-Transfer-Encoding: quoted-printable If you make 20 individual small servers, that isn't much different from= 20 from one server. =A0The only difference would be if the neighbors of th= e separate VMs use less resource.

On Fri,= Jan 18, 2013 at 3:34 PM, Panshul Whisper <ouchwhisper@gmail.com&g= t; wrote:
ah now i understand what yo= u mean.
I will be creating 20 individual servers on the cloud, and not = create one big server and make several virtual nodes inside it.
I will be paying for 20 different nodes.. all configured with hadoop a= nd connected to the cluster.=A0

Thanx for the intel :)


On Fri, Jan 18, 2013 at 11:59 PM, = Ted Dunning <tdunning@maprtech.com> wrote:
It is usually better to not subdivide nodes = into virtual nodes. =A0You will generally get better performance form the o= riginal node because you only pay for the OS once and because your disk I/O= will be scheduled better.

If you look at EC2 pricing, however, the spot market often h= as arbitrage opportunities where one size node is absurdly cheap relative t= o others. =A0In that case, it pays to scale the individual nodes up or down= .

The only reasonable reason to split nodes to very small= levels is for testing and training. =A0


On Fri, Jan 18, 2013 at 2:30 PM, Panshul Whisper <ouchwhispe= r@gmail.com> wrote:

Thnx for the reply Ted,

You can find 40 GB disks when u make virtual nodes on a clou= d like Rackspace ;-)

About the os partitions I did not exactly understand what yo= u meant.
I have made a server on the cloud.. And I just installed and configured had= oop and hbase in the /use/local folder.
And I am pretty sure it does not have a separate partition for root.

Please help me explain what u meant and what else precaution= s should I take.

Thanks,

Regards,
Ouch Whisper
01010101010

On Jan 18, 2013 11:11 PM, "Ted Dunning"= ; <tdunning@m= aprtech.com> wrote:
Where do you find 40gb disks now a days?
<= br>
Normally your performance is going to be better with more spa= ce but your network may be your limiting factor for some computations. =A0T= hat could give you some paradoxical scaling. =A0Hbase will rarely show this= behavior.=A0

Keep in mind you also want to allow for an os partition= . Current standard practice is to reserve as much as 100 GB for that partit= ion but in your case 10gb better:-)

Note that if y= ou account for this, the node counts don't scale as simply. =A0The over= head of these os partitions goes up with number of nodes. =A0

On Jan 18, 2013, at 8:55 AM, Panshul Whisper <ouchwhisper@gmail.com> wro= te:

If we look at it with performance in mind,=A0
is it better to have 20 Nodes with 40 GB HDD
or is it better to h= ave 10 Nodes with 80 GB HDD?

they are connected on= a gigabit LAN

Thnx


On Fri, Jan 18, 2013 at 2:26 PM, Jean-Marc Spaggiari= <jean-marc@spaggiari.org> wrote:
20 nodes with 40 GB will do the work.

After that you will have to consider performances based on your access
pattern. But that's another story.

JM

2013/1/18, Panshul Whisper <ouchwhisper@gmail.com>:
> Thank you for the replies,
>
> So I take it that I should have atleast 800 GB on total free space on<= br> > HDFS.. (combined free space of all the nodes connected to the cluster)= . So
> I can connect 20 nodes having 40 GB of hdd on each node to my cluster.= Will
> this be enough for the storage?
> Please confirm.
>
> Thanking You,
> Regards,
> Panshul.
>
>
> On Fri, Jan 18, 2013 at 1:36 PM, Jean-Marc Spaggiari <
> jean-marc= @spaggiari.org> wrote:
>
>> Hi Panshul,
>>
>> If you have 20 GB with a replication factor set to 3, you have onl= y
>> 6.6GB available, not 11GB. You need to divide the total space by t= he
>> replication factor.
>>
>> Also, if you store your JSon into HBase, you need to add the key s= ize
>> to it. If you key is 4 bytes, or 1024 bytes, it makes a difference= .
>>
>> So roughly, 24 000 000 * 5 * 1024 =3D 114GB. You don't have th= e space to
>> store it. Without including the key size. Even with a replication<= br> >> factor set to 5 you don't have the space.
>>
>> Now, you can add some compression, but even with a lucky factor of= 50%
>> you still don't have the space. You will need something like 9= 0%
>> compression factor to be able to store this data in your cluster.<= br> >>
>> A 1T drive is now less than $100... So you might think about repla= cing
>> you 20 GB drives by something bigger.
>> to reply to your last question, for your data here, you will need = AT
>> LEAST 350GB overall storage. But that's a bare minimum. Don= 9;t go under
>> 500GB.
>>
>> IMHO
>>
>> JM
>>
>> 2013/1/18, Panshul Whisper <ouchwhisper@gmail.com>:
>> > Hello,
>> >
>> > I was estimating how much disk space do I need for my cluster= .
>> >
>> > I have 24 million JSON documents approx. 5kb each
>> > the Json is to be stored into HBASE with some identifying dat= a in
>> coloumns
>> > and I also want to store the Json for later retrieval based o= n the Id
>> data
>> > as keys in Hbase.
>> > I have my HDFS replication set to 3
>> > each node has Hadoop and hbase and Ubuntu installed on it.. s= o approx
>> > 11
>> GB
>> > is available for use on my 20 GB node.
>> >
>> > I have no idea, if I have not enabled Hbase replication, is t= he HDFS
>> > replication enough to keep the data safe and redundant.
>> > How much total disk space I will need for the storage of the = data.
>> >
>> > Please help me estimate this.
>> >
>> > Thank you so much.
>> >
>> > --
>> > Regards,
>> > Ouch Whisper
>> > 010101010101
>> >
>>
>
>
>
> --
> Regards,
> Ouch Whisper
> 010101010101
>



--
Regard= s,
Ouch Whisper
010101010101




--
Rega= rds,
Ouch Whisper
010101010101

--f46d0444ee6de7cad504d39895d9--