瀏覽代碼

AMBARI-1147. Handling Hive/HCat/WebHCat configuration parameters with Ambari Web. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1431611 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 年之前
父節點
當前提交
faa7d8d3ec

+ 3 - 0
CHANGES.txt

@@ -14,6 +14,9 @@ AMBARI-666 branch (unreleased changes)
 
   NEW FEATURES
 
+  AMBARI-1147. Handling Hive/HCat/WebHCat configuration parameters with
+  Ambari Web. (yusaku)
+
   AMBARI-946. Support retrieving information for multiple requests.
   (hitesh via mahadev)
 

+ 20 - 0
ambari-web/app/assets/data/wizard/stack/hdp/version01/HCATALOG.json

@@ -0,0 +1,20 @@
+{
+  "name" : "HCATALOG",
+  "version" : "0.4.0.1-1",
+  "user" : "root",
+  "comment" : "This is comment for HCATALOG service",
+  "properties" : [ ],
+  "components" : [ {
+    "name" : "HCAT",
+    "category" : "CLIENT",
+    "client" : true,
+    "master" : false
+  } ],
+  "clientOnlyService" : true,
+  "clientComponent" : {
+    "name" : "HCAT",
+    "category" : "CLIENT",
+    "client" : true,
+    "master" : false
+  }
+}

+ 14 - 2
ambari-web/app/controllers/wizard/step8_controller.js

@@ -905,16 +905,19 @@ App.WizardStep8Controller = Em.Controller.extend({
             var hostNames = clientHosts.mapProperty('hostName').splice(0);
             switch (_client.component_name) {
               case 'HDFS_CLIENT':
-                // install HDFS_CLIENT on HBASE_MASTER and HBASE_REGIONSERVER hosts
+                // install HDFS_CLIENT on HBASE_MASTER, HBASE_REGIONSERVER, and WEBHCAT_SERVER hosts
                 masterHosts.filterProperty('component', 'HBASE_MASTER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                   hostNames.pushObject(_masterHost.hostName);
                 }, this);
                 masterHosts.filterProperty('component', 'HBASE_REGIONSERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                   hostNames.pushObject(_masterHost.hostName);
                 }, this);
+                masterHosts.filterProperty('component', 'WEBHCAT_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                  hostNames.pushObject(_masterHost.hostName);
+                }, this);
                 break;
               case 'MAPREDUCE_CLIENT':
-                // install MAPREDUCE_CLIENT on HIVE_SERVER, OOZIE_SERVER, and NAGIOS_SERVER hosts
+                // install MAPREDUCE_CLIENT on HIVE_SERVER, OOZIE_SERVER, NAGIOS_SERVER, and WEBHCAT_SERVER hosts
                 masterHosts.filterProperty('component', 'HIVE_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                   hostNames.pushObject(_masterHost.hostName);
                 }, this);
@@ -924,6 +927,9 @@ App.WizardStep8Controller = Em.Controller.extend({
                 masterHosts.filterProperty('component', 'NAGIOS_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
                   hostNames.pushObject(_masterHost.hostName);
                 }, this);
+                masterHosts.filterProperty('component', 'WEBHCAT_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                  hostNames.pushObject(_masterHost.hostName);
+                }, this);
                 break;
               case 'OOZIE_CLIENT':
                 // install OOZIE_CLIENT on NAGIOS_SERVER host
@@ -931,6 +937,12 @@ App.WizardStep8Controller = Em.Controller.extend({
                   hostNames.pushObject(_masterHost.hostName);
                 }, this);
                 break;
+              case 'ZOOKEEPER_CLIENT':
+                // install ZOOKEEPER_CLIENT on WEBHCAT_SERVER host
+                masterHosts.filterProperty('component', 'WEBHCAT_SERVER').filterProperty('isInstalled', false).forEach(function (_masterHost) {
+                  hostNames.pushObject(_masterHost.hostName);
+                }, this);
+                break;
             }
             hostNames = hostNames.uniq();
             this.registerHostsToComponent(hostNames, _client.component_name);

+ 1 - 0
ambari-web/app/mappers/service_mapper.js

@@ -21,6 +21,7 @@ App.servicesMapper = App.QuickDataMapper.create({
     'MAPREDUCE',
     'HBASE',
     'HIVE',
+    'WEBHCAT',
     'OOZIE',
     'GANGLIA',
     'NAGIOS',

+ 2 - 1
ambari-web/app/models/service.js

@@ -66,6 +66,7 @@ App.Service = DS.Model.extend({
       "HBASE",
       "OOZIE",
       "HIVE",
+      "WEBHCAT",
       "ZOOKEEPER",
       "PIG",
       "SQOOP"
@@ -101,7 +102,7 @@ App.Service = DS.Model.extend({
       case 'oozie':
         return 'Oozie';
       case 'hive':
-        return 'Hive/HCatalog';
+        return 'Hive/HCat';
       case 'zookeeper':
         return 'ZooKeeper';
       case 'pig':