You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@knox.apache.org by "Gaurav Nagar (JIRA)" <ji...@apache.org> on 2017/04/01 03:27:42 UTC

[jira] [Commented] (KNOX-917) Knox Proxy - Pig view fails to load when using ambari thru KNOX

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

Gaurav Nagar commented on KNOX-917:
-----------------------------------

[~moresandeep]  Thanks for looking at it.
Pig view has problem with url formation when knox proxy is used. Ambari side changes is tracked in AMBARI-20641. With both the patches in Pig view should work.
There is no screenshot attached as mentioned in above comment. With this patch, Pig view app.js is should get rewritten as below : 
*api/v1/<url>* ==> */gateway/default/ambari/api/v1/<url>*

> Knox Proxy - Pig view fails to load when using ambari thru KNOX
> ---------------------------------------------------------------
>
>                 Key: KNOX-917
>                 URL: https://issues.apache.org/jira/browse/KNOX-917
>             Project: Apache Knox
>          Issue Type: Bug
>          Components: Server
>            Reporter: Gaurav Nagar
>         Attachments: KNOX-917-001.patch
>
>
> Problem seems to be caused by pig view java scripts making async postbacks to context that is not being handled by knox.
> Direct url without Knox: 
> http://<host>:8080/#/main/views/PIG/1.0.0/PIG 
> working script url: 
> http://<host>:8080/api/v1/views/PIG/versions/1.0.0/instances/PIG/scripts?_=1482263718137
> Knox url 
> https://<host>:8443/gateway/default/ambari/#/main/views/PIG/1.0.0/ 
> 404 link url: 
> https://<host>:8443/api/v1/views/default/versions/ambari/instances/views/scripts?_=1482263506651
> There are few more 404 links broken following same pattern as the above one.



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)