[
https://issues.apache.org/jira/browse/TAJO-1221?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14237617#comment-14237617
]
ASF GitHub Bot commented on TAJO-1221:
--------------------------------------
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.
> HA TajoClient should not connect TajoMaster at the first.
> ---------------------------------------------------------
>
> Key: TAJO-1221
> URL: https://issues.apache.org/jira/browse/TAJO-1221
> Project: Tajo
> Issue Type: Improvement
> Components: tajo master
> Reporter: Hyunsik Choi
> Assignee: Jaehwa Jung
> Labels: failure-handling, fault-tolerance, high-availability
> Fix For: 0.9.1
>
>
> *Problem*
> We TajoClient is opened, TajoClient initially tries to connect TajoMaster.
> This manner does not guarantee high availability. A known TajoMaster host may
> be not work anymore. So, this manner still has some failure point.
> Also, this manner prohibits a Tajo cluster to run on some dynamic cluster
> environments like Yarn.
> *Solution*
> Tajo HA client should get directly TajoMaster addresses and others from HA
> component without contacting TajoMaster.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)