Skip to content

HBASE-28557 Upgrade JLine to 3.30.17 - ADDENDUM: avoid duplicate jline in tarballs - #8937

Merged
PDavid merged 1 commit into
apache:masterfrom
PDavid:HBASE-28557-jline-addendum
Nov 26, 2026
Merged

PDavid merged 1 commit into
apache:masterfrom
PDavid:HBASE-28557-jline-addendum

Conversation

@PDavid

@PDavid PDavid commented Nov 26, 2026

Copy link
Copy Markdown
Contributor

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.

After the fix:

$ for t in hbase-assembly/target/*-bin.tar.gz hbase-assembly-byo-hadoop/target/*-bin.tar.gz; do
    echo "== $t"; tar tzf "$t" | grep -i jline
  done

== hbase-assembly/target/hbase-4.0.0-alpha-1-SNAPSHOT-bin.tar.gz
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.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
$

…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.
@PDavid PDavid self-assigned this Nov 26, 2026
@PDavid

PDavid commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Note:

This is an addendum for: #8930

@PDavid

PDavid commented Nov 26, 2026

Copy link
Copy Markdown
Contributor Author

Testing

Performed the same testing for this branch locally as described here:

#8930 (comment)

@PDavid
PDavid merged commit 355e288 into apache:master Nov 26, 2026
12 of 13 checks passed
@PDavid
PDavid deleted the HBASE-28557-jline-addendum branch November 26, 2026 15:16
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)
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