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