<?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: HDFS delete directory operation gives error = &amp;quot;cant be moved into an encryption zone&amp;quot; in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108513#M54628</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/102/nmaheshwari.html" nodeid="102"&gt;@Namit Maheshwari&lt;/A&gt; Thanks for a detailed explanation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
    <pubDate>Thu, 16 Feb 2017 07:52:53 GMT</pubDate>
    <dc:creator>kbadani</dc:creator>
    <dc:date>2017-02-16T07:52:53Z</dc:date>
    <item>
      <title>HDFS delete directory operation gives error = "cant be moved into an encryption zone"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108511#M54626</link>
      <description>&lt;P&gt;Following are the encryption zones in hdfs &lt;/P&gt;&lt;P&gt;sudo su --c "hdfs crypto -listZones" hdfs &lt;/P&gt;&lt;P&gt;/user/test_user key1&lt;/P&gt;&lt;P&gt;Create a directory in non encrypted zone as test_user&lt;/P&gt;&lt;P&gt;hdfs dfs -mkdir /tmp/dir3/example &lt;/P&gt;&lt;P&gt;Try to delete the directory created again as test_user&lt;/P&gt;&lt;P&gt;hdfs dfs -rm -r /tmp/dir3/example&lt;/P&gt;&lt;P&gt;Failed to move to trash:  /tmp/dir3/example can't be moved into an encryption zone&lt;/P&gt;&lt;P&gt;Any help would be appreciated.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 07:33:05 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108511#M54626</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2017-02-16T07:33:05Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS delete directory operation gives error = "cant be moved into an encryption zone"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108512#M54627</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/14767/kbadani.html" nodeid="14767"&gt;@Kshitij Badani&lt;/A&gt; - If the user's home directory is encrypted, the user will not be able to delete the file if its not inside its home folder, unless it uses the "-skipTrash" option. &lt;/P&gt;&lt;P&gt;The user should be able to the delete file with "-skipTrash" option. &lt;/P&gt;&lt;P&gt;The problem is that the trash directory for non-encrypted data resides in the user's home directory. Now if user's home is encrypted, un-encrypted data cannot be renamed to this directory, and therefore delete will fail unless used with "-skipTrash". &lt;/P&gt;&lt;P&gt;The trash directory which is in user's home directory, is to ensure quota is correctly calculated and assigned for deleted data. And moving un-encrypted data to EZ is not allowed for security reasons.
If user is encrypting it's home directory, they have to use "-skipTrash" to delete un-encrypted data.&lt;/P&gt;&lt;P&gt; 
Another way to look at it is following: A user who has its home in an EZ should never be creating any important data that is un-encrypted.
Please note that deleting encrypted data doesn't have this issue because for encrypted data the trash is within the EZ itself. &lt;/P&gt;&lt;P&gt;Let me know if you have any more doubts. Thanks!&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 07:44:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108512#M54627</guid>
      <dc:creator>namaheshwari</dc:creator>
      <dc:date>2017-02-16T07:44:44Z</dc:date>
    </item>
    <item>
      <title>Re: HDFS delete directory operation gives error = "cant be moved into an encryption zone"</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108513#M54628</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/102/nmaheshwari.html" nodeid="102"&gt;@Namit Maheshwari&lt;/A&gt; Thanks for a detailed explanation &lt;span class="lia-unicode-emoji" title=":slightly_smiling_face:"&gt;🙂&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Thu, 16 Feb 2017 07:52:53 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/HDFS-delete-directory-operation-gives-error-quot-cant-be/m-p/108513#M54628</guid>
      <dc:creator>kbadani</dc:creator>
      <dc:date>2017-02-16T07:52:53Z</dc:date>
    </item>
  </channel>
</rss>

