Create an Encryption Zone
How to create an encryption zone when configuring HDFS encryption.
Each encryption zone must be defined using an empty directory and an existing encryption key. An encryption zone cannot be created on top of a directory that already contains data.
Recommendation: use one unique key for each encryption zone.
Use the crypto createZone
command to create a new encryption zone. The
syntax is:
-createZone -keyName <keyName> -path <path>
where:
-keyName
: specifies the name of the key to use for the encryption zone.-path
specifies the path of the encryption zone to be created. It must be an empty directory.
(Optional) To remove an encryption zone, delete the root directory of the zone. For example:
hdfs dfs -rm -R /zone_encr
.