You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Christian Kadner (JIRA)" <ji...@apache.org> on 2015/10/27 05:26:27 UTC
[jira] [Created] (SPARK-11338) HistoryPage not multi-tenancy
enabled (app links not prefixed with APPLICATION_WEB_PROXY_BASE)
Christian Kadner created SPARK-11338:
----------------------------------------
Summary: HistoryPage not multi-tenancy enabled (app links not prefixed with APPLICATION_WEB_PROXY_BASE)
Key: SPARK-11338
URL: https://issues.apache.org/jira/browse/SPARK-11338
Project: Spark
Issue Type: Bug
Components: Web UI
Reporter: Christian Kadner
Links on {{HistoryPage}} are not prepended with {{uiRoot}} ({{export APPLICATION_WEB_PROXY_BASE=<uiRoot path>}}). This makes it impossible/unpractical to expose the *History Server* in a multi-tenancy environment where each Spark service instance has one history server behind a multi-tenant enabled proxy server. All other Spark web UI pages are correctly prefixed when the {{APPLICATION_WEB_PROXY_BASE}} variable is set.
*Repro steps:*\\
# Configure history log collection:
{code:title=conf/spark-defaults.conf|borderStyle=solid}
spark.eventLog.enabled true
spark.eventLog.dir logs/history
spark.history.fs.logDirectory logs/history
{code}
...create the logs folders:
{code}
$ mkdir -p logs/history
{code}
# Start the Spark shell and run the word count example:
{code:java|borderStyle=solid}
$ bin/spark-shell
...
scala> sc.textFile("README.md").flatMap(_.split(" ")).map(w => (w, 1)).reduceByKey(_ + _).collect
scala> sc.stop
{code}
# Set the web proxy root path path ({{/testwebuiproxy/..}}):
{code}
$ export APPLICATION_WEB_PROXY_BASE=/testwebuiproxy/..
{code}
# Start the history server:
{code}
$ sbin/start-history-server.sh
{code}
# Bring up the History Server web UI at {{localhost:18080}} and view the application link in the HTML source text:
{code:xml|borderColor=#c00}
...
<thead><th width="" class="">App ID</th><th width="" class="">App Name</th>...</thead>
<tbody>
<tr>
<td><a href="/history/local-1445896187531">local-1445896187531</a></td><td>Spark shell</td>
...
{code}
*Notice*, application link does _not_ have the prefix {{/testwebuiproxy/..}} \\ \\
All site-relative links (URL starting with {{"/"}}) should have been prepended with the uiRoot prefix {color:red}{{/testwebuiproxy/..}}{color} like this ...
{code:xml|borderColor=#0c0}
...
<thead><th width="" class="">App ID</th><th width="" class="">App Name</th>...</thead>
<tbody>
<tr>
<td><a href="/testwebuiproxy/../history/local-1445896187531">local-1445896187531</a></td><td>Spark shell</td>
...
{code}
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org