Skip to content
This repository has been archived by the owner on Sep 18, 2023. It is now read-only.

[NSE-800] Pack the classes into one single jar #1002

Merged
merged 8 commits into from
Jun 30, 2022

Conversation

PHILO-HE
Copy link
Collaborator

@PHILO-HE PHILO-HE commented Jun 30, 2022

We found that even though core source code can be shared for different spark versions, the jar built for core source code can NOT be shared. So the jar is only applicable to the spark version specified in the building. To distinguish them, the dist jar's name is appended with spark version.
The final jar is put into gazelle-dist/target/. Currently, the jar can be either gazelle-plugin-1.4.0-spark-3.1.1.jar or gazelle-plugin-1.4.0-spark-3.2.1.jar, depending on the spark version specified.

@github-actions
Copy link

#800

Copy link
Collaborator

@zhouyuan zhouyuan left a comment

Choose a reason for hiding this comment

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

does this work if build with separate module, like -pl arrow-data-source?

@@ -62,11 +64,20 @@ And for spark 3.2.x, the jar whose `<spark-version>` is `spark321` should be use

4. `spark-sql-columnar-shims-<spark-version>-<version>-SNAPSHOT.jar`

Please notice the files are fat jars shipped with our custom Arrow library and pre-compiled from our server(using GCC 9.3.0 and LLVM 7.0.1), which means you will require to pre-install GCC 9.3.0 and LLVM 7.0.1 in your system for normal usage.
#### After 1.4.0 (inclusively)
Copy link
Collaborator

Choose a reason for hiding this comment

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

"starts from" sounds better

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Corrected. Thanks!

@PHILO-HE
Copy link
Collaborator Author

@zhouyuan, this patch will NOT change the behavior of building separate module. Actually, the build is almost as same as before except that an assembly step is added after all required modules are built.

@zhouyuan zhouyuan merged commit 5e89006 into oap-project:main Jun 30, 2022
zhouyuan pushed a commit to zhouyuan/native-sql-engine that referenced this pull request Jun 30, 2022
* Port from PR#825

* Generate two jars

* Use provided scope for scala and exclude meta-inf for jackson

* Add classifier

* Append spark version and pack to one jar

* Update user guide

* Revert "Add classifier"

This reverts commit f78d5dd.

* Refine the doc
zhouyuan pushed a commit to zhouyuan/native-sql-engine that referenced this pull request Jun 30, 2022
* Port from PR#825

* Generate two jars

* Use provided scope for scala and exclude meta-inf for jackson

* Add classifier

* Append spark version and pack to one jar

* Update user guide

* Revert "Add classifier"

This reverts commit f78d5dd.

* Refine the doc

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>
zhouyuan added a commit that referenced this pull request Jun 30, 2022
* Port from PR#825

* Generate two jars

* Use provided scope for scala and exclude meta-inf for jackson

* Add classifier

* Append spark version and pack to one jar

* Update user guide

* Revert "Add classifier"

This reverts commit f78d5dd.

* Refine the doc

Signed-off-by: Yuan Zhou <yuan.zhou@intel.com>

Co-authored-by: PHILO-HE <feilong.he@intel.com>
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants