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

Set Up a Hostmap Provider

How to add the hostmap provider to the cluster topology descriptor and a parameter for each DataNode in the cluster.

  1. Open the cluster topology descriptor file, $cluster-name.xml, in a text editor.
  2. Add the Hostmap provider totopology/gateway using the following format:
    • $cluster-name.xml is the name of the topology descriptor file, located in $gateway /conf/topologies.
    • $external-name is the value that the gateway uses to replace $internal_host host names in responses.
    • $internal-dn-host is a comma-separated list of host names that the gateway will replace when rewriting responses.
  3. To the hostmap provider, add a param for each additional DataNode in your cluster:
  4. Save the file.
    Saving the results automatically deploys the topology with the change. The result is the creation of a new WAR file with modified timestamp in $gatewaydir/data/deployments.