<?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: can't start with home(s) in ambari in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203138#M71907</link>
    <description>&lt;P&gt;Thanks Jay.&lt;/P&gt;&lt;P&gt;Can I comment/remove this code in app.js of /usr/lib/ambari-server/web/javascripts location and restart the ambari server if I want to use /home directory for storage..??&lt;/P&gt;</description>
    <pubDate>Tue, 28 Nov 2017 19:16:39 GMT</pubDate>
    <dc:creator>manjunath_hatti</dc:creator>
    <dc:date>2017-11-28T19:16:39Z</dc:date>
    <item>
      <title>can't start with home(s) in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203136#M71905</link>
      <description>&lt;P&gt;I am using &lt;STRONG&gt;HDP 2.6.1.0-129&lt;/STRONG&gt;, I want to change the namenode and data directories to /home beacuse i have much disk memory in  /home but Ambari is not allowing to /home its showing that "&lt;STRONG&gt;can't start with home(s)" &lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  Similar Issue in Jira :&lt;A href="https://issues.apache.org/jira/browse/AMBARI-9254" rel="nofollow noopener noreferrer" target="_blank"&gt; https://issues.apache.org/jira/browse/AMBARI-9254&lt;/A&gt;&lt;/P&gt;&lt;P&gt;I have attached the screenshots&lt;/P&gt;&lt;P&gt;Could you please someone help in fixing this.&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42782-error.png" style="width: 869px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17304i9EC12DA665D84B42/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42782-error.png" alt="42782-error.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="42781-dfsize.png" style="width: 452px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/17305i20A866AF82B74C75/image-size/medium?v=v2&amp;amp;px=400" role="button" title="42781-dfsize.png" alt="42781-dfsize.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 18 Aug 2019 05:14:57 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203136#M71905</guid>
      <dc:creator>manjunath_hatti</dc:creator>
      <dc:date>2019-08-18T05:14:57Z</dc:date>
    </item>
    <item>
      <title>Re: can't start with home(s) in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203137#M71906</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44347/manjunathhatti06.html" nodeid="44347"&gt;@Manjunath H&lt;/A&gt;&lt;/P&gt;&lt;P&gt;This is as per ambari design that you can not use the "/home" directory for NameNode data.  This functionality is there in Ambari from Ambari 1.5.0 version till date.    The Following is the JIRA where this check was added long back:  &lt;A href="https://issues.apache.org/jira/browse/AMBARI-4162" target="_blank"&gt;https://issues.apache.org/jira/browse/AMBARI-4162&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;If you want to know the validation rules then please refer to the following code:&lt;/P&gt;&lt;P&gt;0. &lt;A href="https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/validator.js#L94-L107" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/validator.js#L94-L107&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;  /**
   * validate directory doesn't start "home" or "homes"
   * @param value
   * @returns {boolean}
   */
  isAllowedDir: function(value) {
    var dirs = value.replace(/,/g,' ').trim().split(new RegExp("\\s+", "g"));
    for(var i = 0; i &amp;lt; dirs.length; i++){
      if(dirs[i].startsWith('/home') || dirs[i].startsWith('/homes')) {
        return false;
      }
    }
    return true;
  },&lt;/PRE&gt;&lt;P&gt;&lt;STRONG&gt;Other reference:&lt;/STRONG&gt;&lt;BR /&gt;1. &lt;A href="https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/config.js#L633-L635" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/utils/config.js#L633-L635&lt;/A&gt;&lt;BR /&gt;2. &lt;A href="https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/messages.js#L3254" target="_blank"&gt;https://github.com/apache/ambari/blob/release-2.6.0/ambari-web/app/messages.js#L3254&lt;/A&gt;&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 17:46:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203137#M71906</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-28T17:46:48Z</dc:date>
    </item>
    <item>
      <title>Re: can't start with home(s) in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203138#M71907</link>
      <description>&lt;P&gt;Thanks Jay.&lt;/P&gt;&lt;P&gt;Can I comment/remove this code in app.js of /usr/lib/ambari-server/web/javascripts location and restart the ambari server if I want to use /home directory for storage..??&lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 19:16:39 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203138#M71907</guid>
      <dc:creator>manjunath_hatti</dc:creator>
      <dc:date>2017-11-28T19:16:39Z</dc:date>
    </item>
    <item>
      <title>Re: can't start with home(s) in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203139#M71908</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44347/manjunathhatti06.html" nodeid="44347"&gt;@Manjunath H&lt;BR /&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Yes, commenting that Java script check should pass the the validation and ambari should allow the "/home" directory usage for NameNode data store.&lt;/P&gt;&lt;P&gt;However that will not be a best practice. But of course you can try that at your own risk.&lt;BR /&gt;&lt;A rel="user" href="https://community.cloudera.com/users/44347/manjunathhatti06.html" nodeid="44347"&gt;&lt;/A&gt; &lt;/P&gt;</description>
      <pubDate>Tue, 28 Nov 2017 19:18:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203139#M71908</guid>
      <dc:creator>jsensharma</dc:creator>
      <dc:date>2017-11-28T19:18:52Z</dc:date>
    </item>
    <item>
      <title>Re: can't start with home(s) in ambari</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203140#M71909</link>
      <description>&lt;P&gt;I get the same problem , when I  install the cluster , at very firs time .  please help me &lt;/P&gt;</description>
      <pubDate>Mon, 26 Feb 2018 18:32:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/can-t-start-with-home-s-in-ambari/m-p/203140#M71909</guid>
      <dc:creator>mdtarikuzzaman</dc:creator>
      <dc:date>2018-02-26T18:32:26Z</dc:date>
    </item>
  </channel>
</rss>

