YARN-10081. Exception message from ClientRMProxy#getRMAddress is misleading. Contributed by Ravuri Sushma Sree

This commit is contained in:
Szilard Nemeth 2020-01-20 09:40:53 +01:00
parent 14d0f9a775
commit 57aad0f43a

View File

@ -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);
}