Created 10-18-2017 09:18 AM
I would like to know if there is a way to encrypt the non-empty HDFS directory using RangerKMS??
I am getting below exception while trying to create encryptZone for non-empty directory.
**************
hdfs crypto -createZone -keyName demokey -path /user/demo RemoteException: Attempt to create an encryption zone for a non-empty directory.
***************
Created 10-23-2017 11:09 PM
By design encryption zone cannot be created on non-empty directories. You will have to empty the directory, create the encryption zone and then recopy the files back.