To configure access to an internal Hadoop service through the Knox Gateway:
Add the following
servicefor each Hadoop service to the/etc/knox/conf/topologies:$cluster-name.xml<topology> <gateway> ... </gateway> <service> <role>$service_name</role> <url>$schema://$hostname:$port</url> </service> </topology>where:
$service_nameis either WEBHDFS, WEBHCAT, WEBHBASE, OOZIE, HIVE, NAMENODE, or JOBTRACKER.url is complete internal cluster URL required to access the service including the following:
$schemais the service protocol.$hostnameis the resolvable internal host name.$portis port the service listening port.
Save the file.
The gateway creates a new WAR file with modified timestamp in
/var/lib/knox/data/deployments.

