Skip to content
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

[SPARK-3787][BUILD] Assembly jar name is wrong when we build with sbt omitting -Dhadoop.version #3046

Closed
wants to merge 11 commits into from

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Nov 1, 2014

This PR is another solution for When we build with sbt with profile for hadoop and without property for hadoop version like:

sbt/sbt -Phadoop-2.2 assembly

jar name is always used default version (1.0.4).

When we build with maven with same condition for sbt, default version for each profile is used.
For instance, if we build like:

mvn -Phadoop-2.2 package

jar name is used hadoop2.2.0 as a default version of hadoop-2.2.

@SparkQA
Copy link

SparkQA commented Nov 1, 2014

Test build #22675 has finished for PR 3046 at commit f1c90bb.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@liancheng
Copy link
Contributor

Really not an SBT expert here, but this generally LGTM, thanks!

@sarutak
Copy link
Member Author

sarutak commented Nov 5, 2014

@pwendell @ScrapCodes Can you review this PR?

@SparkQA
Copy link

SparkQA commented Nov 10, 2014

Test build #23140 has finished for PR 3046 at commit dd30768.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Nov 18, 2014

Test build #23550 has finished for PR 3046 at commit 50c8676.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 2, 2014

Test build #24058 has finished for PR 3046 at commit 50c8676.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@sarutak sarutak changed the title [SPARK-3787] Assembly jar name is wrong when we build with sbt omitting -Dhadoop.version [SPARK-3787][BUILD] Assembly jar name is wrong when we build with sbt omitting -Dhadoop.version Dec 26, 2014
@SparkQA
Copy link

SparkQA commented Dec 26, 2014

Test build #24837 has finished for PR 3046 at commit 41ef90e.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@pwendell
Copy link
Contributor

Looks good - I'm going to merge this with a slight modification (adding a comment to explain whats going on).

@asfgit asfgit closed this in de95c57 Dec 27, 2014
asfgit pushed a commit that referenced this pull request Dec 27, 2014
… omitting -Dhadoop.version

This PR is another solution for When we build with sbt with profile for hadoop and without property for hadoop version like:

    sbt/sbt -Phadoop-2.2 assembly

jar name is always used default version (1.0.4).

When we build with maven with same condition for sbt, default version for each profile is used.
For instance, if we  build like:

    mvn -Phadoop-2.2 package

jar name is used hadoop2.2.0 as a default version of hadoop-2.2.

Author: Kousuke Saruta <sarutak@oss.nttdata.co.jp>

Closes #3046 from sarutak/fix-assembly-jarname-2 and squashes the following commits:

41ef90e [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname-2
50c8676 [Kousuke Saruta] Merge branch 'fix-assembly-jarname-2' of github.com:sarutak/spark into fix-assembly-jarname-2
52a1cd2 [Kousuke Saruta] Fixed comflicts
dd30768 [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname2
f1c90bb [Kousuke Saruta] Fixed SparkBuild.scala in order to read `hadoop.version` property from pom.xml
af6b100 [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname
c81806b [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname
ad1f96e [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname
b2318eb [Kousuke Saruta] Merge branch 'master' of git://git.apache.org/spark into fix-assembly-jarname
5fc1259 [Kousuke Saruta] Fixed typo.
eebbb7d [Kousuke Saruta] Fixed wrong jar name
@sarutak sarutak deleted the fix-assembly-jarname-2 branch April 11, 2015 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants