<?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: More files and dirs than blocks in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175712#M137969</link>
    <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/289/xyao.html" nodeid="289"&gt;@Xiaoyu Yao&lt;/A&gt;. &lt;/P&gt;</description>
    <pubDate>Mon, 11 Sep 2017 14:00:51 GMT</pubDate>
    <dc:creator>Micael</dc:creator>
    <dc:date>2017-09-11T14:00:51Z</dc:date>
    <item>
      <title>More files and dirs than blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175710#M137967</link>
      <description>&lt;P&gt;Hello everyone,&lt;/P&gt;&lt;P&gt;From what I understood every files use a minimum of 1 block in HDFS.&lt;/P&gt;&lt;P&gt;So how can it be possible to have more files than blocks?&lt;/P&gt;&lt;P&gt;Below is an exemple:&lt;/P&gt;&lt;PRE&gt;$ hdfs fsck /app-logs
 Total size:    14663835874 B
 Total dirs:    2730
 Total files:   8694
 Total symlinks:                0
 Total blocks (validated):      8690 (avg. block size 1687437 B)
 Minimally replicated blocks:   8690 (100.0 %)
 Over-replicated blocks:        0 (0.0 %)
 Under-replicated blocks:       0 (0.0 %)
 Mis-replicated blocks:         0 (0.0 %)
 Default replication factor:    3
 Average block replication:     3.0
 Corrupt blocks:                0
 Missing replicas:              0 (0.0 %)
 Number of data-nodes:          4
 Number of racks:               1
FSCK ended at Mon Sep 04 19:54:45 CEST 2017 in 353 milliseconds




The filesystem under path '/app-logs' is HEALTHY


&lt;/PRE&gt;&lt;P&gt;I appreciate any help in understanding this ouput.&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;</description>
      <pubDate>Tue, 05 Sep 2017 01:08:46 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175710#M137967</guid>
      <dc:creator>Micael</dc:creator>
      <dc:date>2017-09-05T01:08:46Z</dc:date>
    </item>
    <item>
      <title>Re: More files and dirs than blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175711#M137968</link>
      <description>&lt;P&gt;bq. From what I understood every files use a minimum of 1 block in HDFS.&lt;/P&gt;&lt;P&gt;No. It is not true. You can have file of size 0, they are likely to be created on NN but no block being allocated and/or streamed to DNs yet. Check your files and you will have 4 files (8694-8690=4) of size 0.&lt;/P&gt;</description>
      <pubDate>Sat, 09 Sep 2017 02:55:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175711#M137968</guid>
      <dc:creator>xyao</dc:creator>
      <dc:date>2017-09-09T02:55:59Z</dc:date>
    </item>
    <item>
      <title>Re: More files and dirs than blocks</title>
      <link>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175712#M137969</link>
      <description>&lt;P&gt;Thank you &lt;A rel="user" href="https://community.cloudera.com/users/289/xyao.html" nodeid="289"&gt;@Xiaoyu Yao&lt;/A&gt;. &lt;/P&gt;</description>
      <pubDate>Mon, 11 Sep 2017 14:00:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/More-files-and-dirs-than-blocks/m-p/175712#M137969</guid>
      <dc:creator>Micael</dc:creator>
      <dc:date>2017-09-11T14:00:51Z</dc:date>
    </item>
  </channel>
</rss>

