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

Marco Gaido commented on KNOX-1160:
-----------------------------------

Thanks for your answer [~weihan]. Yes, sure. Let's say you are accessing SHS 
through Knox proxy and the URL you are using is 
{{https://knoxgateway:8443/gateway/default/sparkhistory/}}. I this case you 
have to add in your env variable {{SPARK_HISTORY_OPTS}} the value 
{{-Dspark.ui.proxyBase=/gateway/default/sparkhistory}}. So, you have to add 
something like {{export SPARK_HISTORY_OPTS="$SPARK_HISTORY_OPTS 
-Dspark.ui.proxyBase=/gateway/default/sparkhistory" in your spark-env. Please, 
as I am pretty sure by your patch that you are using a Spark version affected 
by SPARK-23644, do always put the end "/" at the URL when accessing it.

As a side note, with this patch there may also be problems when accessing the 
individual applications UIs, as they are all based on the value of 
{{spark.ui.proxyBase}} and I saw no rewrite rule for those other paths. Maybe 
it is not needed anything more, but it should be checked very carefully, as we 
may have broken other links there.

[~weihan] [~lmccay] [~smore] if we all agree, I'd propose to revert this as of 
now for the many problems described. After that, if [~weihan] is interested in 
this work, maybe he can propose a new patch using versioning which introduces 
the rewrite rules only for versions <= 2.3.0, after fixing the issue introduced 
(like the logs link broken and checking also all the possible tabs in the 
single application UIs). Let me know what you think about this. Thanks.

> Bug fixes to make spark history UI work
> ---------------------------------------
>
>                 Key: KNOX-1160
>                 URL: https://issues.apache.org/jira/browse/KNOX-1160
>             Project: Apache Knox
>          Issue Type: Bug
>            Reporter: Wei Han
>            Priority: Minor
>             Fix For: 1.1.0
>
>         Attachments: sparkhistoryui.patch
>
>
> During my test of the spark history UI I found a couple of issues. The 
> attached patch fixes all of the issues I have seen



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to