Repository navigation
HBASE-28557 Upgrade JLine to 3.30.17 - #8930
Conversation
Motivation: JLine 2.x is EOL, ZooKeeper 3.8.6 also already uses JLine 3.x (See ZOOKEEPER-3938). In JLine 3.x the groupId is changed from "jline" to "org.jline". Made sure we don't copy jline jar multiple times to the lib directory of the tarballs. Updated supplemental-models.xml as we directly depend on jline not just getting it from hadoop-3.3.0 anymore.
VerificationBuild with Tests in hbase-zookeeper are successful: Built the tarballs and made sure jline jar is not duplicated in -> jline-3.30.17.jar only exists once (in lib/zkcli) - OK Unpacked the full tarball and ran -> lib/zkcli/jline-3.30.17.jar was on the classpath and it printed:
The "Connection refused" after that is expected, since nothing was listening. Also verified this against a locally running standalone ZooKeeper: |
so our build doesn't pull in Java 22+ bytecode from the FFM (Foreign Function & Memory) terminal provider.
There was a problem hiding this comment.
🟡 Changes recommended
The license supplement retains the 2002–2018 copyright notice for version 3.30.17 instead of its 2002–2023 notice, causing incorrect attribution in the generated distribution LICENSE.txt.
1 open issue
What changed in this PR
Upgrades HBase’s JLine dependency from 2.11 to 3.30.17, replacing the end-of-life version and updating distribution packaging.
Changes:
- Switches dependency coordinates to
org.jline:jlinewith thejdk8classifier to avoid Java 22+ FFM bytecode. - Updates assembly filters to place JLine in
lib/zkcliwithout duplicating it in the mainlibdirectory. - Updates supplemental license metadata for the new version.
| File | Description |
|---|---|
pom.xml |
Manages JLine 3.30.17 with the jdk8 classifier. |
hbase-resource-bundle/src/main/resources/supplemental-models.xml |
Updates JLine’s supplemental license version. |
hbase-dev-generate-classpath/pom.xml |
Uses the new dependency for development classpaths. |
hbase-assembly/src/main/assembly/hadoop-three-compat.xml |
Updates JLine packaging filters for the Hadoop-compatible distribution. |
hbase-assembly/src/main/assembly/client.xml |
Updates JLine packaging filters for the client distribution. |
hbase-assembly/pom.xml |
Switches the standard assembly to the new dependency. |
hbase-assembly-byo-hadoop/src/main/assembly/hadoop-three-compat.xml |
Updates JLine packaging filters for the bring-your-own-Hadoop distribution. |
hbase-assembly-byo-hadoop/pom.xml |
Switches the bring-your-own-Hadoop assembly to the new dependency. |
Review effort: Balanced
taklwu
left a comment
There was a problem hiding this comment.
LGTM, thanks for making this upgrade
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Reviewed-by: Kevin Geiszler <kevin.j.geiszler@gmail.com> (cherry picked from commit b5913a7)
Signed-off-by: Tak Lon (Stephen) Wu <taklwu@apache.org> Reviewed-by: Kevin Geiszler <kevin.j.geiszler@gmail.com> (cherry picked from commit b5913a7)

Motivation: JLine 2.x is EOL, ZooKeeper 3.8.6 also already uses JLine 3.x (See ZOOKEEPER-3938).
In JLine 3.x the groupId is changed from "jline" to "org.jline".
Made sure we don't copy jline jar multiple times to the
libdirectory of the tarballs.Updated
supplemental-models.xmlas we directly depend on jline not just getting it from hadoop-3.3.0 anymore.Use jdk8 classifier of JLine so our build doesn't pull in Java 22+ bytecode from the FFM (Foreign Function & Memory) terminal provider.