From 92ce8d4849a0341c4636e70821b7be57ad3055b1 Mon Sep 17 00:00:00 2001 From: Gurvinder Singh Date: Thu, 8 Sep 2016 17:20:20 -0700 Subject: [SPARK-15487][WEB UI] Spark Master UI to reverse proxy Application and Workers UI ## What changes were proposed in this pull request? This pull request adds the functionality to enable accessing worker and application UI through master UI itself. Thus helps in accessing SparkUI when running spark cluster in closed networks e.g. Kubernetes. Cluster admin needs to expose only spark master UI and rest of the UIs can be in the private network, master UI will reverse proxy the connection request to corresponding resource. It adds the path for workers/application UIs as WorkerUI: ://master-publicIP:/target/workerID/ ApplicationUI: ://master-publicIP:/target/appID/ This makes it easy for users to easily protect the Spark master cluster access by putting some reverse proxy e.g. https://github.com/bitly/oauth2_proxy ## How was this patch tested? The functionality has been tested manually and there is a unit test too for testing access to worker UI with reverse proxy address. pwendell bomeng BryanCutler can you please review it, thanks. Author: Gurvinder Singh Closes #13950 from gurvindersingh/rproxy. --- pom.xml | 14 ++++++++++++++ 1 file changed, 14 insertions(+) (limited to 'pom.xml') diff --git a/pom.xml b/pom.xml index e6c28977ca..3b3ad39b47 100644 --- a/pom.xml +++ b/pom.xml @@ -338,6 +338,18 @@ ${jetty.version} provided + + org.eclipse.jetty + jetty-proxy + ${jetty.version} + provided + + + org.eclipse.jetty + jetty-client + ${jetty.version} + provided + org.eclipse.jetty jetty-util @@ -2256,6 +2268,8 @@ org.spark-project.spark:unused org.eclipse.jetty:jetty-io org.eclipse.jetty:jetty-http + org.eclipse.jetty:jetty-proxy + org.eclipse.jetty:jetty-client org.eclipse.jetty:jetty-continuation org.eclipse.jetty:jetty-servlet org.eclipse.jetty:jetty-servlets -- cgit v1.2.3