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.xml
and modify the following properties:property
namegateway.port name
valuegateway.port
value
where:
$gateway_port
is the HTTP port for the gateway (default port=8443)$gateway
is 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 start
The gateway loads the new configuration on startup.