<?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: Is it possible to use trash in HDFS encryption zone in Support Questions</title>
    <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36681#M54459</link>
    <description>&lt;P&gt;Hello SiddeshSamarth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, there is no option to send encrypted files to global bin for obvious reasons.&lt;/P&gt;</description>
    <pubDate>Wed, 27 Jan 2016 16:29:30 GMT</pubDate>
    <dc:creator>Consult</dc:creator>
    <dc:date>2016-01-27T16:29:30Z</dc:date>
    <item>
      <title>Is it possible to use trash in HDFS encryption zone?</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36567#M54454</link>
      <description>&lt;P&gt;I am using -skipTrash to delete an HDFS file from encryption zone. Is there any way that I can use trash to recover a deleted file from encryption zone?&lt;/P&gt;</description>
      <pubDate>Fri, 16 Sep 2022 09:59:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36567#M54454</guid>
      <dc:creator>naveen1</dc:creator>
      <dc:date>2022-09-16T09:59:18Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36574#M54455</link>
      <description>Regardless of an encryption zone in use or not, an 'hadoop fs -rm' with&lt;BR /&gt;-skipTrash will permanently remove a file unless you have a snapshot&lt;BR /&gt;referencing it. If you want to use the trash ability, you need to use&lt;BR /&gt;'hadoop fs -rm' without -skipTrash.&lt;BR /&gt;&lt;BR /&gt;Encryption zones merely create the blocks with encrypted data and associate&lt;BR /&gt;keys with it. Other HDFS behaviour remains the same, with the exception&lt;BR /&gt;being that you cannot move a file within one EZ to another, or move it&lt;BR /&gt;outside of the EZ.</description>
      <pubDate>Mon, 25 Jan 2016 09:43:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36574#M54455</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-01-25T09:43:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36583#M54456</link>
      <description>&lt;P&gt;I didnt mean to use skipTrash, I was suggested to use that as I couldnt delete a file from encryption zone. If there is any way to use trash for encryption zone please let me know.&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 14:01:03 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36583#M54456</guid>
      <dc:creator>naveen1</dc:creator>
      <dc:date>2016-01-25T14:01:03Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36591#M54457</link>
      <description>&lt;P&gt;I had the same question too.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;When we try to delete something from encryption zone, it says the directory cannot be moved to /user/xyz/.trash.&lt;/P&gt;&lt;P&gt;So we have to forcefully use -skipTrash option.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;So, is there a way to delete a file from encyption zone without using -skipTrash option?&lt;/P&gt;</description>
      <pubDate>Mon, 25 Jan 2016 16:37:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36591#M54457</guid>
      <dc:creator>SiddeshSamarth</dc:creator>
      <dc:date>2016-01-25T16:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36680#M54458</link>
      <description>&lt;P&gt;Hello naveen1,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a file in encrypted zone a &lt;U&gt;LOGICAL&lt;/U&gt; workaround could be to introduce .trash folder in same&amp;nbsp;zone. This folder can be used as destination to move the&amp;nbsp;redundant&lt;SPAN&gt;&amp;nbsp;&lt;/SPAN&gt;&lt;SPAN&gt;file(s) before removing them permanently.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;In a scenario where full encrypted zone is deleted,&amp;nbsp;&lt;STRONG&gt;MAY&lt;/STRONG&gt;&amp;nbsp;use trash bin if&amp;nbsp;trash feature is enable (Please test before you implement. I haven't tested it yet.)&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:27:40 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36680#M54458</guid>
      <dc:creator>Consult</dc:creator>
      <dc:date>2016-01-27T16:27:40Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36681#M54459</link>
      <description>&lt;P&gt;Hello SiddeshSamarth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Currently, there is no option to send encrypted files to global bin for obvious reasons.&lt;/P&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:29:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36681#M54459</guid>
      <dc:creator>Consult</dc:creator>
      <dc:date>2016-01-27T16:29:30Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36682#M54460</link>
      <description>So, Do I have to forcibly use –skipTrash to delete anything in Encrypted zone or is there any workaround?&lt;BR /&gt;</description>
      <pubDate>Wed, 27 Jan 2016 16:44:52 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36682#M54460</guid>
      <dc:creator>SiddeshSamarth</dc:creator>
      <dc:date>2016-01-27T16:44:52Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36710#M54461</link>
      <description>&lt;P&gt;Hello SiddeshSamarth,&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;For a file in encrypted zone a LOGICAL workaround could be to introduce .trash folder in same zone. This folder can be used as destination to move the redundant file(s) before removing them permanently.&lt;/P&gt;</description>
      <pubDate>Thu, 28 Jan 2016 08:11:13 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36710#M54461</guid>
      <dc:creator>Consult</dc:creator>
      <dc:date>2016-01-28T08:11:13Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36712#M54462</link>
      <description>Consult has already posted some alternative solutions, but its worth understanding why it fails.&lt;BR /&gt;&lt;BR /&gt;The effective issue is this:&lt;BR /&gt;&lt;BR /&gt;When you use 'fs -rm' with trash enabled, we move the file to the authenticated user's /user/{user.name}/.Trash sub-directory. For ex., if the path of deletion is '/data/myapp/part-00000.gz', and the user you delete it as is 'hive', then the trash feature moves it to directory '/user/hive/.Trash/Current/'.&lt;BR /&gt;&lt;BR /&gt;When encrypted zones come into play, HDFS disallows you from moving a file from one Encrypted Zone to another Encrypted Zone, as well as from within an Encrypted Zone to a non-Encrypted Zone. This is for security reasons, and ties into how the encryption zone features of HDFS are managed globally within a directory (zone), vs. arbitrary files holding all of the necessary info independently.&lt;BR /&gt;&lt;BR /&gt;So if /data/ is an EZ, but /user/hive is not, or is a separate EZ, then the trash moving will fail expectedly.&lt;BR /&gt;&lt;BR /&gt;But if / is the EZ, then the moves may work, since both paths come under it.&lt;BR /&gt;&lt;BR /&gt;What Consult proposes is a manual step (i.e. use hadoop fs -mv instead of hadoop fs -rm), and keep a manually created /data/.Trash directory to move the files into, followed by scripts to periodically clean it (i.e. Bring-Your-Own-Trash). Its not a great solution but its what may work if you need some data retention.&lt;BR /&gt;&lt;BR /&gt;Another option is to consider using limited and periodic snapshots (via BDR, etc.), which give you similar (but not exactly the same) data retention capabilities.</description>
      <pubDate>Thu, 28 Jan 2016 08:34:44 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36712#M54462</guid>
      <dc:creator>Harsh J</dc:creator>
      <dc:date>2016-01-28T08:34:44Z</dc:date>
    </item>
    <item>
      <title>Re: Is it possible to use trash in HDFS encryption zone</title>
      <link>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36795#M54463</link>
      <description>&lt;P&gt;Thank you all for your time, logical workaround sounds good to me.&lt;/P&gt;</description>
      <pubDate>Fri, 29 Jan 2016 01:39:49 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Support-Questions/Is-it-possible-to-use-trash-in-HDFS-encryption-zone/m-p/36795#M54463</guid>
      <dc:creator>naveen1</dc:creator>
      <dc:date>2016-01-29T01:39:49Z</dc:date>
    </item>
  </channel>
</rss>

