<?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 Prevent HDFS from creating data directories in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221153#M84428</link>
    <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I am using HDP 3.0 and I have configured HDFS DataNode Directories as follow: /grid0/hadoop/hdfs/data,/grid1/hadoop/hdfs/data,/grid/hadoop/hdfs/data/&lt;/P&gt;&lt;P&gt;One of my hosts (lets call him hostA) has only one mount point (/grid) and the other host (hostB)  has 2 mount points (/grid0 &amp;amp; /grid1)&lt;/P&gt;&lt;P&gt;HDFS automatically creates the directories grid0 and grid1  in "hostA" and grid in "hostB".&lt;/P&gt;&lt;P&gt;Is there any way to prevent HDFS from doing that?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
    <pubDate>Thu, 18 Oct 2018 16:08:29 GMT</pubDate>
    <dc:creator>cstefan</dc:creator>
    <dc:date>2018-10-18T16:08:29Z</dc:date>
    <item>
      <title>Prevent HDFS from creating data directories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221153#M84428</link>
      <description>&lt;P&gt;Hello community,&lt;/P&gt;&lt;P&gt;I am using HDP 3.0 and I have configured HDFS DataNode Directories as follow: /grid0/hadoop/hdfs/data,/grid1/hadoop/hdfs/data,/grid/hadoop/hdfs/data/&lt;/P&gt;&lt;P&gt;One of my hosts (lets call him hostA) has only one mount point (/grid) and the other host (hostB)  has 2 mount points (/grid0 &amp;amp; /grid1)&lt;/P&gt;&lt;P&gt;HDFS automatically creates the directories grid0 and grid1  in "hostA" and grid in "hostB".&lt;/P&gt;&lt;P&gt;Is there any way to prevent HDFS from doing that?&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 16:08:29 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221153#M84428</guid>
      <dc:creator>cstefan</dc:creator>
      <dc:date>2018-10-18T16:08:29Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent HDFS from creating data directories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221154#M84429</link>
      <description>&lt;P&gt; &lt;A rel="user" href="https://community.cloudera.com/users/97460/cstefan.html" nodeid="97460"&gt;@Christos Stefanopoulos&lt;/A&gt;,&lt;/P&gt;&lt;P&gt;That is the expected behaviour. If you want to achieve this, then you need to create separate configs for each host. &lt;/P&gt;&lt;P&gt;For ex: hostA will have only /grid in datanode dirs and hostB will have /grid0 and /grid1 in their datanode dirs.&lt;/P&gt;&lt;P&gt;You can do that using Ambari config groups&lt;/P&gt;&lt;P&gt;&lt;A href="https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/using_host_config_groups.html" target="_blank"&gt;https://docs.hortonworks.com/HDPDocuments/Ambari-2.6.2.2/bk_ambari-operations/content/using_host_config_groups.html&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 16:25:23 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221154#M84429</guid>
      <dc:creator>asirna</dc:creator>
      <dc:date>2018-10-18T16:25:23Z</dc:date>
    </item>
    <item>
      <title>Re: Prevent HDFS from creating data directories</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221155#M84430</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14200/asirna.html" nodeid="14200"&gt;@Aditya Sirna&lt;/A&gt; &lt;/P&gt;&lt;P&gt;Thank you so much for your help, this solved my problem. &lt;/P&gt;</description>
      <pubDate>Thu, 18 Oct 2018 17:29:54 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Prevent-HDFS-from-creating-data-directories/m-p/221155#M84430</guid>
      <dc:creator>cstefan</dc:creator>
      <dc:date>2018-10-18T17:29:54Z</dc:date>
    </item>
  </channel>
</rss>

