Uploaded image for project: 'Hadoop HDFS'
  1. Hadoop HDFS
  2. HDFS-13483

Crypto command should give proper exception when user is trying to create an EZ with the same key with which it is already created

    XMLWordPrintableJSON

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Duplicate
    • Affects Version/s: 2.8.3
    • Fix Version/s: None
    • Component/s: hdfs, kms
    • Labels:
      None

      Description

      Scenario:

      1. Create a Dir
      2. Create EZ for the above dir with Key1
      3. Again you can try to create ZONE for same directory with the same Key1
      hadoopclient> hadoop key list
      Listing keys for KeyProvider: org.apache.hadoop.crypto.key.kms.LoadBalancingKMSClientProvider@152aa092
      key2
      key1
      hadoopclient> hdfs dfs -mkdir /kms
      hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
      Added encryption zone /kms
      hadoopclient> hdfs crypto -createZone -keyName key1 -path /kms
      RemoteException: Attempt to create an encryption zone for a non-empty directory.

      Actual Output:
      ===========
      RemoteException:Attempt to create an encryption zone for non-empty directory

      Expected Output:
      =============
      Exception should be like EZ is already created with the same key

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                RANith Ranith Sardar
                Reporter:
                Harsha1206 Harshakiran Reddy
              • Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: