Configuring Proxy with Apache Knox
Also available as:
loading table of contents...

Customize the Gateway Port and Path

How to customize the Knox Gateway port and path, when configuring the Knox Gateway.

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:
    Property Description
    gateway.port name

    $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,,where hadoop is the context path.

  2. Restart the gateway: cd $gateway.bin/ stop bin/ start.
    The gateway loads the new configuration on startup.