You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by ra...@apache.org on 2012/05/17 20:13:51 UTC

svn commit: r1339767 - in /incubator/ambari/branches/ambari-186: CHANGES.txt hmc/puppet/modules/hdp-zookeeper/manifests/params.pp hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb

Author: ramya
Date: Thu May 17 18:13:51 2012
New Revision: 1339767

URL: http://svn.apache.org/viewvc?rev=1339767&view=rev
Log:
AMBARI-254. Parameterize zookeeper configs

Modified:
    incubator/ambari/branches/ambari-186/CHANGES.txt
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/manifests/params.pp
    incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb

Modified: incubator/ambari/branches/ambari-186/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/CHANGES.txt?rev=1339767&r1=1339766&r2=1339767&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/CHANGES.txt (original)
+++ incubator/ambari/branches/ambari-186/CHANGES.txt Thu May 17 18:13:51 2012
@@ -1,6 +1,8 @@
 Ambari Change log
 
 Release 0.x.x - unreleased
+ 
+  AMBARI-254. Parameterize zookeeper configs (ramya)
 
   AMBARI-257. Manage services section will have any empty section when no 
   client only components installed (Vinod via ramya)

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/manifests/params.pp
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/manifests/params.pp?rev=1339767&r1=1339766&r2=1339767&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/manifests/params.pp (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/manifests/params.pp Thu May 17 18:13:51 2012
@@ -8,4 +8,11 @@ class hdp-zookeeper::params() inherits h
   $zk_data_dir = hdp_default("zk_data_dir","/var/lib/zookeeper/data")
   $zk_pid_dir = hdp_default("zk_pid_dir","/var/run/zookeeper")
   $zk_pid_file = "${zk_pid_dir}/zookeeper_server.pid"
+
+
+  $tickTime = hdp_default("tickTime","2000")
+  $initLimit = hdp_default("initLimit","10")
+  $syncLimit = hdp_default("syncLimit","5")
+  $clientPort = hdp_default("clientPort","2181")
+
 }

Modified: incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb
URL: http://svn.apache.org/viewvc/incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb?rev=1339767&r1=1339766&r2=1339767&view=diff
==============================================================================
--- incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb (original)
+++ incubator/ambari/branches/ambari-186/hmc/puppet/modules/hdp-zookeeper/templates/zoo.cfg.erb Thu May 17 18:13:51 2012
@@ -1,15 +1,15 @@
 # The number of milliseconds of each tick
-tickTime=2000
+tickTime=<%=scope.function_hdp_template_var("tickTime")%>
 # The number of ticks that the initial
 # synchronization phase can take
-initLimit=10
+initLimit=<%=scope.function_hdp_template_var("initLimit")%>
 # The number of ticks that can pass between
 # sending a request and getting an acknowledgement
-syncLimit=5
+syncLimit=<%=scope.function_hdp_template_var("syncLimit")%>
 # the directory where the snapshot is stored.
 dataDir=<%=scope.function_hdp_template_var("zk_data_dir")%>
 # the port at which the clients will connect
-clientPort=2181
+clientPort=<%=scope.function_hdp_template_var("clientPort")%>
 <%(scope.function_hdp_host("zookeeper_hosts")||[]).each_with_index do |host,i|-%>
 server.<%=(i+1).to_s%>=<%=host%>:2888:3888
 <% end -%>