You are viewing a plain text version of this content. The canonical link for it is here.
Posted to hdfs-dev@hadoop.apache.org by "Shashikant Banerjee (Jira)" <ji...@apache.org> on 2020/11/17 15:37:00 UTC

[jira] [Created] (HDFS-15687) allowSnapshot fails when directory already has a Trash sub directory

Shashikant Banerjee created HDFS-15687:
------------------------------------------

             Summary: allowSnapshot fails when directory already has a Trash sub directory
                 Key: HDFS-15687
                 URL: https://issues.apache.org/jira/browse/HDFS-15687
             Project: Hadoop HDFS
          Issue Type: Sub-task
            Reporter: Nilotpal Nandi
            Assignee: Shashikant Banerjee


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 :
{noformat}
/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{noformat}



--
This message was sent by Atlassian Jira
(v8.3.4#803005)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-dev-unsubscribe@hadoop.apache.org
For additional commands, e-mail: hdfs-dev-help@hadoop.apache.org