Hi,

I am following
https://community.hortonworks.com/articles/81713/configure-knox-to-access-hdfs-ui.html
to expose hdfs ui via knox.

I have tested that all below curl commands worked:

on namenode:
curl http://localhost:50070/
curl http://localhost:50070/dfshealth.html

on a random machine:
curl -vvv -k -u guest:"{PASSWORD}" https://{DOMAIN}/gateway/ui/hdfs

However, in web browser, https://{DOMAIN}/gateway/ui/hdfs is redirected to
https://{DOMAIN}/gateway/ui/dfshealth.html which is not available. I
observed that
/var/lib/knox/data-2.6.4.0-91/services/hdfsui/2.7.0/rewrite.xml already has:

<rule dir="IN" name="HDFSUI/hdfs/inbound/namenode/dfs"
pattern="*://*:*/**/hdfs/dfshealth.html">
    <rewrite template="{$serviceUrl[HDFSUI]}/dfshealth.html"/>
  </rule>

what else do I need to do make hdfs ui work via knox? Appreciate any clue.

Reply via email to