You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@knox.apache.org by di...@apache.org on 2013/09/26 21:35:29 UTC

git commit: knox-156, file upload through Knox broken

Updated Branches:
  refs/heads/master 99e172ca1 -> e5196a533


knox-156, file upload through Knox broken


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

Branch: refs/heads/master
Commit: e5196a5339ea63073e1ac7b0b1a720a3a9c74063
Parents: 99e172c
Author: Dilli Dorai Arumugam <da...@hortonworks.com>
Authored: Thu Sep 26 12:26:42 2013 -0700
Committer: Dilli Dorai Arumugam <da...@hortonworks.com>
Committed: Thu Sep 26 12:26:42 2013 -0700

----------------------------------------------------------------------
 gateway-release/home/deployments/sandbox.xml | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-knox/blob/e5196a53/gateway-release/home/deployments/sandbox.xml
----------------------------------------------------------------------
diff --git a/gateway-release/home/deployments/sandbox.xml b/gateway-release/home/deployments/sandbox.xml
index d8766cf..a191e22 100644
--- a/gateway-release/home/deployments/sandbox.xml
+++ b/gateway-release/home/deployments/sandbox.xml
@@ -58,6 +58,22 @@
             <enabled>true</enabled>
         </provider>
         <provider>
+            <!--
+              Defines mapping rule for mapping host names in hadoop service response to call back host names.
+              For example,  a hadoop service running in AWS may carry AWS internal host names in the response.
+              But,  if we have to make a call back to AWS host, we have to use the external host name.
+
+              If the external hostname and internal host names are same,  turn of this provider by setting the value of
+              enabled parameter as false.
+
+              The name parameter specifies the external hostname.
+              The value parameter specifies corresponding internal host names.
+              If Knox sees a request coming from client for internal host name, 
+              Knox would do the mapping and make downstream call to the external host name.
+
+              Wierdly enough when you are using sandbox, external hostname happens to be localhost,
+              as seen in out of box sandbox.xml. In real clusters, external hostnames would almost never be localhost.
+            -->
             <role>hostmap</role>
             <name>static</name>
             <enabled>true</enabled>