Github user blrunner commented on a diff in the pull request:
https://github.com/apache/tajo/pull/286#discussion_r21440019
--- Diff: tajo-common/src/main/java/org/apache/tajo/util/NetUtils.java ---
@@ -30,6 +35,16 @@ public static InetSocketAddress createSocketAddr(String
addr) {
return new InetSocketAddress(splitted[0],
Integer.parseInt(splitted[1]));
}
+ public static InetSocketAddress createLocalSocketAddr(InetSocketAddress
addr) {
--- End diff --
Main components (ex: CatalogServer, TajoResourceTracker) create an
InetSocketAddress with NetUtils::createSocketAddr and TajoConf. But if the
address set to "0.0.0.0" at TajoConf, NetUtils::createSocketAddr bind socket
address to "localhost" unconditionally. It does matter on Yarn with TajoMaster
Ha. If socket address bind to "localohost" in Netty, TajoWorker never can't
connect the component. So, I set local ip address with
NetUtils::createLocalSocketAddr. If you have any good idea, suggest to me
easefully.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---