Details
Description
When creating an Encryption Zone, if the fully qualified path is specified in the path argument, it throws the following error.
~$ hdfs crypto -createZone -keyName mykey1 -path hdfs://ns1/zone1 IllegalArgumentException: hdfs://ns1/zone1 is not the root of an encryption zone. Do you mean /zone1? ~$ hdfs crypto -createZone -keyName mykey1 -path "hdfs://namenode:9000/zone2" IllegalArgumentException: hdfs://namenode:9000/zone2 is not the root of an encryption zone. Do you mean /zone2?
The EZ creation succeeds as the path is resolved in DFS#createEncryptionZone(). But while creating the Trash directory, the path is not resolved and it throws the above error.
A fully qualified path should be supported by crypto.
Attachments
Attachments
Issue Links
- duplicates
-
HDFS-12586 EZ createZone returns IllegalArgumentException when using protocol in path
- Resolved