Last active
June 12, 2017 21:54
-
-
Save ambud/6d54ea699641391b1da741ac8be14f7c to your computer and use it in GitHub Desktop.
Ambari Kafka Rackawareness
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
rack="/default-rack" | |
i=0 | |
for host in params.all_hosts: | |
if host == params.hostname: | |
rack=params.all_racks[i] | |
break | |
i=i+1 | |
kafka_server_config['broker.rack']=rack |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
all_hosts = default("/clusterHostInfo/all_hosts", []) | |
all_racks = default("/clusterHostInfo/all_racks", []) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment