Skip to content

ORC-772: Fix Spark benchmark jar creation - #667

Merged
dongjoon-hyun merged 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-772
Mar 23, 2021
Merged

dongjoon-hyun merged 1 commit into
apache:masterfrom
dongjoon-hyun:ORC-772

Conversation

@dongjoon-hyun

Copy link
Copy Markdown
Member

What changes were proposed in this pull request?

This PR aims to fix Spark benchmark jar creation by using the default Maven shade plugin configurations explicitly. Otherwise, the parent pom's configuration is applied.

Why are the changes needed?

Since ORC-750, it builds incorrect uber jar.

$ cd java/bench

$ mvn clean package -pl spark --am

$ ls -alh spark/target/*.jar      
-rw-rw-r-- 1 dongjoon dongjoon  62K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon 808K Mar 23 05:28 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT-nohive.jar

How was this patch tested?

Manually.

$ cd java/bench

$ mvn clean package -pl spark --am

$ ls -alh spark/target/*.jar
-rw-rw-r-- 1 dongjoon dongjoon 130M Mar 23 05:56 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar
-rw-rw-r-- 1 dongjoon dongjoon  62K Mar 23 05:55 spark/target/original-orc-benchmarks-spark-1.7.0-SNAPSHOT.jar

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

cc @omalley and @pgaref

@pgaref pgaref left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

+1 for these changes, also tested locally:

01:22:51 panosgarefalakis@pgaref-MBP13 bench ±|ORC-772 ✗|→ ls -alh spark/target/*.jar
-rw-r--r--  1 panosgarefalakis  staff   129M Mar 23 13:22 spark/target/orc-benchmarks-spark-1.7.0-SNAPSHOT.jar

@dongjoon-hyun

Copy link
Copy Markdown
Member Author

Thank you!

@dongjoon-hyun
dongjoon-hyun merged commit 8a593d2 into apache:master Mar 23, 2021
@dongjoon-hyun
dongjoon-hyun deleted the ORC-772 branch March 23, 2021 13:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants