<?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: HDFS Block size 1Gb/2GB in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79474#M83217</link>
    <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17594"&gt;@sbpothineni&lt;/a&gt;&amp;nbsp;Why not using&amp;nbsp;CombineFileInputFormat?&lt;/P&gt;</description>
    <pubDate>Thu, 06 Sep 2018 19:37:55 GMT</pubDate>
    <dc:creator>Fawze</dc:creator>
    <dc:date>2018-09-06T19:37:55Z</dc:date>
    <item>
      <title>HDFS Block size 1Gb/2GB</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79468#M83216</link>
      <description>&lt;P&gt;CDH enterprise 5.14.0&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I am trying to use larger block size like 1GB/2GB.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In our case the files are 5GB to 14GB size and we process &lt;STRONG&gt;whole file per mapper,&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;is there any side effects to using larger block size like 1GB, 2GB? Like HDFS stability when doing replication?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 17:50:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79468#M83216</guid>
      <dc:creator>sbpothineni</dc:creator>
      <dc:date>2018-09-06T17:50:52Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Block size 1Gb/2GB</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79474#M83217</link>
      <description>&lt;P&gt;Hi&amp;nbsp;&lt;a href="https://community.cloudera.com/t5/user/viewprofilepage/user-id/17594"&gt;@sbpothineni&lt;/a&gt;&amp;nbsp;Why not using&amp;nbsp;CombineFileInputFormat?&lt;/P&gt;</description>
      <pubDate>Thu, 06 Sep 2018 19:37:55 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79474#M83217</guid>
      <dc:creator>Fawze</dc:creator>
      <dc:date>2018-09-06T19:37:55Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS Block size 1Gb/2GB</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79504#M83218</link>
      <description>There are a few cons to raising your block size:&lt;BR /&gt;&lt;BR /&gt;- Increased cost of recovery during write failures&lt;BR /&gt;&lt;BR /&gt;When a client is writing a new block into the DataNode pipeline and one of the DataNode fails, there is a enabled-by-default recovery feature that will attempt to refill the gap in the replicated pipeline by transferring the partially written block from one of the remaining good DataNodes to a new DataNode.&lt;BR /&gt;&lt;BR /&gt;When this happens, the client is blocked (the outstream,write(…) caller is blocked in the API code). With increased block size, the time waited will also increase greatly depending on how much of the partial block data was written before the failure occurred.&lt;BR /&gt;&lt;BR /&gt;A worst-case wait example would involve the time required for network-copying 1.99 GiB for a 2 GiB block size because an involved DN may have failed at that specific point.&lt;BR /&gt;&lt;BR /&gt;- Cost of replication caused by DataNode loss or decommission&lt;BR /&gt;&lt;BR /&gt;When a DataNode is lost or is being decommissioned, the system has to react by re-filling the gaps in replica counts it creates. With smaller block sizes this activity is easy to spread randomly across the cluster, as several different nodes overall can take part in the re-replicate process. With larger blocks, only a few DNs can participate, and another consequence could be more lopsided space usage across DNs.&lt;BR /&gt;&lt;BR /&gt;That said, use of 1-2 GiB is not unheard of and I've seen a few large clusters apply that as their default block size. Its just worth being aware of the cons, looking out for such impact and tuning accordingly as you go.&lt;BR /&gt;&lt;BR /&gt;HDFS certainly functions at its best for large sized files, and your usage seems in accordance with that.</description>
      <pubDate>Fri, 07 Sep 2018 02:57:25 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-Block-size-1Gb-2GB/m-p/79504#M83218</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2018-09-07T02:57:25Z</dc:date>
    </item>
  </channel>
</rss>

