<?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: How hdfs generates datanode path? in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228595#M190455</link>
    <description>&lt;P&gt;Thanks @hdpadmin. You were right I have configured "/data/hadoop-data/dn" in hadoop-site.xml. But why does hdfs create multiple subfolders within the current folder like "BP-1308070615-172.22.131.23-1533215887051/current/finalized/subdir0/subdir0"? What does the sub directory name mean?&lt;/P&gt;</description>
    <pubDate>Tue, 21 Aug 2018 16:28:56 GMT</pubDate>
    <dc:creator>rajasuba_s</dc:creator>
    <dc:date>2018-08-21T16:28:56Z</dc:date>
    <item>
      <title>How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228593#M190453</link>
      <description>&lt;P&gt;Reference : &lt;A href="https://stackoverflow.com/questions/51930336/how-datanode-path-is-created-in-hadoop" target="_blank"&gt;https://stackoverflow.com/questions/51930336/how-datanode-path-is-created-in-hadoop&lt;/A&gt;&lt;/P&gt;&lt;P&gt;How do hdfs generates datanode path? Say for example I'm asking hdfs to write a file in hdfs location hdfs://192.168.143.150:9000/filestore/TAO.mp4 it is getting written in the path "/data/hadoop-data/dn/current/BP-1308070615-172.22.131.23-1533215887051/current/finalized/subdir0/subdir0/blk_1073741869".&lt;/P&gt;&lt;P&gt;How this path gets generated?&lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 19:59:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228593#M190453</guid>
      <dc:creator>rajasuba_s</dc:creator>
      <dc:date>2018-08-20T19:59:50Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228594#M190454</link>
      <description>&lt;P&gt;@rabbit, &lt;/P&gt;&lt;P&gt;the path is already defined on Ambari (hdfs -&amp;gt; configs -&amp;gt; DataNode Directories)  this is the path you defined for HDFS to write the block information on the actual disk location on each data node. &lt;/P&gt;&lt;P&gt;in your case: This path must have defined on ambari as:   /data/hadoop-data/dn/    - under this, HDFS creates remaining folders starting from "current" &lt;/P&gt;&lt;P&gt;Please check your ambari -&amp;gt; hdfs properties and confirm.  &lt;/P&gt;&lt;P&gt;I hope this help you. &lt;/P&gt;</description>
      <pubDate>Mon, 20 Aug 2018 21:57:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228594#M190454</guid>
      <dc:creator>ssanupindi</dc:creator>
      <dc:date>2018-08-20T21:57:37Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228595#M190455</link>
      <description>&lt;P&gt;Thanks @hdpadmin. You were right I have configured "/data/hadoop-data/dn" in hadoop-site.xml. But why does hdfs create multiple subfolders within the current folder like "BP-1308070615-172.22.131.23-1533215887051/current/finalized/subdir0/subdir0"? What does the sub directory name mean?&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 16:28:56 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228595#M190455</guid>
      <dc:creator>rajasuba_s</dc:creator>
      <dc:date>2018-08-21T16:28:56Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228596#M190456</link>
      <description>&lt;P&gt;Hi &lt;A rel="user" href="https://community.cloudera.com/users/92194/rajasubas.html" nodeid="92194"&gt;@rabbit s&lt;/A&gt;&lt;/P&gt;&lt;P&gt;The BP stands for "block pool", a collection of blocks belonging to a single HDFS namespace.&lt;/P&gt;&lt;P&gt;The next part 1308070615, is a randomly generated integer.&lt;BR /&gt;The IP address is the address of the NameNode that originally created the block pool&lt;BR /&gt;The last part is the creation time of the namespace.&lt;BR /&gt;&lt;BR /&gt;You can read more about this here;&lt;/P&gt;&lt;P&gt;&lt;A href="https://hortonworks.com/blog/hdfs-metadata-directories-explained/" target="_blank"&gt;https://hortonworks.com/blog/hdfs-metadata-directories-explained/&lt;/A&gt;&lt;BR /&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 16:41:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228596#M190456</guid>
      <dc:creator>JonathanSneep</dc:creator>
      <dc:date>2018-08-21T16:41:21Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228597#M190457</link>
      <description>&lt;P&gt;This is exactly what I was looking for ! Thanks a lot &lt;A rel="user" href="https://community.cloudera.com/users/84313/jsneep.html" nodeid="84313"&gt;@Jonathan Sneep&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:22:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228597#M190457</guid>
      <dc:creator>rajasuba_s</dc:creator>
      <dc:date>2018-08-21T17:22:54Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228598#M190458</link>
      <description>&lt;P&gt;Combining &lt;A rel="user" href="https://community.cloudera.com/users/15104/ssanupindi.html" nodeid="15104"&gt;@hdpadmin&lt;/A&gt; 's answer and &lt;A rel="user" href="https://community.cloudera.com/users/84313/jsneep.html" nodeid="84313"&gt;@Jonathan Sneep&lt;/A&gt;'s answer gives me the best answer to my question &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt; Thank you both &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:24:31 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228598#M190458</guid>
      <dc:creator>rajasuba_s</dc:creator>
      <dc:date>2018-08-21T17:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: How hdfs generates datanode path?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228599#M190459</link>
      <description>&lt;P&gt;Why does this again creating "current/finalized/subdir0/subdir0" ? &lt;/P&gt;</description>
      <pubDate>Tue, 21 Aug 2018 17:26:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/How-hdfs-generates-datanode-path/m-p/228599#M190459</guid>
      <dc:creator>rajasuba_s</dc:creator>
      <dc:date>2018-08-21T17:26:21Z</dc:date>
    </item>
  </channel>
</rss>

