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
PHOENIX-6766 Fix failure of sqlline due to conflicting jline dependency pulled from Hadoop 3.3. #1484
Conversation
The stack trace implies that the constructor of StringsCompleter which is not exists in 3.9.0 was called.
compile scope dependency on org.jline:jline:jar:3.9.0 is pulled from Hadoop (after YARN-8778).
org.jline:jline is bundled jar. It contains duplicate classes of org.jline:jline-*:3.12.1 (which are transitive dependencies of sqlline). |
While I saw this error on Phoenix 5.1.2, master branch looks affected too.
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We certainly don't need jline from hadoop.
+1 LGTM
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The dependency is at one level lower, coming from
org.apache.hadoop:hadoop-yarn-client .
It would be more robust and readable to add the exclusion there.
(In case hadoop-yarn-client gets pulled via via another transitive dependency in the future.)
Also please remove the dot after the JIRA number in the commit message. |
…cy pulled from Hadoop 3.3.
50ac307
to
2f187a7
Compare
Thanks, @stoty. I updated the PR based on your comment. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you.
LGTM
https://issues.apache.org/jira/browse/PHOENIX-6766
Dependency on org.jline:jline:jar:3.9.0 conflicts with org.jline:jline-*:jar:3.12.1. It causes following error on invoking sqlline. It should be excluded from transitive dependency of Hadoop (>= 3.3.0).