ansible-role-apache/hadoop/roles/zookeeper_servers/templates/zoo.cfg.j2
2013-04-16 17:04:00 +05:30

9 lines
298 B
Django/Jinja

tickTime=2000
dataDir=/var/lib/zookeeper/
clientPort={{ hadoop['zookeeper_clientport'] }}
initLimit=5
syncLimit=2
{% for host in groups['zookeeper_servers'] %}
server.{{ hostvars[host].zoo_id }}={{ host }}:{{ hadoop['zookeeper_leader_port'] }}:{{ hadoop['zookeeper_election_port'] }}
{% endfor %}