ambari-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From odiache...@apache.org
Subject ambari git commit: AMBARI-13929. Move displayType element for HAWQ/PXF from site_properties.json to stack definition (Bhuvnesh Chaudhary via odiachenko).
Date Thu, 19 Nov 2015 23:57:56 GMT
Repository: ambari
Updated Branches:
  refs/heads/trunk f3e5523c7 -> b7a32bdc7


AMBARI-13929. Move displayType element for HAWQ/PXF from site_properties.json to stack definition
(Bhuvnesh Chaudhary via odiachenko).


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

Branch: refs/heads/trunk
Commit: b7a32bdc7700aab63f9110afbe5b1e94dbf79538
Parents: f3e5523
Author: Oleksandr Diachenko <odiachenko@pivotal.io>
Authored: Thu Nov 19 15:57:35 2015 -0800
Committer: Oleksandr Diachenko <odiachenko@pivotal.io>
Committed: Thu Nov 19 15:57:52 2015 -0800

----------------------------------------------------------------------
 .../HAWQ/2.0.0/configuration/hawq-site.xml      | 24 ++++++++++++++++++++
 ambari-web/app/data/HDP2.3/site_properties.js   |  8 -------
 .../test/data/HDP2.3/site_properties_test.js    |  4 ++--
 3 files changed, 26 insertions(+), 10 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/ambari/blob/b7a32bdc/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/configuration/hawq-site.xml
----------------------------------------------------------------------
diff --git a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/configuration/hawq-site.xml
b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/configuration/hawq-site.xml
index 41b10dc..862b2ee 100644
--- a/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/configuration/hawq-site.xml
+++ b/ambari-server/src/main/resources/common-services/HAWQ/2.0.0/configuration/hawq-site.xml
@@ -21,6 +21,9 @@
     <display-name>HAWQ Master</display-name>
     <value>localhost</value>
     <description>The host name of HAWQ master.</description>
+    <value-attributes>
+      <type>componentHost</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -28,6 +31,9 @@
     <display-name>HAWQ Standby Master</display-name>
     <value>localhost</value>
     <description>The host name of HAWQ standby.</description>
+    <value-attributes>
+      <type>componentHost</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -35,6 +41,9 @@
     <display-name>HAWQ Master Port</display-name>
     <value>5432</value>
     <description>The port of HAWQ master.</description>
+    <value-attributes>
+      <type>int</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -42,6 +51,9 @@
     <display-name>HAWQ Segment Port</display-name>
     <value>40000</value>
     <description>The port of HAWQ segment.</description>
+    <value-attributes>
+      <type>int</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -56,6 +68,9 @@
     <display-name>HAWQ Master Directory</display-name>
     <value>/data/hawq/master</value>
     <description>The directory of HAWQ master.</description>
+    <value-attributes>
+      <type>directory</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -63,6 +78,9 @@
     <display-name>HAWQ Segment Directory</display-name>
     <value>/data/hawq/segment</value>
     <description>The directory of HAWQ segment.</description>
+    <value-attributes>
+      <type>directory</type>
+    </value-attributes>
   </property> 
 
   <property>
@@ -70,6 +88,9 @@
     <display-name>HAWQ Master Temp Directory</display-name>
     <value>/tmp</value>
     <description>The temporary directory reserved for HAWQ master.</description>
+    <value-attributes>
+      <type>directory</type>
+    </value-attributes>
   </property>
 
   <property>
@@ -77,6 +98,9 @@
     <display-name>HAWQ Segment Temp Directory</display-name>
     <value>/tmp</value>
     <description>The temporary directory reserved for HAWQ segment.</description>
+    <value-attributes>
+      <type>directory</type>
+    </value-attributes>
   </property>
 
   <!-- HAWQ resource manager parameters -->

http://git-wip-us.apache.org/repos/asf/ambari/blob/b7a32bdc/ambari-web/app/data/HDP2.3/site_properties.js
----------------------------------------------------------------------
diff --git a/ambari-web/app/data/HDP2.3/site_properties.js b/ambari-web/app/data/HDP2.3/site_properties.js
index bdb0ef2..02074e1 100644
--- a/ambari-web/app/data/HDP2.3/site_properties.js
+++ b/ambari-web/app/data/HDP2.3/site_properties.js
@@ -235,7 +235,6 @@ hdp23properties.push({
   /*********************************************** HAWQ **********************************************/
   {
     "name": "hawq_master_address_host",
-    "displayType": "componentHost",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -243,7 +242,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_standby_address_host",
-    "displayType": "componentHost",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -251,7 +249,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_master_address_port",
-    "displayType": "int",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -259,7 +256,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_segment_address_port",
-    "displayType": "int",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -274,7 +270,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_master_directory",
-    "displayType": "directory",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -282,7 +277,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_master_temp_directory",
-    "displayType": "directory",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -290,7 +284,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_segment_directory",
-    "displayType": "directory",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",
@@ -298,7 +291,6 @@ hdp23properties.push({
   },
   {
     "name": "hawq_segment_temp_directory",
-    "displayType": "directory",
     "filename": "hawq-site.xml",
     "category": "General",
     "serviceName": "HAWQ",

http://git-wip-us.apache.org/repos/asf/ambari/blob/b7a32bdc/ambari-web/test/data/HDP2.3/site_properties_test.js
----------------------------------------------------------------------
diff --git a/ambari-web/test/data/HDP2.3/site_properties_test.js b/ambari-web/test/data/HDP2.3/site_properties_test.js
index 5179283..4e5589e 100644
--- a/ambari-web/test/data/HDP2.3/site_properties_test.js
+++ b/ambari-web/test/data/HDP2.3/site_properties_test.js
@@ -27,7 +27,7 @@ describe('hdp2SiteProperties', function () {
    */
   var stackProperties = siteProperties.filter(function(item){
     return  (!(item.isRequiredByAgent === false || item.filename === 'alert_notification'
|| item.category === 'Ambari Principals'
-    || item.name === 'oozie_hostname' || item.serviceName === 'HAWQ'))
+    || item.name === 'oozie_hostname'))
   });
 
   stackProperties.forEach(function(siteProperty){
@@ -76,4 +76,4 @@ describe('hdp2SiteProperties', function () {
     });
   });
 
-});
\ No newline at end of file
+});


Mime
View raw message