From 0f399b0d57875c64f49df3942743111905fd2198 Mon Sep 17 00:00:00 2001 From: Nanda kumar Date: Thu, 11 Jul 2019 19:01:06 +0530 Subject: [PATCH] HDDS-1784. Missing HostName and IpAddress in the response of register command. --- .../hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java index f07db622cd6..cd78d3d17f4 100644 --- a/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java +++ b/hadoop-hdds/server-scm/src/main/java/org/apache/hadoop/hdds/scm/server/SCMDatanodeProtocolServer.java @@ -271,6 +271,8 @@ public class SCMDatanodeProtocolServer implements .setErrorCode(cmd.getError()) .setClusterID(cmd.getClusterID()) .setDatanodeUUID(cmd.getDatanodeUUID()) + .setIpAddress(cmd.getIpAddress()) + .setHostname(cmd.getHostName()) .build(); }