Repository navigation
HBASE-28557 Upgrade JLine to 3.30.17 - ADDENDUM: avoid duplicate jline in tarballs - #8937
Merged
Merged
Conversation
…e in tarballs Noticed that tarball packaged 2 jline jars. ``` == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-client-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly-byo-hadoop/target/hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar ``` Cause: hadoop-yarn-client 3.4.3, which comes in through hadoop-mapreduce-client-core, depends on org.jline:jline:3.9.0 with no classifier. HBASE-28557 changed the lib/zkcli include from jline:jline to org.jline:jline. That pattern matches both artifacts, so the old 3.9.0 jar ended up next to the new one. Before the upgrade, that same 3.9.0 jar was actually being shipped in lib/, because only jline:jline was excluded there. The byo-hadoop assembly wasn't affected because Hadoop is provided there, so the 3.9.0 jar is never packaged. Fix: Added an org.jline:jline exclusion to the managed hadoop-mapreduce-client-core dependency (hadoop-three profile). YARN only uses jline for its own interactive command-line tools so excluding should be fine for HBase.
Contributor
Author
Note:This is an addendum for: #8930 |
Contributor
Author
TestingPerformed the same testing for this branch locally as described here: |
petersomogyi
approved these changes
Nov 26, 2026
PDavid
added a commit
that referenced
this pull request
Nov 26, 2026
…e in tarballs (#8937) Noticed that tarball packaged 2 jline jars. ``` == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-client-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly-byo-hadoop/target/hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar ``` Cause: hadoop-yarn-client 3.4.3, which comes in through hadoop-mapreduce-client-core, depends on org.jline:jline:3.9.0 with no classifier. HBASE-28557 changed the lib/zkcli include from jline:jline to org.jline:jline. That pattern matches both artifacts, so the old 3.9.0 jar ended up next to the new one. Before the upgrade, that same 3.9.0 jar was actually being shipped in lib/, because only jline:jline was excluded there. The byo-hadoop assembly wasn't affected because Hadoop is provided there, so the 3.9.0 jar is never packaged. Fix: Added an org.jline:jline exclusion to the managed hadoop-mapreduce-client-core dependency (hadoop-three profile). YARN only uses jline for its own interactive command-line tools so excluding should be fine for HBase. Signed-off-by: Peter Somogyi <psomogyi@apache.com> (cherry picked from commit 355e288)
PDavid
added a commit
that referenced
this pull request
Nov 26, 2026
…e in tarballs (#8937) Noticed that tarball packaged 2 jline jars. ``` == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-client-bin.tar.gz hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.9.0.jar hbase-4.0.0-alpha-1-SNAPSHOT-client/lib/zkcli/jline-3.30.17-jdk8.jar == hbase-assembly-byo-hadoop/target/hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz hbase-byo-hadoop-4.0.0-alpha-1-SNAPSHOT/lib/zkcli/jline-3.30.17-jdk8.jar ``` Cause: hadoop-yarn-client 3.4.3, which comes in through hadoop-mapreduce-client-core, depends on org.jline:jline:3.9.0 with no classifier. HBASE-28557 changed the lib/zkcli include from jline:jline to org.jline:jline. That pattern matches both artifacts, so the old 3.9.0 jar ended up next to the new one. Before the upgrade, that same 3.9.0 jar was actually being shipped in lib/, because only jline:jline was excluded there. The byo-hadoop assembly wasn't affected because Hadoop is provided there, so the 3.9.0 jar is never packaged. Fix: Added an org.jline:jline exclusion to the managed hadoop-mapreduce-client-core dependency (hadoop-three profile). YARN only uses jline for its own interactive command-line tools so excluding should be fine for HBase. Signed-off-by: Peter Somogyi <psomogyi@apache.com> (cherry picked from commit 355e288)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Noticed that tarball packaged 2 jline jars.
Cause:
hadoop-yarn-client 3.4.3, which comes in through hadoop-mapreduce-client-core, depends on org.jline:jline:3.9.0 with no classifier. HBASE-28557 changed the lib/zkcli include from jline:jline to org.jline:jline. That pattern matches both artifacts, so the old 3.9.0 jar ended up next to the new one. Before the upgrade, that same 3.9.0 jar was actually being shipped in lib/, because only jline:jline was excluded there.
The byo-hadoop assembly wasn't affected because Hadoop is provided there, so the 3.9.0 jar is never packaged.
Fix:
Added an org.jline:jline exclusion to the managed hadoop-mapreduce-client-core dependency (hadoop-three profile). YARN only uses jline for its own interactive command-line tools so excluding should be fine for HBase.
After the fix: