Browse Source

AMBARI-1341. Add Hosts: update the API call for new operator precedence. (yusaku)

git-svn-id: https://svn.apache.org/repos/asf/incubator/ambari/trunk@1442299 13f79535-47bb-0310-9956-ffa450edef68
Yusaku Sako 12 years ago
parent
commit
51dbc7f9f1
2 changed files with 7 additions and 1 deletions
  1. 3 0
      CHANGES.txt
  2. 4 1
      ambari-web/app/controllers/wizard/step9_controller.js

+ 3 - 0
CHANGES.txt

@@ -38,6 +38,9 @@ Trunk (unreleased changes):
 
  IMPROVEMENTS
 
+ AMBARI-1341. Add Hosts: update the API call for new operator precedence.
+ (yusaku) 
+
  AMBARI-1340. Enhance Install/Start/Test progress display. (yusaku) 
 
  AMBARI-1339. Validate usernames in Misc section of Customize Services step

+ 4 - 1
ambari-web/app/controllers/wizard/step9_controller.js

@@ -261,6 +261,9 @@ App.WizardStep9Controller = Em.Controller.extend({
     }
   },
 
+  /**
+   * run start/check services after installation phase
+   */
   launchStartServices: function () {
     var self = this;
     var clusterName = this.get('content.cluster.name');
@@ -269,7 +272,7 @@ App.WizardStep9Controller = Em.Controller.extend({
     var method = 'PUT';
 
     if (this.get('content.controllerName') === 'addHostController') {
-      url = App.apiPrefix + '/clusters/' + clusterName + '/host_components?HostRoles/component_name=GANGLIA_MONITOR|HostRoles/component_name=HBASE_REGIONSERVER|HostRoles/component_name=DATANODE|HostRoles/component_name=TASKTRACKER&HostRoles/state=INSTALLED';
+      url = App.apiPrefix + '/clusters/' + clusterName + '/host_components?(HostRoles/component_name=GANGLIA_MONITOR|HostRoles/component_name=HBASE_REGIONSERVER|HostRoles/component_name=DATANODE|HostRoles/component_name=TASKTRACKER)&(HostRoles/state=INSTALLED)';
       data = '{"HostRoles": {"state": "STARTED"}}';
     }