<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>question Re: Changing zookeeper client port in Ambari is not reflected for all services in Archives of Support Questions (Read Only)</title>
    <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136493#M35120</link>
    <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11589/johnmart.html" nodeid="11589"&gt;@John Martin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please post it as an idea in HCC / file an enhancement request with Apache / Hortonworks.&lt;/P&gt;</description>
    <pubDate>Wed, 20 Jul 2016 15:09:50 GMT</pubDate>
    <dc:creator>vpoornalingam</dc:creator>
    <dc:date>2016-07-20T15:09:50Z</dc:date>
    <item>
      <title>Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136488#M35115</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am trying to deploy a HDP cluster via Ambari on a number of VM's that are each running a different version of zookeeper already.&lt;/P&gt;&lt;P&gt;As expected, I am encountering errors that the zookeeper client port (:2181) is already occupied when I try to deploy zookeeper via Ambari. &lt;/P&gt;&lt;P&gt;I tried changing the client port to an unoccupied port in /zoo.cfg in the *Customize Services* of Ambari deployment. Doing this I was able to successfully deploy Zookeeper, but the services that connect to zookeeper are still looking for it at :2181. An example of this is below: &lt;/P&gt;&lt;PRE&gt;"kafka-broker" : {
     "properties" : { 
	...
	"zookeeper.connect" : "%HOSTGROUP::host_group_1%:2181",
	...
	}
}
&lt;/PRE&gt;&lt;P&gt;I would prefer not to manually change zookeepers client port on every single service that uses zookeeper. Is there an easier alternative? &lt;/P&gt;</description>
      <pubDate>Tue, 19 Jul 2016 21:22:02 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136488#M35115</guid>
      <dc:creator>johnmart</dc:creator>
      <dc:date>2016-07-19T21:22:02Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136489#M35116</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11589/johnmart.html" nodeid="11589" target="_blank"&gt;@John Martin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;You can go to each service configuration in Ambari UI and change the port number.&lt;/P&gt;&lt;P&gt;For example for Kafka, see below screenshot&lt;/P&gt;&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="5872-screen-shot-2016-07-19-at-11914-pm.png" style="width: 999px;"&gt;&lt;img src="https://community.cloudera.com/t5/image/serverpage/image-id/22021iEA9F78B868C43B88/image-size/medium?v=v2&amp;amp;px=400" role="button" title="5872-screen-shot-2016-07-19-at-11914-pm.png" alt="5872-screen-shot-2016-07-19-at-11914-pm.png" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 19 Aug 2019 08:50:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136489#M35116</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2019-08-19T08:50:35Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136490#M35117</link>
      <description>&lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt;&lt;P&gt; Thanks for getting back to me! &lt;/P&gt;&lt;P&gt;I know that I can manually change the port number for each service, I was wondering if there was an alternative to doing that (I don't know much about Zookeeper).  &lt;/P&gt;&lt;P&gt;The reason I ask is because I am working on an automated deployment of HDP, and manually changing the port (even if I did so within a Blueprint) gets in the way of that.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 03:57:26 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136490#M35117</guid>
      <dc:creator>johnmart</dc:creator>
      <dc:date>2016-07-20T03:57:26Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136491#M35118</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11589/johnmart.html" nodeid="11589"&gt;@John Martin&lt;/A&gt; - If you are going to use blueprint then I believe mentioning port in the configuration is the only option.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 04:02:18 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136491#M35118</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-20T04:02:18Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136492#M35119</link>
      <description>&lt;P style="margin-left: 40px;"&gt; &lt;A rel="user" href="https://community.cloudera.com/users/504/kkulkarni.html" nodeid="504"&gt;@Kuldeep Kulkarni&lt;/A&gt; each service configuration can be updated by using API.  Take a look &lt;A href="https://cwiki.apache.org/confluence/display/AMBARI/Modify+configurations"&gt;here&lt;/A&gt;.  You can also make changes in the blueprint.&lt;/P&gt;&lt;P&gt;Configuration update involves the following steps:&lt;/P&gt;&lt;UL&gt;
&lt;LI&gt;Identify the config type to update and note the latest version applied. &lt;EM&gt;When a config type is updated the whole property set needs to be updated. So copying the values from the latest and updating specific values or adding/removing properties as needed is the easiest option.&lt;/EM&gt;&lt;/LI&gt;&lt;LI&gt;Read the cluster resource and note the version of the type you want to update&lt;/LI&gt;&lt;LI&gt;Read the config type with the tag and note the properties&lt;/LI&gt;&lt;LI&gt;Edit the properties as needed and then update the config type
&lt;UL&gt;
&lt;LI&gt;Config update requires creation of a new version (typically current timestamp is a good choice)&lt;/LI&gt;&lt;LI&gt;The new version of the config type must be added &lt;STRONG&gt;and&lt;/STRONG&gt; applied to the cluster&lt;/LI&gt;&lt;/UL&gt;&lt;/LI&gt;&lt;LI&gt;Restart affected services/components to have the config take effect&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;You can use APIs or a wrapper script (/var/lib/ambari-server/resources/scripts/configs.sh) to edit configurations.&lt;/P&gt;&lt;H2&gt;&lt;STRONG&gt;Edit configuration using APIs (1.4.1/1.2.5)&lt;/STRONG&gt;&lt;/H2&gt;&lt;H4&gt;&lt;EM&gt;Verified against releases 1.4.1/1.2.5&lt;/EM&gt;&lt;/H4&gt;&lt;P&gt;&lt;EM&gt;Starting 1.4.2/1.4.3 you will have to add -H option to the curl calls. E.g. -H "X-Requested-By: ambari"&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;1. &lt;STRONG&gt;Find the latest version of the config type that you need to update&lt;/STRONG&gt;.&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl -u admin:admin -X GET  http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME?fields=Clusters/desired_configs&lt;/CODE&gt;
&lt;CODE&gt;Sample OUTPUT&lt;/CODE&gt;
&lt;CODE&gt;{&lt;/CODE&gt;
&lt;CODE&gt;"href"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTER_NAME?fields=Clusters/desired_configs"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME?fields=Clusters/desired_configs"&lt;/A&gt;&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"Clusters"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;"cluster_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"CLUSTER_NAME"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"version"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"HDP-2.0.6"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"desired_configs"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;...&lt;/CODE&gt;
&lt;CODE&gt;"mapred-site"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;"user"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"admin"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"tag"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"version1384716039631"&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;CODE&gt;...&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;2. &lt;STRONG&gt;Read the config type with correct tag&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl -u admin:admin &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&lt;/A&gt;&lt;/CODE&gt;
&lt;CODE&gt;Sample OUTPUT&lt;/CODE&gt;
&lt;CODE&gt;{&lt;/CODE&gt;
&lt;CODE&gt;"href"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&lt;/A&gt;&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"items"&lt;/CODE&gt; &lt;CODE&gt;: [&lt;/CODE&gt;
&lt;CODE&gt;{&lt;/CODE&gt;
&lt;CODE&gt;"href"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"&lt;A href="http://ambari_server_host:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&gt;http://AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/configurations?type=mapred-site&amp;amp;tag=version1384716039631"&lt;/A&gt;&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"tag"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"version1384716039631"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"type"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"mapred-site"&lt;/CODE&gt;&lt;CODE&gt;,&lt;/CODE&gt;
&lt;CODE&gt;"Config"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;"cluster_name"&lt;/CODE&gt; &lt;CODE&gt;: &lt;/CODE&gt;&lt;CODE&gt;"CLUSTER_NAME"&lt;/CODE&gt;
&lt;CODE&gt;},&lt;/CODE&gt;
&lt;CODE&gt;"properties"&lt;/CODE&gt; &lt;CODE&gt;: {&lt;/CODE&gt;
&lt;CODE&gt;... THESE ARE THE PROPERTY KEY-VALUE PAIRS ...&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;CODE&gt;}]&lt;/CODE&gt;
&lt;CODE&gt;}&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;3a. &lt;STRONG&gt;Save a new version of the config and apply it (see 3b for doing it using one call)&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl --user admin:admin -i -X POST -d &lt;/CODE&gt;&lt;CODE&gt;'{"type": "mapred-site", "tag": "version1384716041120", "properties" : {"mapreduce.admin.map.child.java.opts" : "-Djava.net.preferIPv4Stack=true -Dhadoop.metrics.log.level=WARN",...}}'&lt;/CODE&gt; &lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/configurations&lt;/CODE&gt;
&lt;CODE&gt;curl --user admin:admin -i -X PUT -d &lt;/CODE&gt;&lt;CODE&gt;'{"Clusters":{"desired_config" : {"type": "mapred-site", "tag": "version1384716041120"}}}'&lt;/CODE&gt; &lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;3b. &lt;STRONG&gt;Save a new version of the config and apply it using one call&lt;/STRONG&gt;&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl --user admin:admin -i -X PUT -d &lt;/CODE&gt;&lt;CODE&gt;'{"Clusters":{"desired_config" : {"type": "mapred-site", "tag": "version1384716041120", "properties" : {...}}}}'&lt;/CODE&gt; &lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME&lt;/CODE&gt;
&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P&gt;4. &lt;STRONG&gt;Restart all components or services to have the config change take effect&lt;/STRONG&gt;
E.g. Stop and Start a service&lt;/P&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;TABLE&gt;&lt;TBODY&gt;&lt;TR&gt;&lt;TD&gt;&lt;DIV&gt;&lt;DIV&gt;&lt;CODE&gt;curl --user admin:admin -i -X PUT -d &lt;/CODE&gt;&lt;CODE&gt;'{"RequestInfo": {"context": "Stop HDFS"}, "ServiceInfo": {"state": "INSTALLED"}}'&lt;/CODE&gt; &lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/HDFS&lt;/CODE&gt;
&lt;CODE&gt;curl --user admin:admin -i -X PUT -d &lt;/CODE&gt;&lt;CODE&gt;'{"RequestInfo": {"context": "Start HDFS"}, "ServiceInfo": {"state": "STARTED"}}'&lt;/CODE&gt; &lt;CODE&gt;http:&lt;/CODE&gt;&lt;CODE&gt;//AMBARI_SERVER_HOST:8080/api/v1/clusters/CLUSTER_NAME/services/HDFS&lt;/CODE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;/TD&gt;&lt;/TR&gt;&lt;/TBODY&gt;&lt;/TABLE&gt;&lt;/DIV&gt;&lt;/DIV&gt;&lt;P style="margin-left: 40px;"&gt;&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 09:50:30 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136492#M35119</guid>
      <dc:creator>sunile_manjee</dc:creator>
      <dc:date>2016-07-20T09:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136493#M35120</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/11589/johnmart.html" nodeid="11589"&gt;@John Martin&lt;/A&gt;&lt;/P&gt;&lt;P&gt;Please post it as an idea in HCC / file an enhancement request with Apache / Hortonworks.&lt;/P&gt;</description>
      <pubDate>Wed, 20 Jul 2016 15:09:50 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136493#M35120</guid>
      <dc:creator>vpoornalingam</dc:creator>
      <dc:date>2016-07-20T15:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Changing zookeeper client port in Ambari is not reflected for all services</title>
      <link>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136494#M35121</link>
      <description>&lt;P&gt;&lt;A rel="user" href="https://community.cloudera.com/users/1486/smanjee.html" nodeid="1486"&gt;@Sunile Manjee&lt;/A&gt; - Thanks for the info, I'm aware that we can do this using API, as &lt;A rel="user" href="https://community.cloudera.com/users/11589/johnmart.html" nodeid="11589"&gt;@John Martin&lt;/A&gt; wanted to do this while installing HDP cluster hence suggested to put in configs section of ambari blueprint.&lt;/P&gt;</description>
      <pubDate>Thu, 21 Jul 2016 04:49:35 GMT</pubDate>
      <guid>https://community.cloudera.com/t5/Archives-of-Support-Questions/Changing-zookeeper-client-port-in-Ambari-is-not-reflected/m-p/136494#M35121</guid>
      <dc:creator>KuldeepK</dc:creator>
      <dc:date>2016-07-21T04:49:35Z</dc:date>
    </item>
  </channel>
</rss>

