Security
Also available as:
PDF
loading table of contents...

Setting up Hadoop Service URLs

To configure access to an internal Hadoop service through the Knox Gateway:

  1. Edit $gateway/conf/topologies$cluster-name.xml to 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_name is either WEBHDFS, WEBHCAT, WEBHBASE, OOZIE, HIVE, NAMENODE, AMBARI, AMBARIUI, RANGER. AMBARIUI, or JOBTRACKER.

    • <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

  2. Save the file.

    The gateway creates a new WAR file with modified timestamp in $gateway/data/deployments.

    [Note]Note

    It is not necessary to restart the Knox server after making changes to the topology/Hadoop Cluster services.