Merge "Set Kafka Broker advertisement hostname"

This commit is contained in:
Zuul 2017-10-31 07:28:09 +00:00 committed by Gerrit Code Review
commit b1c3fbc3da
1 changed files with 4 additions and 0 deletions

View File

@ -333,6 +333,10 @@ function install_kafka {
sudo chmod 644 /etc/kafka/server.properties
# set kafka advertised broker address.
sudo sed -i "s/^#advertised.host.name=<hostname routable by clients>/#advertised.host.name=<hostname routable by clients>\nadvertised.host.name=${SERVICE_HOST}/"\
/etc/kafka/server.properties
sudo systemctl enable kafka
sudo systemctl start kafka || sudo systemctl restart kafka