HDFS-13114. CryptoAdmin#ReencryptZoneCommand should resolve Namespace info from path. Contributed by Hanisha Koneru.
(cherry picked from commit 90fbe5c6834a6685e65542fa69e396fad2678927)
This commit is contained in:
parent
abfe1eaf29
commit
b241491173
|
@ -337,8 +337,8 @@ public class CryptoAdmin extends Configured implements Tool {
|
|||
action = ReencryptAction.CANCEL;
|
||||
}
|
||||
|
||||
final HdfsAdmin admin =
|
||||
new HdfsAdmin(FileSystem.getDefaultUri(conf), conf);
|
||||
Path p = new Path(path);
|
||||
final HdfsAdmin admin = new HdfsAdmin(p.toUri(), conf);
|
||||
try {
|
||||
admin.reencryptEncryptionZone(new Path(path), action);
|
||||
System.out.println("re-encrypt command successfully submitted for "
|
||||
|
|
Loading…
Reference in New Issue