Skip to content

Commit

Permalink
[LIVY-560] Added support for hostnames that resolve to an external ad…
Browse files Browse the repository at this point in the history
…dress
  • Loading branch information
smrtl committed Feb 27, 2019
1 parent 7d9b453 commit 2aa4bcd
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions rsc/src/main/java/org/apache/livy/rsc/RSCConf.java
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 2aa4bcd

Please sign in to comment.