kylin-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From luke...@apache.org
Subject [44/50] [abbrv] incubator-kylin git commit: added accepts json request header so RM responds with JSON rather than XML
Date Mon, 08 Jun 2015 17:14:59 GMT
added accepts json request header so RM responds with JSON rather than XML

Signed-off-by: Li, Yang <yangli9@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/master
Commit: fc838d3e919d1224ba1a93897ae3440b3abaa79a
Parents: 02562c0
Author: c-horn <chorn4033@gmail.com>
Authored: Fri May 29 14:48:24 2015 -0400
Committer: Li, Yang <yangli9@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);
 


Mime
View raw message