Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Encrypting non-empty HDFS directory

Highlighted

Encrypting non-empty HDFS directory

New Contributor

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

Re: Encrypting non-empty HDFS directory

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.