Support Questions

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

Knox UI Mapping Problem - ResourceManager Web UI

avatar
Contributor

I would like to map the ResourceManager Web UI with Knox.

I've set up the topology like:

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

But the browser can't load the .css and .javascript from RM UI. "This page will not function without javascript enabled. Please enable javascript on your browser."

12551-knox-rm-ui.jpg

I'm using Google Chrome but there are the same problems with Internet Explorer.

JavaScript is working and RM UI directly is working as well. Developer Tool from Chrome: Failed to load resource: the server responded with a status of 404 (Not Found)

Same Problems with NameNode UI.

Can somebody help me please, or are there known problems?

Thanks, Andreas

16 REPLIES 16

avatar
Contributor

/gateway/default/static/... shouldn't exist, knox rewrites the /static/... from the namenode to /gateway/default/hdfs/static/... on the way to you and does the opposite transform on the way to the namenode.

avatar
Contributor

Hello Andreas, Looks like I am in a similar situation as yours. Oozie & hive are working but yarn, Ambari & Ranger UI are failing with 404. Did you manage to solve the issue. Can you please guide on the steps. Thank you.

avatar
Explorer

Hello @Andreas Schild

Hope you finally solve the issue.

If not i faced the same; here is what i did to solve it :

- i found that the file /usr/hdp/current/knox-server/data/services/hdfsui/2.7.0/rewrite.xml was not changing the url (according to https://xxx:8443/gateway/default/hdfs/static/jquery) for jquery files instead you have https://xxx:8443/static/jquery. It is shown in the below screenshots :

namenode-information-google-chrome-2.jpg

namenode-information-google-chrome.jpg

- So to solve it, i manually add missing files in rewrite.xml according to this know bug https://issues.apache.org/jira/browse/KNOX-765

Regards

Donald F.

avatar
Contributor

Hi @dfossouo,

at first, thank you for your answer and your informations.

No, it doesn't work. We had several open cases at Hortonworks but nobody found a solution for it. We also have this problem with YARN UI and Zeppelin UI. I tried to add the missing files in the rewrite.xml but it's still the same issue.

Thanks & Regards,

Andreas

avatar
New Contributor

Hi @Andreas Schild,

I am not able to curl from the name node, Please suggest what could be the issue.

[user@DEVEDGENODE$ curl -i http://<namenode>:50070/static/bootstrap-3.0.2/js/bootstrap.min.js curl: (7) Failed connect to <namenode>:50070; Connection refused

Please suggest

avatar
Super Collaborator
<namenode>

is the issue

avatar
Explorer

CDH-6.2 nginx for proxy namenode, same issue

tencentemr_0-1667205341820.png