PDavid opened a new pull request, #8937:
URL: https://github.com/apache/hbase/pull/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.
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
$
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]