<?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 files/directories occupying maximum space in hdfs in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140309#M35423</link>
    <description>&lt;P&gt;I need to find the files/directories that are occupying the maximum space in HDFS. so that i can ask the owners of those directories to clean up the spaces. what is the command that can provide the results for this purpose. Also i do notice the namenode heap size is increasing and is around 80 - 90%. IS there a way to find which files cause this . i.e which directory has too many small files or how to identify the small files which might cause this .&lt;/P&gt;&lt;P&gt;Or is there any other reason thaat is causing the namenode heapsize to increase.&lt;/P&gt;&lt;P&gt;My name node memory is 3 GB.&lt;/P&gt;</description>
    <pubDate>Thu, 21 Jul 2016 12:16:52 GMT</pubDate>
    <dc:creator>arunpoy</dc:creator>
    <dc:date>2016-07-21T12:16:52Z</dc:date>
    <item>
      <title>files/directories occupying maximum space in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140309#M35423</link>
      <description>&lt;P&gt;I need to find the files/directories that are occupying the maximum space in HDFS. so that i can ask the owners of those directories to clean up the spaces. what is the command that can provide the results for this purpose. Also i do notice the namenode heap size is increasing and is around 80 - 90%. IS there a way to find which files cause this . i.e which directory has too many small files or how to identify the small files which might cause this .&lt;/P&gt;&lt;P&gt;Or is there any other reason thaat is causing the namenode heapsize to increase.&lt;/P&gt;&lt;P&gt;My name node memory is 3 GB.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 12:16:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140309#M35423</guid>
      <dc:creator>arunpoy</dc:creator>
      <dc:date>2016-07-21T12:16:52Z</dc:date>
    </item>
    <item>
      <title>Re: files/directories occupying maximum space in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140310#M35424</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Try the command &lt;/P&gt;&lt;P&gt;hadoop fs -du -h /&lt;/P&gt;&lt;P&gt;This should get us the space occupied by directories in hdfs. To drill down, change / to the directory you want to check.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:04:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140310#M35424</guid>
      <dc:creator>sbhat</dc:creator>
      <dc:date>2016-07-21T13:04:26Z</dc:date>
    </item>
    <item>
      <title>Re: files/directories occupying maximum space in hdfs</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140311#M35425</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2302/arunpoy.html" nodeid="2302"&gt;@ARUN&lt;/A&gt;&lt;/P&gt;&lt;P&gt;1) Identifying directories usage in HDFS&lt;/P&gt;&lt;P&gt;  Try to run below for each directory to know the usage&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;  [root@abc01 ~]# hadoop fs -du -s -h &amp;lt;hdfs location&amp;gt;&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;50.9 M  /abc&lt;/P&gt;&lt;P style="margin-left: 40px;"&gt;[root@adc01 ~]#&lt;/P&gt;&lt;P&gt;2) namenode heap size is increasing and is around 80 - 90%.&lt;/P&gt;&lt;P&gt;   NN heap size increasing because of your cluster is occupying maximum space in HDFS for files &amp;amp; directories.&lt;/P&gt;&lt;P&gt;Here is the link for increaseing values based on file size&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_installing_manually_book/content/ref-80953924-1cbf-4655-9953-1e744290a6c3.1.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.4.2/bk_installing_manually_book/content/ref-80953924-1cbf-4655-9953-1e744290a6c3.1.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I hope this will help you.   &lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 13:10:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/files-directories-occupying-maximum-space-in-hdfs/m-p/140311#M35425</guid>
      <dc:creator>divakarreddy_a</dc:creator>
      <dc:date>2016-07-21T13:10:30Z</dc:date>
    </item>
  </channel>
</rss>

