diff --git a/rsc/src/main/java/org/apache/livy/rsc/RSCConf.java b/rsc/src/main/java/org/apache/livy/rsc/RSCConf.java index d2496b56e..2e2c77590 100644 --- a/rsc/src/main/java/org/apache/livy/rsc/RSCConf.java +++ b/rsc/src/main/java/org/apache/livy/rsc/RSCConf.java @@ -141,6 +141,10 @@ public String findLocalAddress() throws IOException { } } } + } else { + LOG.warn("Your hostname, {}, resolves to an external address; using {}.", + address.getCanonicalHostName(), address.getHostAddress()); + return address.getHostAddress(); } LOG.warn("Your hostname, {}, resolves to a loopback address, but we couldn't find "