diff options
author | Marcelo Vanzin <vanzin@cloudera.com> | 2014-10-07 23:26:24 -0700 |
---|---|---|
committer | Patrick Wendell <pwendell@gmail.com> | 2014-10-07 23:26:24 -0700 |
commit | 35afdfd624fe19ce0c009cf065bb6794ee68e181 (patch) | |
tree | d88c0c726176eb0e539203271e5d774825764773 /yarn/stable | |
parent | c7818434fa8ae8e02a0d66183990077a4ba1436c (diff) | |
download | spark-35afdfd624fe19ce0c009cf065bb6794ee68e181.tar.gz spark-35afdfd624fe19ce0c009cf065bb6794ee68e181.tar.bz2 spark-35afdfd624fe19ce0c009cf065bb6794ee68e181.zip |
[SPARK-3710] Fix Yarn integration tests on Hadoop 2.2.
It seems some dependencies are not declared when pulling the 2.2
test dependencies, so we need to add them manually for the Yarn
cluster to come up.
These don't seem to be necessary for 2.3 and beyond, so restrict
them to the hadoop-2.2 profile.
Author: Marcelo Vanzin <vanzin@cloudera.com>
Closes #2682 from vanzin/SPARK-3710 and squashes the following commits:
701d4fb [Marcelo Vanzin] Add comment.
0540bdf [Marcelo Vanzin] [SPARK-3710] Fix Yarn integration tests on Hadoop 2.2.
Diffstat (limited to 'yarn/stable')
-rw-r--r-- | yarn/stable/pom.xml | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/yarn/stable/pom.xml b/yarn/stable/pom.xml index 97eb0548e7..fe55d70ccc 100644 --- a/yarn/stable/pom.xml +++ b/yarn/stable/pom.xml @@ -41,4 +41,55 @@ </dependency> </dependencies> + <!-- + See SPARK-3710. hadoop-yarn-server-tests in Hadoop 2.2 fails to pull some needed + dependencies, so they need to be added manually for the tests to work. + --> + <profiles> + <profile> + <id>hadoop-2.2</id> + <properties> + <jersey.version>1.9</jersey.version> + </properties> + <dependencies> + <dependency> + <groupId>org.mortbay.jetty</groupId> + <artifactId>jetty</artifactId> + <version>6.1.26</version> + <exclusions> + <exclusion> + <groupId>org.mortbay.jetty</groupId> + <artifactId>servlet-api</artifactId> + </exclusion> + </exclusions> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.sun.jersey</groupId> + <artifactId>jersey-core</artifactId> + <version>${jersey.version}</version> + <scope>test</scope> + </dependency> + <dependency> + <groupId>com.sun.jersey</groupId> + <artifactId>jersey-json</artifactId> + <version>${jersey.version}</version> + <scope>test</scope> + <exclusions> + <exclusion> + <groupId>stax</groupId> + <artifactId>stax-api</artifactId> + </exclusion> + </exclusions> + </dependency> + <dependency> + <groupId>com.sun.jersey</groupId> + <artifactId>jersey-server</artifactId> + <version>${jersey.version}</version> + <scope>test</scope> + </dependency> + </dependencies> + </profile> + </profiles> + </project> |