Configuring Proxy with Apache Knox
Also available as:
PDF
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
    property
    gateway.port name

    $gateway_port is the HTTP port for the gateway (default port=8443)

    gateway.port

    $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.