kafka-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jason Gustafson (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (KAFKA-4256) Use IP for ZK broker register
Date Wed, 05 Oct 2016 17:59:21 GMT

    [ https://issues.apache.org/jira/browse/KAFKA-4256?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15549507#comment-15549507
] 

Jason Gustafson commented on KAFKA-4256:
----------------------------------------

[~yarekt] We have a broker configuration {{advertised.listeners}} which should let you override
the host used in Zookeeper. Does this not work?

> Use IP for ZK broker register
> -----------------------------
>
>                 Key: KAFKA-4256
>                 URL: https://issues.apache.org/jira/browse/KAFKA-4256
>             Project: Kafka
>          Issue Type: Improvement
>          Components: core
>            Reporter: Yarek Tyshchenko
>            Priority: Minor
>
> Kafka seems to default to using fqdn when registering itself with Zookeeper, using the
call "java.net.InetAddress.getCanonicalHostName()". This means that in an environment where
host's hostname doesn't resolve for zookeeper node will make that node unreachable.
> Currently theres no way to tell kafka to just use the IP address, I understand that it
would be difficult to know which interface it should use to get the IP from.
> One environment like this is docker (prior to version 1.11, where networks are available).
Only solution right now is to hard-code the IP address in the configuration file.
> It would be nice if there was a configuration option to just use the IP address of a
specified interface.
> For reference I'm including my workaround for research:
> https://github.com/YarekTyshchenko/kafka-docker/blob/0d79fa4f1d5089de5ff2b6793f57103d9573fe3b/ip.sh



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message