GitHub user srowen opened a pull request:

    https://github.com/apache/spark/pull/906

    SPARK-1949. Servlet 2.5 vs 3.0 conflict in SBT build

    Kay Ousterhout mentioned that:
    
    ```
    I had some trouble compiling an application (Shark) against Spark 1.0,
    where Shark had a runtime exception (at the bottom of this message) because
    it couldn't find the javax.servlet classes. SBT seemed to have trouble
    downloading the servlet APIs that are dependencies of Jetty (used by the
    Spark web UI), so I had to manually add them to the application's build
    file:
    
    libraryDependencies += "org.mortbay.jetty" % "servlet-api" % "3.0.20100224"
    
    Not exactly sure why this happens but thought it might be useful in case
    others run into the same problem.
    ```
    
    This is a symptom of Servlet API conflict which we battled in the Maven 
build. The resolution is to nix Servlet 2.5 and odd old Jetty / Netty 3.x 
dependencies. It looks like the Hive part of the assembly in the SBT build 
doesn't exclude all these entirely.

You can merge this pull request into a Git repository by running:

    $ git pull https://github.com/srowen/spark SPARK-1949

Alternatively you can review and apply these changes as the patch at:

    https://github.com/apache/spark/pull/906.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 #906
    
----
commit 5d8728e7981309ba26a07d8fc774fb92c9a5e5ea
Author: Sean Owen <[email protected]>
Date:   2014-05-28T16:30:01Z

    Exclude old mortbay.jetty from Hadoop deps, and exclude from Hive much of 
the same stuff that's excluded from Hadoop

----


---
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.
---

Reply via email to