[ 
https://issues.apache.org/jira/browse/KNOX-1025?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16461099#comment-16461099
 ] 

Sandeep More edited comment on KNOX-1025 at 5/2/18 2:32 PM:
------------------------------------------------------------

Hello [~tanbamboo] apologies for the delay in getting this patch committed, I 
would like to get it in for the 1.2 release. 

The patch looks great ! I see there is no test for this feature, can you submit 
a new patch with a UnitTest ?

There we couple of minor things in comments that would be good to get fixed as 
well
 # GatewayServer line # 596, get rid of the FIXME
 # gatewayConfigImpl line #916,
 ## {color:#808080}// ignore the GATEWAY_PORT_MAPPING_ENABLED property{color} 
should be {color:#808080}// ignore the {color}GATEWAY_DOMAIN_MAPPING_ENABLED 
{color:#808080}property{color}


was (Author: smore):
Hello [~tanbamboo] apologies for the delay in getting this patch committed, I 
would like to get it in for the 1.2 release. 

The patch looks great ! I see there is no test for this feature, can you submit 
a new patch with a UnitTest ?

There we couple of minor things in comments that would be good to get fixed as 
well
 # GatewayServer line # 596, get rid of the FIXME
 # gatewayConfigImpl line #916,
 ## {color:#808080}// ignore the GATEWAY_PORT_MAPPING_ENABLED property{color} 
should be {color:#808080}{color:#808080}// ignore 
the{color}{color}{color:#9876aa}GATEWAY_DOMAIN_MAPPING_ENABLED{color} 
{color:#808080}property{color}

> Topology Domain Mapping
> -----------------------
>
>                 Key: KNOX-1025
>                 URL: https://issues.apache.org/jira/browse/KNOX-1025
>             Project: Apache Knox
>          Issue Type: New Feature
>          Components: Server
>            Reporter: Benjamin Tan
>            Assignee: Benjamin Tan
>            Priority: Major
>             Fix For: 1.1.0
>
>         Attachments: knox-1025.patch, knox-1025.v2.patch
>
>
> h2. Motivation
> In a multi-tenant doployment, end user need to access hadoop service in:
> {code:java}
> https://{gateway-host}:8443/gateway/eerie/webhdfs 
> {code}
> , even with [KIP-6 Topology Port 
> Mapping|https://cwiki.apache.org/confluence/display/KNOX/KIP-6+Topology+Port+Mapping],
>  end user need to access in:
> {code:java}
> https://{gateway-host}:5443/webhdfs
> {code}
> we can give more convenience for end user, let them access in:
> {code:java}
> https://{eerie-specific-domain}/webhdfs
> or
> https://eerie.{gateway-domain}/webhdfs
> {code}
> There are some deploy prerequisites:
> # Let tenant admin add CNAME topology-specific-domain in their DNS server, 
> point gateway host;
> # add CNAME eerie.gateway-domain in gateway domain DNS server, point geteway 
> host;
> # add firewall rule in gateway host and redirect 443 to knox listening port 
> 8443.
> h2. Configuration
> Configuration for this feature will be in gateway-site.xml config file.
> {code:java}
> <!-- Optional, true by default-->
> <property>
>     <name>gateway.domain.mapping.enabled</name>
>     <value>true</value>
>     <description>Enable/Disable gateway topology domain mapping 
> feature.</description>
> </property>
>  
> <!-- Multi Domain Gateway -->
> <property>
>     <name>gateway.domain.mapping.eerie</name>
>     <value>{eerie-specific-domain}</value>
>     <description>The domain for the Topology.</description>
> </property>
> {code}



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to