You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@kylin.apache.org by lu...@apache.org on 2015/06/08 20:22:28 UTC

[05/11] incubator-kylin git commit: added accepts json request header so RM responds with JSON rather than XML

added accepts json request header so RM responds with JSON rather than XML

Signed-off-by: Li, Yang <ya...@ebay.com>


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

Branch: refs/heads/0.7
Commit: fc838d3e919d1224ba1a93897ae3440b3abaa79a
Parents: 02562c0
Author: c-horn <ch...@gmail.com>
Authored: Fri May 29 14:48:24 2015 -0400
Committer: Li, Yang <ya...@ebay.com>
Committed: Thu Jun 4 17:21:48 2015 +0800

----------------------------------------------------------------------
 .../main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java   | 2 ++
 1 file changed, 2 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-kylin/blob/fc838d3e/job/src/main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java
----------------------------------------------------------------------
diff --git a/job/src/main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java b/job/src/main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java
index 2a9abf9..b9ceee0 100644
--- a/job/src/main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java
+++ b/job/src/main/java/org/apache/kylin/job/tools/HadoopStatusGetter.java
@@ -72,6 +72,8 @@ public class HadoopStatusGetter {
             }
 
             HttpMethod get = new GetMethod(url);
+            get.addRequestHeader("accept", "application/json");
+
             try {
                 client.executeMethod(get);