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/
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 %}