Zookeeper error: Cannot open channel to X at election address

前端 未结 10 1238
你的背包
你的背包 2020-12-13 06:15

I have installed zookeeper in 3 different aws servers. The following is the configuration in all the servers

tickTime=2000
initLimit=10
syncLimit=5
dataDir=/         


        
10条回答
  •  暖寄归人
    2020-12-13 06:48

    Here is some ansible jinja2 template info for automating the build of a cluster with the 0.0.0.0 hostname in zoo.cfg

    {% for url in zookeeper_hosts_list %}
      {%- set url_host = url.split(':')[0] -%}
      {%- if url_host == ansible_fqdn or url_host in     ansible_all_ipv4_addresses -%}
    server.{{loop.index0}}=0.0.0.0:2888:3888
    {% else %}
    server.{{loop.index0}}={{url_host}}:2888:3888
    {% endif %}
    {% endfor %}
    

提交回复
热议问题