ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From vbrodets...@apache.org
Subject ambari git commit: AMBARI-15429. Cannot specify ZooKeeper heap size via UI.(vbrodetskyi)
Date Thu, 17 Mar 2016 13:29:42 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk fac2eece9 -> d7596e769


AMBARI-15429. Cannot specify ZooKeeper heap size via UI.(vbrodetskyi)


Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/d7596e76
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/d7596e76
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/d7596e76

Branch: refs/heads/trunk
Commit: d7596e769f7546e621981f9e5501c1094e6e4f84
Parents: fac2eec
Author: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Authored: Thu Mar 17 12:40:33 2016 +0200
Committer: Vitaly Brodetskyi <vbrodetskyi@hortonworks.com>
Committed: Thu Mar 17 12:40:33 2016 +0200

----------------------------------------------------------------------
 .../3.4.5.2.0/configuration/zookeeper-env.xml       | 16 +++++++++++++++-
 .../3.4.5.2.0/package/scripts/params_linux.py       |  2 +-
 2 files changed, 16 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/d7596e76/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/configuration/zookeeper-env.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/configuration/zookeeper-env.xml
b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/configuration/zookeeper-env.xml
index 7ef62bc..e312507 100644
--- a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/configuration/zookeeper-env.xml
+++ b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/configuration/zookeeper-env.xml
@@ -55,6 +55,20 @@
   </property>
 
   <property>
+    <name>zk_server_heapsize</name>
+    <value>1024</value>
+    <description>Maximum amount of memory each Zookeeper Server can use.</description>
+    <display-name>Zookeeper Server Maximum Memory</display-name>
+    <value-attributes>
+      <type>int</type>
+      <minimum>256</minimum>
+      <maximum>32768</maximum>
+      <unit>MB</unit>
+      <increment-step>256</increment-step>
+    </value-attributes>
+  </property>
+
+  <property>
     <name>zookeeper_principal_name</name>
     <description>ZooKeeper principal name</description>
   </property>
@@ -74,7 +88,7 @@ export JAVA_HOME={{java64_home}}
 export ZOOKEEPER_HOME={{zk_home}}
 export ZOO_LOG_DIR={{zk_log_dir}}
 export ZOOPIDFILE={{zk_pid_file}}
-export SERVER_JVMFLAGS={{zk_server_heapsize}}
+export SERVER_JVMFLAGS=-Xmx{{zk_server_heapsize}}
 export JAVA=$JAVA_HOME/bin/java
 export CLASSPATH=$CLASSPATH:/usr/share/zookeeper/*
 

http://git-wip-us.apache.org/repos/asf/ambari/blob/d7596e76/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py
b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py
index 9ff9125..d64eb5c 100644
--- a/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py
+++ b/ambari-server/src/main/resources/common-services/ZOOKEEPER/3.4.5.2.0/package/scripts/params_linux.py
@@ -65,7 +65,7 @@ zk_log_dir = config['configurations']['zookeeper-env']['zk_log_dir']
 zk_data_dir = config['configurations']['zoo.cfg']['dataDir']
 zk_pid_dir = status_params.zk_pid_dir
 zk_pid_file = status_params.zk_pid_file
-zk_server_heapsize = "-Xmx1024m"
+zk_server_heapsize = default('configurations/zookeeper-env/zk_server_heapsize', 1024)
 
 client_port = default('/configurations/zoo.cfg/clientPort', None)
 


Mime
View raw message