Skip to content

Commit 97ac045

Browse files
committed
Merge pull request apache#19 from mesosphere/sur-dispatcher
[SPARK-213] dispatcher: serve dispatcher at /, remove html UI
2 parents b74b4bb + 1800408 commit 97ac045

File tree

5 files changed

+4
-24
lines changed

5 files changed

+4
-24
lines changed

docker/Dockerfile

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,6 @@ ADD hadoop/* /etc/hadoop/
4343
ADD runit/service /var/lib/runit/service
4444
ADD runit/init.sh /sbin/init.sh
4545
ADD nginx /etc/nginx
46-
ADD html /usr/share/nginx/html
47-
RUN chmod 644 /usr/share/nginx/html/*
4846

4947
#RUN ln -sf /usr/lib/libmesos.so /usr/lib/libmesos-0.23.1.so
5048

docker/html/index.html

Lines changed: 0 additions & 14 deletions
This file was deleted.

docker/nginx/conf.d/spark.conf.template

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,6 @@ server {
99
#https# ssl_certificate spark.crt;
1010
#https# ssl_certificate_key spark.key;
1111

12-
root /usr/share/nginx/html;
13-
index index.html;
14-
1512
location /v1 {
1613
proxy_pass <DISPATCHER_URL>;
1714

@@ -26,8 +23,7 @@ server {
2623
proxy_read_timeout 600s;
2724
}
2825

29-
location /dispatcher/ {
30-
proxy_redirect http://$host $scheme://$host/dispatcher;
26+
location / {
3127
proxy_pass <DISPATCHER_UI_URL>/;
3228
proxy_set_header Host $host;
3329
}

docker/runit/init.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ fi
1717

1818
export WEBUI_URL="${SCHEME}://${FRAMEWORK_NAME}${DNS_SUFFIX}:${SPARK_PROXY_PORT}"
1919
export HISTORY_SERVER_WEB_PROXY_BASE="/service/${FRAMEWORK_NAME}/history"
20-
export DISPATCHER_UI_WEB_PROXY_BASE="/service/${FRAMEWORK_NAME}/dispatcher"
20+
export DISPATCHER_UI_WEB_PROXY_BASE="/service/${FRAMEWORK_NAME}"
2121

2222
# configure history server
2323
if [ "${ENABLE_HISTORY_SERVER:=false}" = "true" ]; then

package/marathon.json.mustache

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,10 +49,10 @@
4949
{
5050
{{#spark.ssl.enabled}}
5151
"protocol": "COMMAND",
52-
"command": { "value": "curl -f -k https://$HOST:$PORT3/dispatcher/" },
52+
"command": { "value": "curl -f -k https://$HOST:$PORT3/" },
5353
{{/spark.ssl.enabled}}
5454
{{^spark.ssl.enabled}}
55-
"path": "/dispatcher/",
55+
"path": "/",
5656
"portIndex": 3,
5757
"protocol": "HTTP",
5858
{{/spark.ssl.enabled}}

0 commit comments

Comments
 (0)