2. 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:

  1. Edit gateway-site.xml and modify the following properties:

    • propertyname

    • gateway.port namevalue

    • gateway.portvalue

    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.

  2. Restart the gateway:

    cd $gateway.bin/gateway.sh stop bin/gateway.sh start

    The gateway loads the new configuration on startup.


loading table of contents...