diff options
author | Mridul Muralidharan <mridul@gmail.com> | 2013-04-07 17:47:38 +0530 |
---|---|---|
committer | Mridul Muralidharan <mridul@gmail.com> | 2013-04-07 17:47:38 +0530 |
commit | 6798a09df84fb97e196c84d55cf3e21ad676871f (patch) | |
tree | 0d0f16518dfcfcdc10fd60ce49c860ed9bfc8c25 /examples | |
parent | 9831bc1a09fa7fd56f55c3df4f448bc37b3d7d9a (diff) | |
download | spark-6798a09df84fb97e196c84d55cf3e21ad676871f.tar.gz spark-6798a09df84fb97e196c84d55cf3e21ad676871f.tar.bz2 spark-6798a09df84fb97e196c84d55cf3e21ad676871f.zip |
Add support for building against hadoop2-yarn : adding new maven profile for it
Diffstat (limited to 'examples')
-rw-r--r-- | examples/pom.xml | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/examples/pom.xml b/examples/pom.xml index 39cc47c709..9594257ad4 100644 --- a/examples/pom.xml +++ b/examples/pom.xml @@ -118,5 +118,48 @@ </plugins> </build> </profile> + <profile> + <id>hadoop2-yarn</id> + <dependencies> + <dependency> + <groupId>org.spark-project</groupId> + <artifactId>spark-core</artifactId> + <version>${project.version}</version> + <classifier>hadoop2-yarn</classifier> + </dependency> + <dependency> + <groupId>org.spark-project</groupId> + <artifactId>spark-streaming</artifactId> + <version>${project.version}</version> + <classifier>hadoop2-yarn</classifier> + </dependency> + <dependency> + <groupId>org.apache.hadoop</groupId> + <artifactId>hadoop-client</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.hadoop</groupId> + <artifactId>hadoop-yarn-api</artifactId> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.hadoop</groupId> + <artifactId>hadoop-yarn-common</artifactId> + <scope>provided</scope> + </dependency> + </dependencies> + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-jar-plugin</artifactId> + <configuration> + <classifier>hadoop2-yarn</classifier> + </configuration> + </plugin> + </plugins> + </build> + </profile> </profiles> </project> |