|
@@ -30,6 +30,7 @@ import io.netty.handler.logging.LoggingHandler;
|
|
import org.apache.hadoop.conf.Configuration;
|
|
import org.apache.hadoop.conf.Configuration;
|
|
import org.apache.hadoop.hdfs.ozone.protocol.proto.ContainerProtos;
|
|
import org.apache.hadoop.hdfs.ozone.protocol.proto.ContainerProtos;
|
|
import org.apache.hadoop.hdfs.protocol.DatanodeID;
|
|
import org.apache.hadoop.hdfs.protocol.DatanodeID;
|
|
|
|
+import org.apache.hadoop.ozone.OzoneConfigKeys;
|
|
import org.apache.hadoop.scm.container.common.helpers.Pipeline;
|
|
import org.apache.hadoop.scm.container.common.helpers.Pipeline;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.Logger;
|
|
import org.slf4j.LoggerFactory;
|
|
import org.slf4j.LoggerFactory;
|
|
@@ -85,8 +86,8 @@ public class XceiverClient extends XceiverClientSpi {
|
|
// port.
|
|
// port.
|
|
int port = leader.getContainerPort();
|
|
int port = leader.getContainerPort();
|
|
if (port == 0) {
|
|
if (port == 0) {
|
|
- port = config.getInt(ScmConfigKeys.DFS_CONTAINER_IPC_PORT,
|
|
|
|
- ScmConfigKeys.DFS_CONTAINER_IPC_PORT_DEFAULT);
|
|
|
|
|
|
+ port = config.getInt(OzoneConfigKeys.DFS_CONTAINER_IPC_PORT,
|
|
|
|
+ OzoneConfigKeys.DFS_CONTAINER_IPC_PORT_DEFAULT);
|
|
}
|
|
}
|
|
LOG.debug("Connecting to server Port : " + port);
|
|
LOG.debug("Connecting to server Port : " + port);
|
|
channelFuture = b.connect(leader.getHostName(), port).sync();
|
|
channelFuture = b.connect(leader.getHostName(), port).sync();
|