<?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 du format change in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27354#M5856</link>
    <description>&lt;P&gt;The link to the source is here&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/cloudera/hadoop-common/blob/cdh5.4.0-release/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java#L120"&gt;https://github.com/cloudera/hadoop-common/blob/cdh5.4.0-release/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java#L120&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 13 May 2015 02:57:51 GMT</pubDate>
    <dc:creator>GautamG</dc:creator>
    <dc:date>2015-05-13T02:57:51Z</dc:date>
    <item>
      <title>hdfs du format change</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27192#M5852</link>
      <description>&lt;P&gt;I just switched from Cloudera 4 to Cloudera 5, and the output format for hdfs dfs -du has changed. It now has two columns instead of just one. I'm guessing that the first is the actual content size and the second is the block storage consumption, but I can't find any documentation about this. Can anyone clarify and/or point me the right direction?&lt;/P&gt;</description>
      <pubDate>Fri, 08 May 2015 15:27:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27192#M5852</guid>
      <dc:creator>Mythobeast</dc:creator>
      <dc:date>2015-05-08T15:27:03Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs du format change</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27235#M5853</link>
      <description>My output looks like this on both CDH4 and CDH5.&lt;BR /&gt;&lt;BR /&gt;# sudo -u hdfs hdfs dfs -du /&lt;BR /&gt;20143 /accumulo&lt;BR /&gt;3230 /hbase&lt;BR /&gt;0 /solr&lt;BR /&gt;4 /tmp&lt;BR /&gt;287725904 /user&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;​Please paste your command and output here so we can have a look.​&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Sun, 10 May 2015 23:45:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27235#M5853</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-05-10T23:45:49Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs du format change</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27278#M5854</link>
      <description>&lt;P&gt;I'm on Cloudera 5.3.3. Here's my command line and output:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;[hadoop]$ hdfs dfs -du /&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;2298676940886 6896030822658 /output&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;21297905593 63893716779 /tmp&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;6072184915396 18216555409976 /user&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 11 May 2015 17:26:28 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27278#M5854</guid>
      <dc:creator>Mythobeast</dc:creator>
      <dc:date>2015-05-11T17:26:28Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs du format change</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27353#M5855</link>
      <description>&lt;P&gt;I checked on CDH 5.2 and it was the same as CDH4. The output you see was introduced in CDH 5.3, the jira being &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HADOOP-6857"&gt;HADOOP-6857&lt;/A&gt;. The second column is supposed to calculate the raw disk usage of the file/directory.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So if a file is 42 bytes, it correctly shows &lt;FONT face="courier new,courier"&gt;(file size) * (replication factor of file)&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$ hadoop fs -du /hbase/hbase.id&lt;BR /&gt;42&amp;nbsp; 126&amp;nbsp; /hbase/hbase.id&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;&lt;FONT face="verdana,geneva"&gt;However it seems incorrect for directories as column 2 shows &lt;FONT face="courier new,courier"&gt;(theoretical block size) * (replication factor of file) * (number of files in directory)&lt;BR /&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT face="courier new,courier"&gt;$ hadoop fs -du -h /hbase/WALs&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;0&amp;nbsp;&amp;nbsp;&amp;nbsp; 0&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; /hbase/WALs/hregion-67213513&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;83&amp;nbsp;&amp;nbsp; 384 M&amp;nbsp; /hbase/WALs/server54-2.abc.cloudera.com,22101,1431434548533&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;166&amp;nbsp; 768 M&amp;nbsp; /hbase/WALs/server54-3.abc.cloudera.com,22101,1431434548804&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;83&amp;nbsp;&amp;nbsp; 384 M&amp;nbsp; /hbase/WALs/server54-4.abc.cloudera.com,22101,1431434547067&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$ hadoop fs -ls -R /hbase/WALs/server54-2.abc.cloudera.com,22101,1431434548533&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 3 hbase hbase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83 2015-05-12 18:42 /hbase/WALs/server54-2.abc.cloudera.com,22101,1431434548533/server54-2.abc.cloudera.com%2C22101%2C1431434548533.default.1431481363257&lt;/FONT&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;$ hadoop fs -ls -R /hbase/WALs/server54-3.abc.cloudera.com,22101,1431434548804&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 3 hbase hbase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83 2015-05-12 19:42 /hbase/WALs/server54-3.abc.cloudera.com,22101,1431434548804/server54-3.abc.cloudera.com%2C22101%2C1431434548804..meta.1431484974652.meta&lt;/FONT&gt;&lt;BR /&gt;&lt;FONT face="courier new,courier"&gt;-rw-r--r--&amp;nbsp;&amp;nbsp; 3 hbase hbase&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; 83 2015-05-12 19:42 /hbase/WALs/server54-3.abc.cloudera.com,22101,1431434548804/server54-3.abc.cloudera.com%2C22101%2C1431434548804.default.1431484963607&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 02:55:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27353#M5855</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-05-13T02:55:26Z</dc:date>
    </item>
    <item>
      <title>Re: hdfs du format change</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27354#M5856</link>
      <description>&lt;P&gt;The link to the source is here&lt;/P&gt;&lt;P&gt;&lt;A target="_blank" href="https://github.com/cloudera/hadoop-common/blob/cdh5.4.0-release/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java#L120"&gt;https://github.com/cloudera/hadoop-common/blob/cdh5.4.0-release/hadoop-common-project/hadoop-common/src/main/java/org/apache/hadoop/fs/shell/FsUsage.java#L120&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 13 May 2015 02:57:51 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/hdfs-du-format-change/m-p/27354#M5856</guid>
      <dc:creator>GautamG</dc:creator>
      <dc:date>2015-05-13T02:57:51Z</dc:date>
    </item>
  </channel>
</rss>

