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
1 changed files with 1 additions and 1 deletions

View File

@ -104,7 +104,7 @@ public class ClientRMProxy<T> extends RMProxy<T> {
} 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);
}