You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@ambari.apache.org by gn...@apache.org on 2016/08/17 18:33:21 UTC
ambari git commit: AMBARI-18178. yarn capacity scheduler queue issue.
(Akhil PB via gauravn7)
Repository: ambari
Updated Branches:
refs/heads/branch-2.4 a7b2f9c80 -> f556e0e4f
AMBARI-18178. yarn capacity scheduler queue issue. (Akhil PB via gauravn7)
Project: http://git-wip-us.apache.org/repos/asf/ambari/repo
Commit: http://git-wip-us.apache.org/repos/asf/ambari/commit/f556e0e4
Tree: http://git-wip-us.apache.org/repos/asf/ambari/tree/f556e0e4
Diff: http://git-wip-us.apache.org/repos/asf/ambari/diff/f556e0e4
Branch: refs/heads/branch-2.4
Commit: f556e0e4f6587cb87d752df568163bd98a10a3c4
Parents: a7b2f9c
Author: Gaurav Nagar <gn...@hortonworks.com>
Authored: Thu Aug 18 00:00:47 2016 +0530
Committer: Gaurav Nagar <gn...@hortonworks.com>
Committed: Thu Aug 18 00:00:47 2016 +0530
----------------------------------------------------------------------
.../ambari/view/capacityscheduler/ConfigurationService.java | 8 ++++----
.../capacity-scheduler/src/main/resources/ui/app/adapters.js | 2 +-
2 files changed, 5 insertions(+), 5 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/ambari/blob/f556e0e4/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java
index 03520fe..e5f5cb5 100644
--- a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java
+++ b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java
@@ -390,10 +390,10 @@ public class ConfigurationService {
* @return the http response
*/
@PUT
- @Consumes(MediaType.APPLICATION_JSON)
+ @Consumes(MediaType.TEXT_PLAIN)
@Produces(MediaType.APPLICATION_JSON)
- public Response writeConfiguration(JSONObject request) {
- LOG.debug("writeConfiguration for request : {} ", request);
+ public Response writeConfiguration(String requestBody) {
+ LOG.debug("writeConfiguration for request : {} ", requestBody);
JSONObject response;
try {
@@ -404,7 +404,7 @@ public class ConfigurationService {
Map<String, String> headers = new HashMap<String, String>();
headers.put("Content-Type", "application/x-www-form-urlencoded");
- String responseString = ambariApi.requestClusterAPI("", "PUT", request.toJSONString(), headers);
+ String responseString = ambariApi.requestClusterAPI("", "PUT",requestBody, headers);
response = getJsonObject(responseString);
} catch (WebApplicationException ex) {
http://git-wip-us.apache.org/repos/asf/ambari/blob/f556e0e4/contrib/views/capacity-scheduler/src/main/resources/ui/app/adapters.js
----------------------------------------------------------------------
diff --git a/contrib/views/capacity-scheduler/src/main/resources/ui/app/adapters.js b/contrib/views/capacity-scheduler/src/main/resources/ui/app/adapters.js
index 86c1484..770db51 100644
--- a/contrib/views/capacity-scheduler/src/main/resources/ui/app/adapters.js
+++ b/contrib/views/capacity-scheduler/src/main/resources/ui/app/adapters.js
@@ -158,7 +158,7 @@ App.QueueAdapter = DS.Adapter.extend({
});
return new Ember.RSVP.Promise(function(resolve, reject) {
- _ajax(uri,'PUT',{contentType:'application/json; charset=utf-8',data:data}).then(function(data) {
+ _ajax(uri,'PUT',{contentType:'text/plain; charset=utf-8',data:data}).then(function(data) {
store.setProperties({'current_tag':new_tag,'tag':new_tag});
Ember.run(null, resolve, data.resources.objectAt(0).configurations.objectAt(0).configs);
}, function(jqXHR) {