You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by sm...@apache.org on 2015/11/18 02:18:40 UTC

ambari git commit: AMBARI-13931. AMS should allow specification of custom classpath (Aravindan Vijayan via smohanty)

Repository: ambari
Updated Branches:
  refs/heads/branch-2.1 41f160da4 -> e7c33ed9a


AMBARI-13931. AMS should allow specification of custom classpath (Aravindan Vijayan via smohanty)


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

Branch: refs/heads/branch-2.1
Commit: e7c33ed9a811015b52b7003010e1c6a3032e82fa
Parents: 41f160d
Author: Sumit Mohanty <sm...@hortonworks.com>
Authored: Tue Nov 17 17:18:29 2015 -0800
Committer: Sumit Mohanty <sm...@hortonworks.com>
Committed: Tue Nov 17 17:18:29 2015 -0800

----------------------------------------------------------------------
 .../AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml  | 10 +++++++++-
 .../AMBARI_METRICS/0.1.0/package/scripts/params.py        |  1 +
 2 files changed, 10 insertions(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/e7c33ed9/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
index b3f8dd1..c8f8ad6 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/configuration/ams-hbase-env.xml
@@ -32,6 +32,14 @@
     <description>Pid Directory for HBase.</description>
   </property>
   <property>
+    <name>hbase_classpath_additional</name>
+    <value></value>
+    <description>Additional directory or jar in classpath for HBase.</description>
+    <value-attributes>
+      <empty-value-valid>true</empty-value-valid>
+    </value-attributes>
+  </property>
+  <property>
     <name>hbase_regionserver_heapsize</name>
     <value>512</value>
     <description>
@@ -143,7 +151,7 @@ export JAVA_HOME={{java64_home}}
 export HBASE_CONF_DIR=${HBASE_CONF_DIR:-{{hbase_conf_dir}}}
 
 # Extra Java CLASSPATH elements. Optional.
-export HBASE_CLASSPATH=${HBASE_CLASSPATH}
+export HBASE_CLASSPATH=${HBASE_CLASSPATH}:{{hbase_classpath_additional}}
 
 # The maximum amount of heap to use, in MB. Default is 1000.
 export HBASE_HEAPSIZE={{hbase_heapsize}}m

http://git-wip-us.apache.org/repos/asf/ambari/blob/e7c33ed9/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
index 568b11d..b6f6e40 100644
--- a/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
+++ b/ambari-server/src/main/resources/common-services/AMBARI_METRICS/0.1.0/package/scripts/params.py
@@ -92,6 +92,7 @@ metrics_report_interval = default("/configurations/ams-site/timeline.metrics.sin
 metrics_collection_period = default("/configurations/ams-site/timeline.metrics.sink.collection.period", 60)
 
 hbase_log_dir = config['configurations']['ams-hbase-env']['hbase_log_dir']
+hbase_classpath_additional = config['configurations']['ams-hbase-env']['hbase_classpath_additional']
 master_heapsize = config['configurations']['ams-hbase-env']['hbase_master_heapsize']
 regionserver_heapsize = config['configurations']['ams-hbase-env']['hbase_regionserver_heapsize']