You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by km...@apache.org on 2013/09/23 19:57:22 UTC
git commit: KNOX-148: Add cluster topology details rewrite for XML
responses from HBase/Stargate REST APIs
Updated Branches:
refs/heads/master 64b33bf80 -> 371708bb7
KNOX-148: Add cluster topology details rewrite for XML responses from HBase/Stargate REST APIs
Project: http://git-wip-us.apache.org/repos/asf/incubator-knox/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-knox/commit/371708bb
Tree: http://git-wip-us.apache.org/repos/asf/incubator-knox/tree/371708bb
Diff: http://git-wip-us.apache.org/repos/asf/incubator-knox/diff/371708bb
Branch: refs/heads/master
Commit: 371708bb7bf0682a35669d08559a90258b39a192
Parents: 64b33bf
Author: Kevin Minder <ke...@hortonworks.com>
Authored: Mon Sep 23 13:57:16 2013 -0400
Committer: Kevin Minder <ke...@hortonworks.com>
Committed: Mon Sep 23 13:57:16 2013 -0400
----------------------------------------------------------------------
.../gateway/hbase/HBaseDeploymentContributor/rewrite.xml | 6 ++++++
1 file changed, 6 insertions(+)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/371708bb/gateway-service-hbase/src/main/resources/org/apache/hadoop/gateway/hbase/HBaseDeploymentContributor/rewrite.xml
----------------------------------------------------------------------
diff --git a/gateway-service-hbase/src/main/resources/org/apache/hadoop/gateway/hbase/HBaseDeploymentContributor/rewrite.xml b/gateway-service-hbase/src/main/resources/org/apache/hadoop/gateway/hbase/HBaseDeploymentContributor/rewrite.xml
index 3ac2162..ef88bcb 100644
--- a/gateway-service-hbase/src/main/resources/org/apache/hadoop/gateway/hbase/HBaseDeploymentContributor/rewrite.xml
+++ b/gateway-service-hbase/src/main/resources/org/apache/hadoop/gateway/hbase/HBaseDeploymentContributor/rewrite.xml
@@ -42,12 +42,18 @@
<content type="*/json">
<apply path="$[LiveNodes][*][name]" rule="STARGATE/stargate/address/outbound"/>
</content>
+ <content type="*/xml">
+ <apply path="/ClusterStatus/LiveNodes/Node/@name" rule="STARGATE/stargate/address/outbound"/>
+ </content>
</filter>
<filter name="STARGATE/stargate/regions/outbound">
<content type="*/json">
<apply path="$[Region][*][location]" rule="STARGATE/stargate/address/outbound"/>
</content>
+ <content type="*/xml">
+ <apply path="/TableInfo/Region/@location" rule="STARGATE/stargate/address/outbound"/>
+ </content>
</filter>
</rules>
\ No newline at end of file