[
https://issues.apache.org/jira/browse/KAFKA-675?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Matan updated KAFKA-675:
------------------------
Attachment: kafka-675-updated.patch
I've included a new patch file with the changes you suggested.
In summary:
1. hostname is null - bind to all interfaces, and publish getCanonicalHostName
to ZK.
2. hostname is set - bind to hostname only, and publish hostname
> Only bind to the interface declared in the 'hostname' config property
> ---------------------------------------------------------------------
>
> Key: KAFKA-675
> URL: https://issues.apache.org/jira/browse/KAFKA-675
> Project: Kafka
> Issue Type: Improvement
> Components: config, core
> Affects Versions: 0.8
> Reporter: Matan
> Priority: Minor
> Attachments: kafka-675.patch, kafka-675-updated.patch
>
>
> At the moment, Kafka always binds to all interfaces (0.0.0.0) which isn't
> ideal on some environments, even if the 'hostname' config parameter is set.
> Kafka should only bind to the interface set in the 'hostname' parameter -
> which defaults to InetAddress.getLocalHost.getHostAddress
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira