<?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 how to recover missing blocks of hdfs after delete a data dir in the datanode by a mistake in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-recover-missing-blocks-of-hdfs-after-delete-a-data/m-p/39604#M24965</link>
    <description>&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The datanode has three dir to store the data such as /data/1,/data/2, /data/3. I delete the /data/1&amp;nbsp; in the datanode by mistake. Then the hdfs shows missing blocks.&amp;nbsp; I copy the data from /data/3 to /data/1 , but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for regard&lt;/P&gt;&lt;P&gt;leezy&lt;/P&gt;</description>
    <pubDate>Fri, 16 Sep 2022 10:13:31 GMT</pubDate>
    <dc:creator>lizhenmxcz</dc:creator>
    <dc:date>2022-09-16T10:13:31Z</dc:date>
    <item>
      <title>how to recover missing blocks of hdfs after delete a data dir in the datanode by a mistake</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-recover-missing-blocks-of-hdfs-after-delete-a-data/m-p/39604#M24965</link>
      <description>&lt;P&gt;hi:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; The datanode has three dir to store the data such as /data/1,/data/2, /data/3. I delete the /data/1&amp;nbsp; in the datanode by mistake. Then the hdfs shows missing blocks.&amp;nbsp; I copy the data from /data/3 to /data/1 , but it didn't work.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for regard&lt;/P&gt;&lt;P&gt;leezy&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 10:13:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-recover-missing-blocks-of-hdfs-after-delete-a-data/m-p/39604#M24965</guid>
      <dc:creator>lizhenmxcz</dc:creator>
      <dc:date>2022-09-16T10:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: how to recover missing blocks of hdfs after delete a data dir in the datanode by a mistake</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-recover-missing-blocks-of-hdfs-after-delete-a-data/m-p/39607#M24966</link>
      <description>&lt;P&gt;From the context I'm assuming you have setup a 1 node test cluster?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;HDFS replicates data between different nodes, the /data/1, /data/2, and /data/3 are just different drives. HDFS will use each of those drives to store blocks, and will replicate those blocks to other nodes in the cluster.&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;by Deleting /data/1 deleted the blocks on that drive. /data/2 or /data/3 won't have those blocks. If you have more than 1 node, HDFS will replicate a copy of the blocks that were stored on /data/1 to one of those other drives, likely spread out among all the available drives on that node. &amp;nbsp;when /data/1 was deleted in that case, HDFS will detect those blocks went missing the next time the datanode checks in and start automatically repairing the under-replicated blocks.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Missing blocks implies that the only copy of the block has gone missing, so in that case the only way to recover them would have been to&amp;nbsp;do drive recovery operations on that drive. This will be the case in single node test clusters, thus the assumption above.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 12 Apr 2016 04:33:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/how-to-recover-missing-blocks-of-hdfs-after-delete-a-data/m-p/39607#M24966</guid>
      <dc:creator>ben.hemphill</dc:creator>
      <dc:date>2016-04-12T04:33:31Z</dc:date>
    </item>
  </channel>
</rss>

