Then it would fail...

This will actually be refactored in the following way shortly - Each SparkUI will take in as its argument a Jetty server and simply act as a handler to that server. Then, we'll have the Master pass its own server (the one that hosts the Master UI on port 8080) to the SparkUI. With this change, the rebuilt SparkUI will always be hosted on the Master node.