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 "Hanisha Koneru (JIRA)" <ji...@apache.org> on 2018/02/07 00:53:00 UTC

[jira] [Created] (HDFS-13114) CryptoAdmin#ReencryptZoneCommand should resolve Namespace info from path

Hanisha Koneru created HDFS-13114:
-------------------------------------

             Summary: CryptoAdmin#ReencryptZoneCommand should resolve Namespace info from path
                 Key: HDFS-13114
                 URL: https://issues.apache.org/jira/browse/HDFS-13114
             Project: Hadoop HDFS
          Issue Type: Bug
          Components: encryption, hdfs
            Reporter: Hanisha Koneru
            Assignee: Hanisha Koneru


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.
{code:java}
$ hdfs crypto -reencryptZone -start -path hdfs://mycluster-node-1:8020/zone1
IllegalArgumentException: Wrong FS: hdfs://mycluster-node-1:8020/zone1, expected: hdfs://ns1{code}
{code:java}
$ hdfs crypto -reencryptZone -start -path hdfs://ns2/zone2
IllegalArgumentException: Wrong FS: hdfs://ns2/zone2, expected: hdfs://ns1{code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

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