From 57aad0f43aa34d1e522e21cdb1debf73db9f2bdc Mon Sep 17 00:00:00 2001 From: Szilard Nemeth Date: Mon, 20 Jan 2020 09:40:53 +0100 Subject: [PATCH] YARN-10081. Exception message from ClientRMProxy#getRMAddress is misleading. Contributed by Ravuri Sushma Sree --- .../main/java/org/apache/hadoop/yarn/client/ClientRMProxy.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/ClientRMProxy.java b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/ClientRMProxy.java index 496b984f67..23eb29a494 100644 --- a/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/ClientRMProxy.java +++ b/hadoop-yarn-project/hadoop-yarn/hadoop-yarn-common/src/main/java/org/apache/hadoop/yarn/client/ClientRMProxy.java @@ -104,7 +104,7 @@ public InetSocketAddress getRMAddress(YarnConfiguration conf, } else { String message = "Unsupported protocol found when creating the proxy " + "connection to ResourceManager: " + - ((protocol != null) ? protocol.getClass().getName() : "null"); + ((protocol != null) ? protocol.getName() : "null"); LOG.error(message); throw new IllegalStateException(message); }