-
Notifications
You must be signed in to change notification settings - Fork 2.4k
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
[HUDI-1540] Add commons-codec to spark and utilities bundle jars #2316
Conversation
Codecov Report
@@ Coverage Diff @@
## master #2316 +/- ##
============================================
- Coverage 53.49% 9.68% -43.81%
+ Complexity 2788 48 -2740
============================================
Files 355 53 -302
Lines 16169 1930 -14239
Branches 1650 230 -1420
============================================
- Hits 8649 187 -8462
+ Misses 6819 1730 -5089
+ Partials 701 13 -688
Flags with carried forward coverage won't be shown. Click here to find out more. |
@sbernauer so we don't shade commons-codec in these bundles, with the intention of using it from the spark installation. I am going to try and trace why it's looking for the shaded class name |
H @vinothchandar are you looking for the relocation here https://github.com/apache/hudi/blob/master/packaging/hudi-utilities-bundle/pom.xml#L170?
|
@sbernauer rekicked the tests. yes, I was trying to understand whether that's a left over relocation. Seems like we used to include |
@sbernauer wanted to clarify if you see this on 0.5.3 or only on master? Coz 0.5.3 has been stable for a while, used with 2.4.0 spark as well. Integ test environment for e.g uses Spark 2.4 with the same bundles. I am wondering if we can instead remove the relocation from the bundle pom? it should be working with the existing jars in the spark install. |
Im using >= 0.6.0 from master branch and Spark 3.0.1 |
@vinothchandar : is this a release blocker? |
@sbernauer : looks like spark-bundle pom was missing the relocation for shade. Can you try out the fix and let us know if it works. |
@sbernauer : looks like spark-bundle pom was missing the relocation for shade. I have updated the patch. Can you try out the fix and let us know if it works. |
Or if can you give me steps to repro. what commands you ran w/ spark shell with the spark-bundle jar. I can give it a try. |
@sbernauer : I landed another patch on this regard. can you please check the latest release and let us know if the the issue still persist ? If not, we can close this out. |
Hi @nsivabalan sorry for missing the notification and thanks for your work! I get the |
Don't have permission to update this patch. hence have put up another patch. |
No problem and thanks @nsivabalan for creating the PR! |
@sbernauer : we have closed out this #2562 . Would appreciate if you can verify if the fix works. |
What is the purpose of the pull request
Fixes #2239 NoClassDefFoundError: org/apache/hudi/org/apache/commons/codec/binary/Base64
Brief change log
Included
commons-codec:commons-codec
in the spark and utilities bundle jarsVerify this pull request
This pull request is a trivial rework / code cleanup without any test coverage.
Committer checklist
Has a corresponding JIRA in PR title & commit -> NOTE: Doesnt exist
Commit message is descriptive of the change
CI is green
Necessary doc changes done or have another open PR
For large changes, please consider breaking it into sub-tasks under an umbrella JIRA.