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

CryptoAdmin#ReencryptZoneCommand should resolve Namespace info from path

    Details

    • Type: Bug
    • Status: Resolved
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 3.1.0, 3.0.3
    • Component/s: encryption, hdfs
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      The crypto -reencryptZone <action> -path <zone> command takes in a path argument. But when creating HdfsAdmin object, it takes the defaultFs instead of resolving from the path. This causes the following exception if the authority component in path does not match the authority of default Fs.

      $ hdfs crypto -reencryptZone -start -path hdfs://mycluster-node-1:8020/zone1
      IllegalArgumentException: Wrong FS: hdfs://mycluster-node-1:8020/zone1, expected: hdfs://ns1
      $ hdfs crypto -reencryptZone -start -path hdfs://ns2/zone2
      IllegalArgumentException: Wrong FS: hdfs://ns2/zone2, expected: hdfs://ns1

        Attachments

          Activity

            People

            • Assignee:
              hanishakoneru Hanisha Koneru
              Reporter:
              hanishakoneru Hanisha Koneru
            • Votes:
              0 Vote for this issue
              Watchers:
              7 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: