Customize the Gateway Port and Path
The Knox Gateway properties effect the URL used by the external clients to access the internal cluster. By default the port is set to 8443 and the context path is gateway.
To change the context path or port:
Edit
gateway-site.xmland modify the following properties:propertynamegateway.port namevaluegateway.portvalue
where:
$gateway_portis the HTTP port for the gateway (default port=8443)$gatewayis the context path in the external URL (preconfigured value=gateway). For example, https://knox.hortonworks.com:8443/hadoop/,where hadoop is the context path.
Restart the gateway:
cd $gateway.bin/gateway.sh stop bin/gateway.sh startThe gateway loads the new configuration on startup.

