Support Questions

Find answers, ask questions, and share your expertise
Announcements
Celebrating as our community reaches 100,000 members! Thank you!

How to access the YARN UI through knox default gateway port 8443?

avatar
Explorer
 
1 ACCEPTED SOLUTION

avatar
Expert Contributor

@Prasad T Please use the xml code below and create a topology file in /etc/knox/conf/topologies directory and replace the YARN_HOSTNAME and YARN_PORT with relevant values. If your newly created topology is named ui.xml, you can access the YARN UI using Web URL: https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/

 <topology>
    <gateway>
        <provider>
            <role>authentication</role>
            <name>Anonymous</name>
            <enabled>true</enabled>
        </provider>
        <provider>
            <role>identity-assertion</role>
            <name>Default</name>
            <enabled>false</enabled>
        </provider>
    </gateway>
   <service>
        <role>YARN</role>
        <url>http://<YARN_HOSTNAME>:<YARN_PORT></url>
    </service>
    <service>
        <role>YARNUI</role>
        <url>http://<YARN_HOSTNAME>:<YARN_PORT></url>
    </service>
</topology>

View solution in original post

4 REPLIES 4

avatar

@Prasad T

You need to configure your Knox topology and add YARNUI service snippet

E.g

<service>
    <role>YARNUI</role>
    <url>http://sandbox.hortonworks.com:8088</url>
</service>

This is a official documentation. The changes should be applied automatically.

With all the other settings unchanged the service has to be accessible from a URL scheme like:

https://{gateway-host}:{gateway-port}/{gateway-path}/{cluster-name}/yarn 

E.g.

https://10.0.0.1:8443/gateway/hdc/yarn/

Hope this helps!

avatar
Expert Contributor

We need another service entry with role "YARN" as well with same url. Also in URL scheme, "hdc" is not cluster-name but topology name.

avatar
Expert Contributor

@Prasad T Please use the xml code below and create a topology file in /etc/knox/conf/topologies directory and replace the YARN_HOSTNAME and YARN_PORT with relevant values. If your newly created topology is named ui.xml, you can access the YARN UI using Web URL: https://KNOX_HOST:KNOX_PORT/gateway/ui/yarn/

 <topology>
    <gateway>
        <provider>
            <role>authentication</role>
            <name>Anonymous</name>
            <enabled>true</enabled>
        </provider>
        <provider>
            <role>identity-assertion</role>
            <name>Default</name>
            <enabled>false</enabled>
        </provider>
    </gateway>
   <service>
        <role>YARN</role>
        <url>http://<YARN_HOSTNAME>:<YARN_PORT></url>
    </service>
    <service>
        <role>YARNUI</role>
        <url>http://<YARN_HOSTNAME>:<YARN_PORT></url>
    </service>
</topology>

avatar
New Contributor

when i do the above it is asking me username-password when i access the URL..