HDFS-13301. Ozone: Remove containerPort, ratisPort and ozoneRestPort from DatanodeID and DatanodeIDProto. Contributed by Shashikant Banerjee.
This commit is contained in:
parent
82eb5da2b6
commit
0ec88ea42b
@ -336,9 +336,7 @@ public static DatanodeIDProto convert(DatanodeID dn) {
|
|||||||
dn.getDatanodeUuid() : "")
|
dn.getDatanodeUuid() : "")
|
||||||
.setInfoPort(dn.getInfoPort())
|
.setInfoPort(dn.getInfoPort())
|
||||||
.setInfoSecurePort(dn.getInfoSecurePort())
|
.setInfoSecurePort(dn.getInfoSecurePort())
|
||||||
.setIpcPort(dn.getIpcPort())
|
.setIpcPort(dn.getIpcPort()).build();
|
||||||
.setOzoneRestPort(dn.getOzoneRestPort())
|
|
||||||
.build();
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static DatanodeInfoProto.AdminState convert(
|
public static DatanodeInfoProto.AdminState convert(
|
||||||
@ -788,13 +786,9 @@ public static Token<BlockTokenIdentifier> convert(
|
|||||||
|
|
||||||
// DatanodeId
|
// DatanodeId
|
||||||
public static DatanodeID convert(DatanodeIDProto dn) {
|
public static DatanodeID convert(DatanodeIDProto dn) {
|
||||||
DatanodeID datanodeID =
|
return new DatanodeID(dn.getIpAddr(), dn.getHostName(),
|
||||||
new DatanodeID(dn.getIpAddr(), dn.getHostName(), dn.getDatanodeUuid(),
|
dn.getDatanodeUuid(), dn.getXferPort(), dn.getInfoPort(),
|
||||||
dn.getXferPort(), dn.getInfoPort(),
|
dn.hasInfoSecurePort() ? dn.getInfoSecurePort() : 0, dn.getIpcPort());
|
||||||
dn.hasInfoSecurePort() ? dn.getInfoSecurePort() : 0,
|
|
||||||
dn.getIpcPort());
|
|
||||||
datanodeID.setOzoneRestPort(dn.getOzoneRestPort());
|
|
||||||
return datanodeID;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static AdminStates convert(AdminState adminState) {
|
public static AdminStates convert(AdminState adminState) {
|
||||||
|
@ -73,9 +73,6 @@ message DatanodeIDProto {
|
|||||||
required uint32 infoPort = 5; // datanode http port
|
required uint32 infoPort = 5; // datanode http port
|
||||||
required uint32 ipcPort = 6; // ipc server port
|
required uint32 ipcPort = 6; // ipc server port
|
||||||
optional uint32 infoSecurePort = 7 [default = 0]; // datanode https port
|
optional uint32 infoSecurePort = 7 [default = 0]; // datanode https port
|
||||||
optional uint32 containerPort = 8 [default = 0]; // Ozone stand_alone protocol
|
|
||||||
optional uint32 ratisPort = 9 [default = 0]; //Ozone ratis port
|
|
||||||
optional uint32 ozoneRestPort = 10 [default = 0];
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user