<?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 delete/remove storage policy ? in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159927#M24605</link>
    <description>&lt;P&gt;There is no specific 'removeStoragePolicy' command. &lt;/P&gt;&lt;P&gt;So what you want to do, I guess,  is to get it back to the default value, right? The workaround is you could use '-setStoragePolicy' to set it to 'HOT'(default value), or you could use '-getStoragePolicy' to check the policy of the parent directory first and then use '-setStoragePolicy' to set it.&lt;/P&gt;</description>
    <pubDate>Thu, 07 Apr 2016 17:34:01 GMT</pubDate>
    <dc:creator>vxu</dc:creator>
    <dc:date>2016-04-07T17:34:01Z</dc:date>
    <item>
      <title>How to delete/remove storage policy ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159925#M24603</link>
      <description>&lt;P&gt;Hi team&lt;/P&gt;&lt;P&gt;From the link below, i see options to set and get storage policies on hdfs for files/dirs&lt;/P&gt;&lt;P&gt;&lt;A href="https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html#Set_Storage_Policy" target="_blank"&gt;https://hadoop.apache.org/docs/current/hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html#Set_Storage_Policy&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Also hdfs command displays -&lt;/P&gt;&lt;PRE&gt;hdfs storagepolicies --help
Can't understand command '--help'
Usage: bin/hdfs storagepolicies [COMMAND]
          [-listPolicies]
          [-setStoragePolicy -path &amp;lt;path&amp;gt; -policy &amp;lt;policy&amp;gt;]
          [-getStoragePolicy -path &amp;lt;path&amp;gt;]
          [-help &amp;lt;command-name&amp;gt;]
&lt;/PRE&gt;&lt;P&gt;Can you let me know how to delete if there is any storage policy applied ?&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:20:48 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159925#M24603</guid>
      <dc:creator>sshimpi</dc:creator>
      <dc:date>2016-04-07T17:20:48Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/remove storage policy ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159926#M24604</link>
      <description>&lt;P&gt;Unfortunately, I think can't delete (yet) due to &lt;A href="https://issues.apache.org/jira/browse/HDFS-9534" target="_blank"&gt;https://issues.apache.org/jira/browse/HDFS-9534&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:30:24 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159926#M24604</guid>
      <dc:creator>hosako</dc:creator>
      <dc:date>2016-04-07T17:30:24Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/remove storage policy ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159927#M24605</link>
      <description>&lt;P&gt;There is no specific 'removeStoragePolicy' command. &lt;/P&gt;&lt;P&gt;So what you want to do, I guess,  is to get it back to the default value, right? The workaround is you could use '-setStoragePolicy' to set it to 'HOT'(default value), or you could use '-getStoragePolicy' to check the policy of the parent directory first and then use '-setStoragePolicy' to set it.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:34:01 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159927#M24605</guid>
      <dc:creator>vxu</dc:creator>
      <dc:date>2016-04-07T17:34:01Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/remove storage policy ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159928#M24606</link>
      <description>&lt;P&gt;Hi Sagar, Currently I don't think there is remove storage policy function. The only way is to copy/move data to a new dir and then delete  and rename the new one created.&lt;/P&gt;</description>
      <pubDate>Thu, 07 Apr 2016 17:34:59 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159928#M24606</guid>
      <dc:creator>nyakkanti</dc:creator>
      <dc:date>2016-04-07T17:34:59Z</dc:date>
    </item>
    <item>
      <title>Re: How to delete/remove storage policy ?</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159929#M24607</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/2648/sshimpi.html" nodeid="2648"&gt;@Sagar Shimpi&lt;/A&gt;&lt;/P&gt;&lt;P&gt;As we moved into 2017, we can now remove storage policy for a certain path!&lt;/P&gt;&lt;PRE&gt;hdfs storagepolicies -unsetStoragePolicy -path &amp;lt;path&amp;gt;&lt;/PRE&gt;</description>
      <pubDate>Thu, 31 Aug 2017 08:26:37 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/How-to-delete-remove-storage-policy/m-p/159929#M24607</guid>
      <dc:creator>dineshc</dc:creator>
      <dc:date>2017-08-31T08:26:37Z</dc:date>
    </item>
  </channel>
</rss>

