|
@@ -81,6 +81,7 @@ import org.apache.hadoop.hdfs.protocol.EncryptionZone;
|
|
|
import org.apache.hadoop.hdfs.protocol.ErasureCodingPolicy;
|
|
|
import org.apache.hadoop.hdfs.protocol.ExtendedBlock;
|
|
|
import org.apache.hadoop.hdfs.protocol.HdfsConstants.DatanodeReportType;
|
|
|
+import org.apache.hadoop.hdfs.protocol.HdfsConstants.ReencryptAction;
|
|
|
import org.apache.hadoop.hdfs.protocol.HdfsConstants.RollingUpgradeAction;
|
|
|
import org.apache.hadoop.hdfs.protocol.HdfsConstants.SafeModeAction;
|
|
|
import org.apache.hadoop.hdfs.protocol.HdfsFileStatus;
|
|
@@ -91,6 +92,7 @@ import org.apache.hadoop.hdfs.protocol.OpenFileEntry;
|
|
|
import org.apache.hadoop.hdfs.protocol.RollingUpgradeInfo;
|
|
|
import org.apache.hadoop.hdfs.protocol.SnapshotDiffReport;
|
|
|
import org.apache.hadoop.hdfs.protocol.SnapshottableDirectoryStatus;
|
|
|
+import org.apache.hadoop.hdfs.protocol.ZoneReencryptionStatus;
|
|
|
import org.apache.hadoop.hdfs.protocol.proto.ClientNamenodeProtocolProtos.ClientNamenodeProtocol;
|
|
|
import org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolPB;
|
|
|
import org.apache.hadoop.hdfs.protocolPB.ClientNamenodeProtocolServerSideTranslatorPB;
|
|
@@ -1606,6 +1608,19 @@ public class RouterRpcServer extends AbstractService implements ClientProtocol {
|
|
|
return null;
|
|
|
}
|
|
|
|
|
|
+ @Override // ClientProtocol
|
|
|
+ public void reencryptEncryptionZone(String zone, ReencryptAction action)
|
|
|
+ throws IOException {
|
|
|
+ checkOperation(OperationCategory.WRITE, false);
|
|
|
+ }
|
|
|
+
|
|
|
+ @Override // ClientProtocol
|
|
|
+ public BatchedEntries<ZoneReencryptionStatus> listReencryptionStatus(
|
|
|
+ long prevId) throws IOException {
|
|
|
+ checkOperation(OperationCategory.READ, false);
|
|
|
+ return null;
|
|
|
+ }
|
|
|
+
|
|
|
@Override // ClientProtocol
|
|
|
public void setXAttr(String src, XAttr xAttr, EnumSet<XAttrSetFlag> flag)
|
|
|
throws IOException {
|