-
Notifications
You must be signed in to change notification settings - Fork 945
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
MAHOUT-1999 Multi artifact build #350
Conversation
@rawkintrevo Which build command should we be testing? |
distribution/pom.xml
Outdated
@@ -39,6 +39,131 @@ | |||
<artifactId>exec-maven-plugin</artifactId> | |||
<version>1.1.1</version> | |||
<executions> | |||
<!-- Various Scalas --> | |||
<execution> |
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.
not getting viennacl(S)
with mvn clean install -Pdistribution
(though maybe this is not needed? looks like its is only in the package
arg. Doesn't seem like an issue- but raising point.
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.
Checked again with mvn clean package -Pdistribution
:
mvn clean package -Pdistribution
[INFO] Scanning for projects...
{...}
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING] The expression ${version} is deprecated. Please use ${project.version} instead.
[WARNING]
[WARNING] It is highly recommended to fix these problems because they threaten the stability of your build.
[WARNING]
[WARNING] For this reason, future Maven versions might no longer support building such malformed projects.
[WARNING]
[INFO] ------------------------------------------------------------------------
[INFO] Reactor Build Order:
[INFO]
[INFO] Mahout Build Tools
[INFO] Apache Mahout
[INFO] Mahout Math
[INFO] Mahout HDFS
[INFO] Mahout Map-Reduce
[INFO] Mahout Integration
[INFO] Mahout Examples
[INFO] Mahout Math Scala bindings
[INFO] Mahout Spark bindings
[INFO] Mahout H2O backend
[INFO] Mahout Release Package
No viennacl
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.
builds cleanly for scala-2.11.6
:
mvn clean install -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl -DskipTests
running tests now..
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.
all tests pass for me with mvn clean install -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl -DskipTests && mvn test -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl
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.
mvn clean install -Pviennacl,viennacl-omp,distribution
There are executions to pick up multiple scala versions of both in Pdistribution
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.
👍
distribution/pom.xml
Outdated
@@ -39,6 +39,131 @@ | |||
<artifactId>exec-maven-plugin</artifactId> | |||
<version>1.1.1</version> | |||
<executions> | |||
<!-- Various Scalas --> | |||
<execution> |
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.
builds cleanly for scala-2.11.6
:
mvn clean install -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl -DskipTests
running tests now..
pom.xml
Outdated
@@ -586,7 +586,7 @@ | |||
<version>2.5.2</version> | |||
<configuration> | |||
<useReleaseProfile>true</useReleaseProfile> | |||
<releaseProfiles>mahout-release,apache-release,hadoop2</releaseProfiles> | |||
<releaseProfiles>distribution,mahout-release,apache-release,hadoop2</releaseProfiles> |
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.
Add viennacl-omp here?
this would kick off bothviennacl
, and viennacl-omp
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.
yes I think it's reasonable to do that.
pom.xml
Outdated
<profile> | ||
<id>distribution</id> | ||
<activation> | ||
<activeByDefault>true</activeByDefault> |
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.
this, I would think should default to false.
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.
agreed updated
distribution/pom.xml
Outdated
@@ -39,6 +39,131 @@ | |||
<artifactId>exec-maven-plugin</artifactId> | |||
<version>1.1.1</version> | |||
<executions> | |||
<!-- Various Scalas --> | |||
<execution> |
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.
all tests pass for me with mvn clean install -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl -DskipTests && mvn test -Dscala.compat.version=2.11 -Dscala.version=2.11.6 -Pviennacl
We need a matrix if profiles and important -D options, also what is the default, IMO is should be Spark 2.1 at least and Scala 2.11, these are reasonably recent CDH distros and are forward compatible with Spark 2.3 with Hadoop 2.8, which is what I'm running (as opposed to building for).
tests running... |
BTW if this works I'll test the speedup PR too and merge it. Only my test app needed Scala 2.11, the speedup doesn't care. |
-Dspark.version=spark-2.2.0 failed 2.2.0 is the default download from the Spark site. Trying |
Hmm |
Hmm got the wrong branch, missed "-b" |
This tests out for me. Merge away |
all scalas, viennacls, distribution optional responded to apalumbo's comments on PR350 bad scala versions spark-style scala switch, docs, etc change scala version back to 2.10 travis scala version
22a0113
to
e7d6ee6
Compare
Purpose of PR:
Build multiple binaries of spark in one maven shot.
The issues surrounding SBT wrt MAHOUT-2020 continue, however the produced artifacts work fine for maven builds, as well as console/Zeppelin integrations.
In short- the distribution module executes
mvn package
twice more, with Scala-2.11/SPark-2.0 and Scala-2.11/SPark-2.1 switches.Important ToDos
Please mark each with an "x"
If all of these things aren't complete, but you still feel it is
appropriate to open a PR, please add [WIP] after MAHOUT-XXXX before the
descriptions- e.g. "MAHOUT-XXXX [WIP] Description of Change"
Does this change break earlier versions?
Is this the beginning of a larger project for which a feature branch should be made?