Support Questions
Find answers, ask questions, and share your expertise
Announcements
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

Yarn app logs through knox

Yarn app logs through knox

Explorer

Trying to view yarn app logs using know on a kerberized cluster.

Getting 404 when clicking on logs, it is trying to go to /gateway/nodemanagerui. Is that a separate topology?

5 REPLIES 5

Re: Yarn app logs through knox

@Theyaa Matti

Nodemanager UI is still not supported at this time. You can probably add the Nodemanager UI to the knox topology but you may experience some issues due to this. Please review the supported components and UI on the following link:

https://docs.hortonworks.com/HDPDocuments/HDP2/HDP-2.6.5/bk_security/content/supported_hadoop_servic...

HTH

*** If you found this answer addressed your question, please take a moment to login and click the "accept" link on the answer.

Re: Yarn app logs through knox

@Theyaa Matti You can try Yarn UI:

<service> <role>YARNUI</role> <url>http://{{rm_host}}:8088/</url> </service>

However this UI is still not supported and we don't recommend to use it specially in production.

Re: Yarn app logs through knox

Explorer

@Felix Albani I have the YARN UI in my topology, but when I click on the logs link for an application I get redirected to /gateway/nodemanagerui, which gives me 404 not found. looking at the folder /usr/hdp/current/knox-server/data/services, I can see there is a service called nodemanagerui, the service.xml file for it looks like below.

<service role="NODEUI" name="nodeui" version="2.7.1">
<routes>
<route path="/node/">
<rewrite apply="NODEUI/node/root" to="response.body"/>
</route>
<route path="/node/**">
<rewrite apply="NODEUI/node/path" to="response.body"/>
</route>
<route path="/node/**?**">
<rewrite apply="NODEUI/node/query" to="response.body"/>
</route>
<route path="/node/conf">
<rewrite apply="NODEUI/configuration" to="response.body"/>
</route>

</routes>
</service>

What is the topology definition for it?

Re: Yarn app logs through knox

Explorer

Thank you Felix, would you have an example on how to add it to the Knox Topology? I tried everything and did not work. The issues is that /gateway/nodemanagerui looks weird to me since all the other Knox urls are /gateway/default/<service>

I appreciate some direction on how to try it out.

Re: Yarn app logs through knox

Explorer

Hi, 
Did you find any solution to your problem because I'm facing the same. I have HDP 2.6.5 with Knox 0.12.0. 

 

Thanks. 

 

 

Don't have an account?
Coming from Hortonworks? Activate your account here