You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@ambari.apache.org by "Sander Naus (JIRA)" <ji...@apache.org> on 2018/10/04 12:22:00 UTC

[jira] [Updated] (AMBARI-24735) Custom peerPort and leaderPort for ZooKeeper are not applied

     [ https://issues.apache.org/jira/browse/AMBARI-24735?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Sander Naus updated AMBARI-24735:
---------------------------------
    Description: 
Setting custom values for leaderPort and peerPort in Ambari is not reflected in the zoo.cf 

The values are hardcoded in the Jinja2 template
{quote}{% for key, value in zoo_cfg_properties_map.iteritems() -%}
 \{{key}}=\{{value}}
{% endfor %}
{% for host in zookeeper_hosts -%}
server.\{{loop.index}}=\{{host}}:2888:3888
{% endfor %}
{quote}
File location: /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ZOOKEEPER/package/templates/zoo.cfg.j2

  was:
Setting custom values for leaderPort and peerPort in Ambari is not reflected in the zoo.cf 

The values are hardcoded in the Jinja2 template
{quote}{{{% for key, value in zoo_cfg_properties_map.iteritems() -%}}}
{{ \{{key}}=\{{value}}}}
{{{% endfor %}}}
{{{% for host in zookeeper_hosts -%}}}
{{server.\{{loop.index}}=\{{host}}:2888:3888}}
{{{% endfor %}}}
{quote}
File location: /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ZOOKEEPER/package/templates/zoo.cfg.j2


> Custom peerPort and leaderPort for ZooKeeper are not applied
> ------------------------------------------------------------
>
>                 Key: AMBARI-24735
>                 URL: https://issues.apache.org/jira/browse/AMBARI-24735
>             Project: Ambari
>          Issue Type: Bug
>          Components: ambari-server
>    Affects Versions: 2.7.1
>            Reporter: Sander Naus
>            Priority: Major
>              Labels: easyfix
>
> Setting custom values for leaderPort and peerPort in Ambari is not reflected in the zoo.cf 
> The values are hardcoded in the Jinja2 template
> {quote}{% for key, value in zoo_cfg_properties_map.iteritems() -%}
>  \{{key}}=\{{value}}
> {% endfor %}
> {% for host in zookeeper_hosts -%}
> server.\{{loop.index}}=\{{host}}:2888:3888
> {% endfor %}
> {quote}
> File location: /var/lib/ambari-agent/cache/stacks/HDP/3.0/services/ZOOKEEPER/package/templates/zoo.cfg.j2



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)