ansible-role-apache/hadoop/roles/zookeeper_servers/templates/zoo.cfg.j2

10 lines
298 B
Text
Raw Normal View History

2013-04-12 14:26:10 +02:00
tickTime=2000
dataDir=/var/lib/zookeeper/
2013-04-16 13:34:00 +02:00
clientPort={{ hadoop['zookeeper_clientport'] }}
2013-04-12 14:26:10 +02:00
initLimit=5
syncLimit=2
{% for host in groups['zookeeper_servers'] %}
2013-04-16 13:34:00 +02:00
server.{{ hostvars[host].zoo_id }}={{ host }}:{{ hadoop['zookeeper_leader_port'] }}:{{ hadoop['zookeeper_election_port'] }}
2013-04-12 14:26:10 +02:00
{% endfor %}