<?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 to configure storage policy in Ambari? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96140#M9546</link>
    <description>&lt;P&gt;Please see &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-7770"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;dfs.datanode.data.dir&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;[DISK]file:///hddata/dn/disk0,  [SSD]file:///hddata/dn/ssd0,[ARCHIVE]file:///hddata/dn/archive0&amp;lt;/value&amp;gt; 

  &amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/342/sluangsay.html"&gt;Sourygna Luangsay&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response edited based on the comment:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ambari 2.1.1 + supports this as per &lt;A href="https://issues.apache.org/jira/browse/AMBARI-12601"&gt;AMBARI-12601&lt;/A&gt;&lt;/P&gt;</description>
    <pubDate>Wed, 28 Oct 2015 18:08:21 GMT</pubDate>
    <dc:creator>nsabharwal</dc:creator>
    <dc:date>2015-10-28T18:08:21Z</dc:date>
    <item>
      <title>How to configure storage policy in Ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96139#M9545</link>
      <description>&lt;P&gt;Setting the following value in the Ambari box corresponding to the property dfs.datanode.data.dir does not seem to work:&lt;/P&gt;&lt;P&gt;/hadoop/hdfs/data,[SSD]/mnt/ssdDisk/hdfs/data&lt;/P&gt;&lt;P&gt;I get a warning "Must be a slash or drive at the start" and I cannot save the new configuration.&lt;/P&gt;&lt;P&gt;Is there a way to define those disk storages in Ambari (in the past I tried to do it in the hdfs-site.xml file and it worked fine)?&lt;/P&gt;&lt;P&gt;My Ambari version is 2.1.0 and I use HDP 2.3.0 (Sandbox).&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 17:59:07 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96139#M9545</guid>
      <dc:creator>sluangsay</dc:creator>
      <dc:date>2015-10-28T17:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure storage policy in Ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96140#M9546</link>
      <description>&lt;P&gt;Please see &lt;A target="_blank" href="https://issues.apache.org/jira/browse/HDFS-7770"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;PRE&gt;&amp;lt;property&amp;gt;
    &amp;lt;name&amp;gt;dfs.datanode.data.dir&amp;lt;/name&amp;gt;
    &amp;lt;value&amp;gt;[DISK]file:///hddata/dn/disk0,  [SSD]file:///hddata/dn/ssd0,[ARCHIVE]file:///hddata/dn/archive0&amp;lt;/value&amp;gt; 

  &amp;lt;/property&amp;gt;&lt;/PRE&gt;&lt;P&gt;@&lt;A href="http://community.hortonworks.com/users/342/sluangsay.html"&gt;Sourygna Luangsay&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Response edited based on the comment:&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;Ambari 2.1.1 + supports this as per &lt;A href="https://issues.apache.org/jira/browse/AMBARI-12601"&gt;AMBARI-12601&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:08:21 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96140#M9546</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-28T18:08:21Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure storage policy in Ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96141#M9547</link>
      <description>&lt;P&gt;It does not work in Ambari (same error as what I got with the configuration I described before).&lt;/P&gt;&lt;P&gt;My problem is the integration with Ambari, not the configuration in hdfs-site.xml (as mentioned before, when editing directly hdfs-site.xml it works fine).&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 18:48:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96141#M9547</guid>
      <dc:creator>sluangsay</dc:creator>
      <dc:date>2015-10-28T18:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure storage policy in Ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96142#M9548</link>
      <description>&lt;P&gt;Please see &lt;A target="_blank" href="https://issues.apache.org/jira/browse/AMBARI-12601"&gt;this&lt;/A&gt;&lt;/P&gt;&lt;P&gt;It's fixed in Ambari 2.1.1&lt;/P&gt;</description>
      <pubDate>Wed, 28 Oct 2015 19:10:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96142#M9548</guid>
      <dc:creator>nsabharwal</dc:creator>
      <dc:date>2015-10-28T19:10:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to configure storage policy in Ambari?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96143#M9549</link>
      <description>&lt;P&gt;I got it working on Ambari 2.2.1&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;1.Create mount points:&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;#mkdir /hadoop/hdfs/data1 /hadoop/hdfs/data2
/hadoop/hdfs/data3&lt;/P&gt;&lt;P&gt;#chown hdfs:hadoop /hadoop/hdfs/data1 /hadoop/hdfs/data2
/hadoop/hdfs/data3&lt;/P&gt;&lt;P&gt;&lt;EM&gt;(**We are using
the configuration for test purpose only, so no disks are mounted.)&lt;/EM&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;2.Login to Ambari &amp;gt; HDFS&amp;gt;setting&lt;/LI&gt;&lt;LI&gt;3.Add datanode directories as shown
below:&lt;/LI&gt;&lt;LI&gt;Datanode&amp;gt;datanode
directories:&lt;/LI&gt;&lt;LI&gt;[DISK]/hadoop/hdfs/data,[SSD]/hadoop/hdfs/data1,[RAMDISK]/hadoop/hdfs/data2,[ARCHIVE]/hadoop/hdfs/data3&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5051-sp.png" style="width: 1010px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/24019i391B768BDF70D244/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5051-sp.png" alt="5051-sp.png" /&gt;&lt;/span&gt;&lt;/P&gt;&lt;/LI&gt;&lt;LI&gt;
&lt;P&gt;Restart hdfs hdfs service.&lt;/P&gt;&lt;P&gt;Restart all other afftected services.&lt;/P&gt;&lt;P&gt;Create a directory
/cold&lt;/P&gt;&lt;P&gt;# su hdfs&lt;/P&gt;&lt;P&gt;[hdfs@hdp-qa2-n1 ~]$
hadoop fs -mkdir /cold&lt;/P&gt;&lt;P&gt;Set COLD storage policy
on /cold &lt;/P&gt;&lt;P&gt;[hdfs@hdp-qa2-n1 ~]$
hdfs storagepolicies -setStoragePolicy -path /cold -policy COLD&lt;/P&gt;&lt;P&gt;Set storage policy
COLD on /cold&lt;/P&gt;&lt;P&gt;5. Run get storage
policy:&lt;/P&gt;&lt;P&gt;[hdfs@hdp-qa2-n1 ~]$
hdfs storagepolicies -getStoragePolicy -path /cold&lt;/P&gt;&lt;P&gt;The storage policy of
/cold:&lt;/P&gt;&lt;P&gt;BlockStoragePolicy{COLD:2,
storageTypes=[ARCHIVE], creationFallbacks=[], replicationFallbacks=[]}&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Mon, 19 Aug 2019 12:54:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-configure-storage-policy-in-Ambari/m-p/96143#M9549</guid>
      <dc:creator>Kkalita</dc:creator>
      <dc:date>2019-08-19T12:54:37Z</dc:date>
    </item>
  </channel>
</rss>

