To configure access to an internal Hadoop service through the Knox Gateway:
Add the following
service
for 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_name
is either WEBHDFS, WEBHCAT, WEBHBASE, OOZIE, HIVE, NAMENODE, or JOBTRACKER.url is complete internal cluster URL required to access the service including the following:
$schema
is the service protocol.$hostname
is the resolvable internal host name.$port
is port the service listening port.
Save the file.
The gateway creates a new WAR file with modified timestamp in
/var/lib/knox/data/deployments
.