You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by yu...@apache.org on 2013/02/04 19:46:55 UTC

svn commit: r1442299 - in /incubator/ambari/trunk: CHANGES.txt ambari-web/app/controllers/wizard/step9_controller.js

Author: yusaku
Date: Mon Feb  4 18:46:55 2013
New Revision: 1442299

URL: http://svn.apache.org/viewvc?rev=1442299&view=rev
Log:
AMBARI-1341. Add Hosts: update the API call for new operator precedence. (yusaku)

Modified:
    incubator/ambari/trunk/CHANGES.txt
    incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js

Modified: incubator/ambari/trunk/CHANGES.txt
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/CHANGES.txt?rev=1442299&r1=1442298&r2=1442299&view=diff
==============================================================================
--- incubator/ambari/trunk/CHANGES.txt (original)
+++ incubator/ambari/trunk/CHANGES.txt Mon Feb  4 18:46:55 2013
@@ -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

Modified: incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js
URL: http://svn.apache.org/viewvc/incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js?rev=1442299&r1=1442298&r2=1442299&view=diff
==============================================================================
--- incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js (original)
+++ incubator/ambari/trunk/ambari-web/app/controllers/wizard/step9_controller.js Mon Feb  4 18:46:55 2013
@@ -261,6 +261,9 @@ App.WizardStep9Controller = Em.Controlle
     }
   },
 
+  /**
+   * 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.Controlle
     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"}}';
     }