Details
-
Sub-task
-
Status: Resolved
-
Major
-
Resolution: Duplicate
-
None
-
None
-
None
Description
Steps :
1. Create an encryption zone , Trash directory would be created inside EZ directory.
/opt/cloudera/parcels/CDH/bin/hdfs crypto -createZone -keyName testkeysnapshot1605613314 -path /user/hrt_6/test_dir1/snap_encrypt_dir1605613504
2. Try to make the EZ directory snapshottable.
/opt/cloudera/parcels/CDH/bin/hdfs dfsadmin -allowSnapshot /user/hrt_6/test_dir1/snap_encrypt_dir1605613504
It fails with error :
/opt/cloudera/parcels/CDH/bin/hdfs dfsadmin -allowSnapshot /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 2020-11-17 11:45:16,598|INFO|MainThread|machine.py:180 - run()||GUID=b35fc918-ed08-4c5d-92c1-c5aab449fb10|allowSnapshot: Can't provision trash for snapshottable directory /user/hrt_6/test_dir1/snap_encrypt_dir1605613504 because trash path /user/hrt_6/test_dir1/snap_encrypt_dir1605613504/.Trash already exists. 2020-11-17 11:45:16,956|INFO|MainThread|machine.py:209 - run()||GUID=b35fc918-ed08-4c5d-92c1-c5aab449fb10|Exit Code: 255
Attachments
Issue Links
- is fixed by
-
HDFS-15689 allow/disallowSnapshot on EZ roots shouldn't fail due to trash provisioning/emptiness check
- Resolved