-
Notifications
You must be signed in to change notification settings - Fork 29k
Improved build configuration #480
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from 8 commits
6851bec
0c6c1fc
99464d2
06e7328
cf46edc
934f24d
1a162d7
62d0862
77fad08
e345919
d1718ed
0da4bc3
6902c91
7382a07
bee920d
b452680
03f652f
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -39,6 +39,9 @@ For Apache Hadoop versions 1.x, Cloudera CDH MRv1, and other Hadoop versions wit | |
| # Cloudera CDH 4.2.0 with MapReduce v1 | ||
| $ mvn -Dhadoop.version=2.0.0-mr1-cdh4.2.0 -DskipTests clean package | ||
|
|
||
| # Apache Hadoop 0.23.x | ||
| $ mvn -Phadoop-0.23 -Dhadoop.version=0.23.7 -DskipTests clean package | ||
|
|
||
| For Apache Hadoop 2.x, 0.23.x, Cloudera CDH MRv2, and other Hadoop versions with YARN, you should enable the "yarn-alpha" or "yarn" profile and set the "hadoop.version", "yarn.version" property: | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. now that we support building without YARN... this should say "you can enable" instead of "you should enable" |
||
|
|
||
| # Apache Hadoop 2.0.5-alpha | ||
|
|
@@ -50,6 +53,9 @@ For Apache Hadoop 2.x, 0.23.x, Cloudera CDH MRv2, and other Hadoop versions with | |
| # Apache Hadoop 2.2.X ( e.g. 2.2.0 as below ) and newer | ||
| $ mvn -Pyarn -Dhadoop.version=2.2.0 -Dyarn.version=2.2.0 -DskipTests clean package | ||
|
|
||
| # Apache Hadoop 0.23.x | ||
| $ mvn -Pyarn-alpha -Phadoop-0.23 -Dhadoop.version=0.23.7 -Dyarn.version=0.23.7 -DskipTests clean package | ||
|
|
||
| ## Spark Tests in Maven ## | ||
|
|
||
| Tests are run by default via the [ScalaTest Maven plugin](http://www.scalatest.org/user_guide/using_the_scalatest_maven_plugin). Some of the require Spark to be packaged first, so always run `mvn package` with `-DskipTests` the first time. You can then run the tests with `mvn -Dhadoop.version=... test`. | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -31,20 +31,6 @@ | |
| <name>Spark Project Examples</name> | ||
| <url>http://spark.apache.org/</url> | ||
|
|
||
| <profiles> | ||
| <profile> | ||
| <!-- SPARK-1121: SPARK-1121: Adds an explicit dependency on Avro to work around | ||
| a Hadoop 0.23.X issue --> | ||
| <id>yarn-alpha</id> | ||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.avro</groupId> | ||
| <artifactId>avro</artifactId> | ||
| </dependency> | ||
| </dependencies> | ||
| </profile> | ||
| </profiles> | ||
|
|
||
| <dependencies> | ||
| <dependency> | ||
| <groupId>org.apache.spark</groupId> | ||
|
|
@@ -124,6 +110,10 @@ | |
| <groupId>commons-logging</groupId> | ||
| <artifactId>commons-logging</artifactId> | ||
| </exclusion> | ||
| <exclusion> | ||
|
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This might be a good idea but what's the motivation?
Contributor
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. The jar is very big, there are 12m.
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Sounds good. Spark doesn't use JRuby directly and I can't imagine how it uses it indirectly. Then again, this is just in the |
||
| <groupId>org.jruby</groupId> | ||
| <artifactId>jruby-complete</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I see what you're doing, to lift these dependencies up into the parent, but they will then be applied to all modules. Is that desirable -- which modules now have this dependency that didn't before, or are there none?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It exists in almost all modules should be referred to the parent.