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.
-
Open the cluster topology descriptor file,
$cluster-name.xml, in a text editor. -
Add the Hostmap provider to
topology/gatewayusing the following format:<provider> <role>hostmap</role> <name>static</name> <enabled>true</enabled> <param> <name>$external-name</name> <value>$internal-dn-host</value> </param> </provider>where:$cluster-name.xmlis the name of the topology descriptor file, located in $gateway /conf/topologies.$external-nameis the value that the gateway uses to replace $internal_host host names in responses.$internal-dn-hostis a comma-separated list of host names that the gateway will replace when rewriting responses.
-
To the
hostmapprovider, add aparamfor each additional DataNode in your cluster:<param> <name>$external-name2</name> <value>$internal-dn2-host</value> </param> -
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.

