Setting up Hadoop Service URLs
To configure access to an internal Hadoop service through the Knox Gateway:
Edit
$gateway/conf/topologies$cluster-name.xmlto add an entry similar to the following, for each Hadoop service:<topology> <gateway> ... </gateway> <service> <role> $service_name </role> <url> $schema://$hostname:$port</url> </service> </topology>where:
$service_nameis: AMBARI, AMBARIUI, HIVE, JOBTRACKER, NAMENODE, OOZIE, RANGER, RANGERUI, RESOURCEMANAGER, WEBHBASE, WEBHCAT, WEBHDFS, ZEPPELINUI, or ZEPPELINWS.<url>is the complete internal cluster URL required to access the service, including:$schema-- the service protocol$hostname-- the resolvable internal host name$port-- the service listening port
Save the file.
The gateway creates a new WAR file with modified timestamp in
$gateway/data/deployments.![[Note]](../common/images/admon/note.png)
Note It is not necessary to restart the Knox server after making changes to the topology/Hadoop Cluster services.

