GitHub user andrewor14 opened a pull request:
https://github.com/apache/spark/pull/163
[SPARK-1265] Fix 404 error from Jetty 9 upgrade
We recently upgraded Jetty from v7.6.8 to v9.1.3. This introduced a 404 not
found HTTP error when accessing the root of any UI.
The problem is that the existing code attaches two handlers to the root,
one of which is a handler for static resources. In Jetty 9.1.3, we are no
longer allowed to do this. Instead, we are supposed to use ResourceHandler
rather than ServletContextHandler for serving static resources:
http://stackoverflow.com/questions/10284584/serving-static-files-w-embedded-jetty.
Note that this means we can no longer apply filters to static resources,
since our handler for static resources has no notion of servlets. This is
largely not a big problem, since static resources are not specific to the
application.
You can merge this pull request into a Git repository by running:
$ git pull https://github.com/andrewor14/spark jetty-fix
Alternatively you can review and apply these changes as the patch at:
https://github.com/apache/spark/pull/163.patch
To close this pull request, make a commit to your master/trunk branch
with (at least) the following in the commit message:
This closes #163
----
commit fc077d9d16d2f04f13a119f1b04fdc9388c86417
Author: Andrew Or <[email protected]>
Date: 2014-03-18T02:40:18Z
For static resources, use ResourceHandler instead of servlets
----
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---