Thanks Gwen. One more question: Is there a way we can dynamically re-load the contents of the Kafka server.properties contents without restarting the broker? Example use-case is when a zk-node goes down and a new one is brought up, we need to update the server.properties file to reflect this. Currently there is no way to do this other than broker restart. Broker restart requires a lot of things to do before triggering it.
This JIRA is already filed but un-resolved. We don't require all the configs to be reloaded but only variable external config changes should be allowed. https://issues.apache.org/jira/browse/KAFKA-1229 On Sun, May 24, 2015 at 1:14 PM, Gwen Shapira <gshap...@cloudera.com> wrote: > If you set advertised.hostname in server.properties to the ip address, the > IP will be registered in ZooKeeper. > > > On Fri, May 22, 2015 at 2:20 PM, Achanta Vamsi Subhash < > achanta.va...@flipkart.com> wrote: > > > Hi, > > > > Currently Kakfa brokers register the hostname in zookeeper. > > > > [zk: localhost:2181(CONNECTED) 5] get /varadhi/kafka/brokers/ids/0 > > > > > {"jmx_port":9999,"timestamp":"1427704934158","host":"currHostName","version":1,"port":9092} > > > > Is there any config to make it use ip-address instead so that we don't > > make a DNS lookup for the hostname? > > > > -- > > Regards > > Vamsi Subhash > > > -- Regards Vamsi Subhash