<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: How much actual space required to store 10GB to HDFS? And HBase ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139943#M35419</link>
    <description>&lt;P&gt;HDFS:&lt;/P&gt;&lt;P&gt;- You need ( per default ) 30GB on the datanodes ( 3x replication )&lt;/P&gt;&lt;P&gt;- On the namenode the space is negligible you have 40 blocks x 3 = 120 blocks ~ 12 kbytes of RAM on the Namenode. ( you need around 100byte of RAM for every block in the Namenode memory. You also need a bit of space on disc but thats even less in the fsimage ( files but not blocks are stored on disc, however namenodes need a bit more since they also store edits and multiple versions of the fsimage.  But still very small.&lt;/P&gt;&lt;P&gt;HBase:&lt;/P&gt;&lt;P&gt;More complicated question. In hbase it depends on the way you store data. Every field in your hbase table is stored in HFiles together with the key, the fieldname, the timestamp ... So if you store it in a single field per row your storage is much less than if you would have hundreds of 2 byte columns. On the other hand you can also enable compression in Hbase so that reduces space.  &lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 16:36:10 GMT</pubDate>
    <dc:creator>bleonhardi</dc:creator>
    <dc:date>2016-07-21T16:36:10Z</dc:date>
    <item>
      <title>How much actual space required to store 10GB to HDFS? And HBase ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139942#M35418</link>
      <description>&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;Let’s assume 10GB of file to store in HDFS. Block size of
the cluster is 256MB, replication factor as 3 and I am using 3 datanodes.&lt;/P&gt;&lt;P&gt;Now, this 10GB of data requires how much space in every Datanode,
NameNode and secondary NameNode. ( I am really interesting to understand about
space utilization of NameNode and Secondary NameNode)&lt;/P&gt;&lt;P&gt;Also how much space required to store the same data in
HBase.  &lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 12:01:04 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139942#M35418</guid>
      <dc:creator>arunkumar_d</dc:creator>
      <dc:date>2016-07-21T12:01:04Z</dc:date>
    </item>
    <item>
      <title>Re: How much actual space required to store 10GB to HDFS? And HBase ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139943#M35419</link>
      <description>&lt;P&gt;HDFS:&lt;/P&gt;&lt;P&gt;- You need ( per default ) 30GB on the datanodes ( 3x replication )&lt;/P&gt;&lt;P&gt;- On the namenode the space is negligible you have 40 blocks x 3 = 120 blocks ~ 12 kbytes of RAM on the Namenode. ( you need around 100byte of RAM for every block in the Namenode memory. You also need a bit of space on disc but thats even less in the fsimage ( files but not blocks are stored on disc, however namenodes need a bit more since they also store edits and multiple versions of the fsimage.  But still very small.&lt;/P&gt;&lt;P&gt;HBase:&lt;/P&gt;&lt;P&gt;More complicated question. In hbase it depends on the way you store data. Every field in your hbase table is stored in HFiles together with the key, the fieldname, the timestamp ... So if you store it in a single field per row your storage is much less than if you would have hundreds of 2 byte columns. On the other hand you can also enable compression in Hbase so that reduces space.  &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 16:36:10 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139943#M35419</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-07-21T16:36:10Z</dc:date>
    </item>
    <item>
      <title>Re: How much actual space required to store 10GB to HDFS? And HBase ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139944#M35420</link>
      <description>&lt;P&gt;@&lt;A href="https://community.hortonworks.com/users/1450/arunkumard.html"&gt;Arunkumar Dhanakumar&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Since replication factor is by default 3, using Benjamin's approach for sizing, 10 GB will be per data node. That is very simplified and assumes big files. Additional to Benjamin's response, let's keep in mind that the block size matter. The calculation presented above is rough-order of magnitude and it does not account that data could be as many small files that may not fill the blocks. For example, your block size could be 256 MB and you stored 100 files of 1 KB. That could take 100 x 256 MB. Also, compression plays a role here. It depends the type of compression used, etc. Also, if you data is stored as ORC, you could have your 10 GB data reduced at 3 GB data even without compression.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 01:31:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139944#M35420</guid>
      <dc:creator>cstanca</dc:creator>
      <dc:date>2016-07-22T01:31:25Z</dc:date>
    </item>
    <item>
      <title>Re: How much actual space required to store 10GB to HDFS? And HBase ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139945#M35421</link>
      <description>&lt;P&gt;Thanks for the additional info. I was really curious to understand
about the NameNode disk utilization before.&lt;/P&gt;&lt;P&gt;Since my cluster load above 1GB of file always, so it’s OK
to have 256MB of block size now or I may improve it later on.&lt;/P&gt;&lt;P&gt;Right now I am loading the data as a text file. So the
compression has to come from the local file system (tar or gz) or is there any
default compression technique which is available in hdfs native command(setup)
?&lt;/P&gt;&lt;P&gt;I know few of the native compression technique is available for
HBase, what would the better compression algorithms when storing the text data.&lt;/P&gt;&lt;P&gt;I curious to understand about minimum disk utilization and
better performance.&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 17:39:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139945#M35421</guid>
      <dc:creator>arunkumar_d</dc:creator>
      <dc:date>2016-07-22T17:39:29Z</dc:date>
    </item>
    <item>
      <title>Re: How much actual space required to store 10GB to HDFS? And HBase ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139946#M35422</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1450/arunkumard.html" nodeid="1450"&gt;@Arunkumar Dhanakumar&lt;/A&gt; &lt;/P&gt;&lt;P&gt;You can simply compress text files before you upload them. Common codecs include gzip, snappy and lzo. HDFS does not care. All Mapreduce/Hive/pig jobs support these standard codecs and identify them by their file extension. &lt;/P&gt;&lt;P&gt;If you use gzip you just need to make sure that each file is not too big since its not splittable. I.e. each gzip file will result in one mapper. &lt;/P&gt;&lt;P&gt;You can also compress the output of jobs. So you could run a pig job that reads the text files and writes them again. I think you simply need to add the name .gz for example to the output. Again you need to understand that now each part file is gzipped and will run in one mapper later. Lzo and snappy on the other hand are splittable but do not provide as good a compression.&lt;/P&gt;&lt;P&gt;&lt;A href="http://stackoverflow.com/questions/4968843/how-do-i-store-gzipped-files-using-pigstorage-in-apache-pig"&gt;http://stackoverflow.com/questions/4968843/how-do-i-store-gzipped-files-using-pigstorage-in-apache-pig&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 22 Jul 2016 19:14:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-much-actual-space-required-to-store-10GB-to-HDFS-And/m-p/139946#M35422</guid>
      <dc:creator>bleonhardi</dc:creator>
      <dc:date>2016-07-22T19:14:58Z</dc:date>
    </item>
  </channel>
</rss>

