<?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 Is there a command to find the number of blocks pending deletion in HDFS? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175292#M137551</link>
    <description>&lt;P&gt;I am currently deleting a large amount of small files and am needing to monitor the number of blocks pending deletion so I do not put too much of a load on the cluster. I know this number can be viewed in the NameNode UI, but I would like to run a command instead which I can then use in combination with `watch` so I can get continuous updates. Does such a command exist?&lt;/P&gt;</description>
    <pubDate>Wed, 29 Aug 2018 19:49:20 GMT</pubDate>
    <dc:creator>josh_nicholson</dc:creator>
    <dc:date>2018-08-29T19:49:20Z</dc:date>
    <item>
      <title>Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175292#M137551</link>
      <description>&lt;P&gt;I am currently deleting a large amount of small files and am needing to monitor the number of blocks pending deletion so I do not put too much of a load on the cluster. I know this number can be viewed in the NameNode UI, but I would like to run a command instead which I can then use in combination with `watch` so I can get continuous updates. Does such a command exist?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 19:49:20 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175292#M137551</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-08-29T19:49:20Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175293#M137552</link>
      <description>&lt;P&gt;Hi &lt;A href="https://community.hortonworks.com/questions/215061/is-there-a-command-to-find-the-number-of-blocks-pe.html#"&gt;@Josh Nicholson&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This works for me, "PendingDeletionBlocks" is what you're looking for in the output if you're looking for pending deletes only.&lt;/P&gt;&lt;PRE&gt;watch curl --silent &lt;A href="http://&amp;lt;your-name-node&amp;gt;:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem" target="_blank"&gt;http://&amp;lt;your-name-node&amp;gt;:50070/jmx?qry=Hadoop:service=NameNode,name=FSNamesystem&lt;/A&gt;&lt;/PRE&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:13:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175293#M137552</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-08-29T20:13:48Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175294#M137553</link>
      <description>&lt;P&gt;I didn't think of querying the JMX, this works fantastically, thanks!&lt;BR /&gt;&lt;BR /&gt;Actually &lt;A rel="user" href="https://community.cloudera.com/users/84313/jsneep.html" nodeid="84313"&gt;@Jonathan Sneep&lt;/A&gt; I am not able to curl to the JMX as I need authorization. This cluster is kerberized and using SSL. I tried searching around on how to pass credentials but couldn't find anything. Any ideas?&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 20:17:12 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175294#M137553</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-08-29T20:17:12Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175295#M137554</link>
      <description>&lt;P&gt;Hey &lt;A rel="user" href="https://community.cloudera.com/users/48501/joshnicholson.html" nodeid="48501"&gt;@Josh Nicholson&lt;/A&gt;&lt;BR /&gt;curl --negotiate -u should work, I will test this myself in a bit. &lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:06:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175295#M137554</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-08-29T21:06:07Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175296#M137555</link>
      <description>&lt;P&gt;That worked, thanks.&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:19:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175296#M137555</guid>
      <dc:creator>josh_nicholson</dc:creator>
      <dc:date>2018-08-29T21:19:24Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175297#M137556</link>
      <description>&lt;P&gt;Perfect, glad to hear!&lt;/P&gt;</description>
      <pubDate>Wed, 29 Aug 2018 21:22:58 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175297#M137556</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-08-29T21:22:58Z</dc:date>
    </item>
    <item>
      <title>Re: Is there a command to find the number of blocks pending deletion in HDFS?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175298#M137557</link>
      <description>&lt;P&gt;goto Ambari --&amp;gt; HDFS --&amp;gt; QuickLinks --&amp;gt; Master(Active)  ... a new page will open ... search "Number of Blocks Pending Deletion"... you will find the pending deletion blocks.. refresh page after 30 sec. counts will be changed... enjoy&lt;/P&gt;</description>
      <pubDate>Tue, 13 Nov 2018 15:08:27 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-there-a-command-to-find-the-number-of-blocks-pending/m-p/175298#M137557</guid>
      <dc:creator>Burhan33</dc:creator>
      <dc:date>2018-11-13T15:08:27Z</dc:date>
    </item>
  </channel>
</rss>

