[ 
https://issues.apache.org/jira/browse/PHOENIX-6766?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577401#comment-17577401
 ] 

ASF GitHub Bot commented on PHOENIX-6766:
-----------------------------------------

iwasakims commented on PR #1484:
URL: https://github.com/apache/phoenix/pull/1484#issuecomment-1209337195

   The stack trace implies that [the constructor of StringsCompleter which is 
not exists in 
3.9.0](https://www.javadoc.io/static/org.jline/jline-reader/3.12.1/org/jline/reader/impl/completer/StringsCompleter.html#StringsCompleter-org.jline.reader.Candidate...-)
 was called.
   
   * 
https://www.javadoc.io/static/org.jline/jline-reader/3.9.0/org/jline/reader/impl/completer/StringsCompleter.html
   * 
https://www.javadoc.io/static/org.jline/jline-reader/3.12.1/org/jline/reader/impl/completer/StringsCompleter.html
   
   compile scope dependency on org.jline:jline:jar:3.9.0 is pulled from Hadoop 
(after YARN-8778).
   
   ```
   $ mvn dependency:tree -DskipTests -Dhadoop.version=3.3.4 
-Dhbase.version=2.4.13 -Dhbase.profile=2.4 | grep jline
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  \- jline:jline:jar:0.9.94:compile
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  |  \- jline:jline:jar:0.9.94:compile
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  |  \- jline:jline:jar:0.9.94:compile
   [INFO]    +- org.jline:jline-terminal:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-reader:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-terminal-jansi:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-terminal-jna:jar:3.12.1:runtime
   [INFO]    \- org.jline:jline-builtins:jar:3.12.1:runtime
   [INFO]       \- org.jline:jline-style:jar:3.12.1:runtime
   [INFO] |  |  \- jline:jline:jar:0.9.94:compile
   [INFO] |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:provided
   [INFO] |  |  \- jline:jline:jar:0.9.94:provided
   [INFO] |  |  |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  |  |  \- jline:jline:jar:0.9.94:compile
   [INFO] |     +- org.jline:jline-terminal:jar:3.12.1:runtime
   [INFO] |     +- org.jline:jline-reader:jar:3.12.1:runtime
   [INFO] |     +- org.jline:jline-terminal-jansi:jar:3.12.1:runtime
   [INFO] |     +- org.jline:jline-terminal-jna:jar:3.12.1:runtime
   [INFO] |     \- org.jline:jline-builtins:jar:3.12.1:runtime
   [INFO] |        \- org.jline:jline-style:jar:3.12.1:runtime
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  |  \- jline:jline:jar:0.9.94:compile
   [INFO] |  |  |  \- org.jline:jline:jar:3.9.0:compile
   [INFO] |  |  \- jline:jline:jar:0.9.94:compile
   [INFO]    +- org.jline:jline-terminal:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-reader:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-terminal-jansi:jar:3.12.1:runtime
   [INFO]    +- org.jline:jline-terminal-jna:jar:3.12.1:runtime
   [INFO]    \- org.jline:jline-builtins:jar:3.12.1:runtime
   [INFO]       \- org.jline:jline-style:jar:3.12.1:runtime
   ```
   
   org.jline:jline is bundled jar. It contains duplicate classes of 
org.jline:jline-*:3.12.1 (which are transitive dependencies of sqlline).
   




> Fix failure of sqlline due to conflicting jline dependency pulled from Hadoop 
> 3.3
> ---------------------------------------------------------------------------------
>
>                 Key: PHOENIX-6766
>                 URL: https://issues.apache.org/jira/browse/PHOENIX-6766
>             Project: Phoenix
>          Issue Type: Bug
>    Affects Versions: 5.1.2
>            Reporter: Masatake Iwasaki
>            Priority: Major
>
> {noformat}
> $ mvn clean install -DskipTests -Dhadoop.version=3.3.4 -Dhbase.version=2.4.13 
> -Dhbase.profile=2.4
> $ bin/sqlline.py
> Exception in thread "main" java.lang.NoSuchMethodError: 
> org.apache.phoenix.shaded.org.jline.reader.impl.completer.StringsCompleter.<init>([Lorg/apache/phoenix/shaded/org/jline/reader/Candidate;)V
>         at sqlline.SqlLineOpts.setOptionCompleters(SqlLineOpts.java:160)
>         at sqlline.Application.getCommandHandlers(Application.java:294)
>         at sqlline.SqlLine$Config.<init>(SqlLine.java:1946)
>         at sqlline.SqlLine.setAppConfig(SqlLine.java:1875)
>         at sqlline.SqlLine.<init>(SqlLine.java:229)
>         at sqlline.SqlLine.start(SqlLine.java:266)
>         at sqlline.SqlLine.main(SqlLine.java:206)
> {noformat}



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to