<?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: dfs storage(dfs.data.dir) space issue in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-storage-dfs-data-dir-space-issue/m-p/62152#M71328</link>
    <description>&lt;P&gt;I copied the older subdir* from dfs/dn/current/BP&amp;lt;...&amp;gt;/current/finalized to another storage mount/drive. This has not affected my data on hdfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if someone thinks there is a better way than this workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;</description>
    <pubDate>Thu, 23 Nov 2017 18:50:23 GMT</pubDate>
    <dc:creator>ShilpaSinha</dc:creator>
    <dc:date>2017-11-23T18:50:23Z</dc:date>
    <item>
      <title>dfs storage(dfs.data.dir) space issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-storage-dfs-data-dir-space-issue/m-p/61834#M71327</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;My Cluster has 3 nodes which occupies almost 870 GB.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;[hdfs@XXXX bin]$ hadoop fs -du -s -h /user/hdfs&lt;BR /&gt;435.3 G 870.7 G /user/hdfs&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;However the space held by&amp;nbsp;&lt;SPAN&gt;dfs.data.dir directory on single node is more than total space occupied by the cluster.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[hdfs@XXXX bigdata]$ du -sh dfs
464G dfs

[hdfs@YYYY bin]$ du -sh /bigdata/dfs
746G /bigdata/dfs

[hdfs@ZZZZ ~]$ du -sh /bigdata/dfs
257G /bigdata/dfs&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Isn't hdfs files are stored on&amp;nbsp;dfs.data.dir directory so how the space occupied is more than that of cluster?&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Please help me reduce the space of dfs directory as it is in critical state.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;PRE&gt;[hdfs@XXXX finalized]$ ls -lart
total 2008
drwxr-xr-x 244 hdfs hdfs 12288 Mar  7  2017 subdir0
drwxr-xr-x 258 hdfs hdfs 12288 Mar  7  2017 subdir1
drwxr-xr-x 258 hdfs hdfs 12288 Mar 10  2017 subdir2
drwxr-xr-x 258 hdfs hdfs 12288 Mar 12  2017 subdir3
drwxr-xr-x 258 hdfs hdfs 12288 Mar 14  2017 subdir4
drwxr-xr-x 258 hdfs hdfs 12288 Mar 15  2017 subdir5
drwxr-xr-x 258 hdfs hdfs 12288 Mar 15  2017 subdir6
drwxr-xr-x 258 hdfs hdfs 12288 Mar 16  2017 subdir7
drwxr-xr-x 258 hdfs hdfs 12288 Mar 17  2017 subdir8
drwxr-xr-x 258 hdfs hdfs 12288 Mar 17  2017 subdir9
drwxr-xr-x 258 hdfs hdfs 12288 Mar 17  2017 subdir10
.
.
.&lt;BR /&gt;drwxr-xr-x 258 hdfs hadoop 12288 Nov 14 03:16 subdir119&lt;BR /&gt;drwxr-xr-x 258 hdfs hadoop 12288 Nov 14 05:04 subdir122&lt;BR /&gt;drwxr-xr-x 5 hdfs hadoop 4096 Nov 14 14:25 subdir181&lt;BR /&gt;

[hdfs@XXXX finalized]$ pwd
/bigdata/dfs/dn/current/BP-939287337-10.0.0.4-1484085163925/current/finalized
[hdfs@XXXX finalized]$

These subdir have more subdirs under it and finally blocks. Can I delete the older ones?&lt;/PRE&gt;&lt;P&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Shilpa&lt;/SPAN&gt;&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 12:31:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-storage-dfs-data-dir-space-issue/m-p/61834#M71327</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2022-09-16T12:31:21Z</dc:date>
    </item>
    <item>
      <title>Re: dfs storage(dfs.data.dir) space issue</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-storage-dfs-data-dir-space-issue/m-p/62152#M71328</link>
      <description>&lt;P&gt;I copied the older subdir* from dfs/dn/current/BP&amp;lt;...&amp;gt;/current/finalized to another storage mount/drive. This has not affected my data on hdfs.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Please let me know if someone thinks there is a better way than this workaround.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Shilpa&lt;/P&gt;</description>
      <pubDate>Thu, 23 Nov 2017 18:50:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/dfs-storage-dfs-data-dir-space-issue/m-p/62152#M71328</guid>
      <dc:creator>ShilpaSinha</dc:creator>
      <dc:date>2017-11-23T18:50:23Z</dc:date>
    </item>
  </channel>
</rss>

