Support Questions

Find answers, ask questions, and share your expertise

Encrypting non-empty HDFS directory

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.

***************

1 REPLY 1

Master Collaborator

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.

Take a Tour of the Community
Don't have an account?
Your experience may be limited. Sign in to explore more.