Created on 01-24-2016 07:18 PM - edited 09-16-2022 02:59 AM
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?
Created 01-25-2016 01:43 AM
Created 01-27-2016 08:27 AM
Hello naveen1,
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.
In a scenario where full encrypted zone is deleted, MAY use trash bin if trash feature is enable (Please test before you implement. I haven't tested it yet.)
Hope that helps.
Created 01-28-2016 12:34 AM
Created 01-25-2016 01:43 AM
Created 01-25-2016 06:01 AM
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.
Created 01-27-2016 08:27 AM
Hello naveen1,
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.
In a scenario where full encrypted zone is deleted, MAY use trash bin if trash feature is enable (Please test before you implement. I haven't tested it yet.)
Hope that helps.
Created 01-25-2016 08:37 AM
I had the same question too.
When we try to delete something from encryption zone, it says the directory cannot be moved to /user/xyz/.trash.
So we have to forcefully use -skipTrash option.
So, is there a way to delete a file from encyption zone without using -skipTrash option?
Created 01-27-2016 08:29 AM
Hello SiddeshSamarth,
Currently, there is no option to send encrypted files to global bin for obvious reasons.
Created 01-27-2016 08:44 AM
Created 01-28-2016 12:11 AM
Hello SiddeshSamarth,
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.
Created 01-28-2016 12:34 AM
Created 01-28-2016 05:39 PM
Thank you all for your time, logical workaround sounds good to me.