title: In webhdfs, what is the difference between length and spaceConsumed?
body: <p>Using <a href="https://hadoop.apache.org/docs/r1.0.4/webhdfs.html#ContentSummary" rel="nofollow noreferrer">webhdfs we can get the content summary of a directory/file.</a></p>
  <p>However, the following properties are unclear for me:</p>
  <pre><code>&quot;length&quot;:
          {
            &quot;description&quot;: &quot;The number of bytes used by the content.&quot;,
            &quot;type&quot;       : &quot;integer&quot;,
            &quot;required&quot;   : true
          }
  
  
  &quot;spaceConsumed&quot;:
          {
            &quot;description&quot;: &quot;The disk space consumed by the content.&quot;,
            &quot;type&quot;       : &quot;integer&quot;,
            &quot;required&quot;   : true
          }
  </code></pre>
  <p>What exactly is the difference between those ? Is <code>spaceConsumed</code> the size taken on disk duplication included ? The internal <a href="https://hadoop.apache.org/docs/r1.0.4/api/org/apache/hadoop/fs/ContentSummary.html#getSpaceConsumed()" rel="nofollow noreferrer">method documentation</a> does not provide additional detail.</p>