[ 
https://issues.apache.org/jira/browse/KNOX-626?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15047372#comment-15047372
 ] 

Sumit Gupta edited comment on KNOX-626 at 12/8/15 7:57 PM:
-----------------------------------------------------------

After debugging it turns out that the issue was having this in my topology file:

{code}
        <provider>
            <role>identity-assertion</role>
            <name>Default</name>
            <enabled>true</enabled>
        </provider>
{code}

The identity assertion request wrapper is messing up the query string for the 
/jmx/* calls made on the Namenode UI main page. The responses all come back 
with empty json instead of failing, so it is even harder to detect. 

For example:

https://localhost:8443/gateway/sandbox/hdfs/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo

becomes this after the identity assertion provider:

http://sandbox.hortonworks.com:50070/jmx?user.name=guest&qry=NameNodeInfo

Disabling the identity-assertion provider eliminates the issue. This is 
certainly a bug that needs further investigation.


was (Author: sumit.gupta):
After debugging it turns out that the issue was having this in my topology file:

{code}
        <provider>
            <role>identity-assertion</role>
            <name>Default</name>
            <enabled>true</enabled>
        </provider>
{code}

The identity assertion request wrapper is messing up the query string for the 
/jmx/* calls made on the Namenode UI main page. The responses all come back 
with empty json instead of failing, so it is even harder to detect. 

For example:

https://localhost:8443/gateway/sandbox/hdfs/jmx?qry=Hadoop:service=NameNode,name=NameNodeInfo

is rewritten as 

http://sandbox.hortonworks.com:50070/jmx?user.name=guest&qry=NameNodeInfo

Disabling the identity-assertion provider eliminates the issue. This is 
certainly a bug that needs further investigation.

> NameNode UI through Knox has various tabs not working
> -----------------------------------------------------
>
>                 Key: KNOX-626
>                 URL: https://issues.apache.org/jira/browse/KNOX-626
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>    Affects Versions: 0.7.0
>            Reporter: Sumit Gupta
>            Assignee: Sumit Gupta
>             Fix For: 0.7.0
>
>
> When using the HDFSUI service, the proxied NameNode UI does not function 
> correctly for the following tabs, Overview, Datanodes, Datanode volume 
> failures and Snapshot. 
> The message 'NameNode is still loading. Redirecting to the Startup Progress 
> page.' appears on the default page and the Startup Progress tab is seen. The 
> Utilities and File Browsing seem to work well.
> example service config in topology
> {code}
> <service>
>         <role>HDFSUI</role>
>         <url>http://localhost:50070/</url>
> </service>
> {code}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to