[
https://issues.apache.org/jira/browse/KNOX-2540?focusedWorklogId=687833&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-687833
]
ASF GitHub Bot logged work on KNOX-2540:
----------------------------------------
Author: ASF GitHub Bot
Created on: 30/Nov/21 08:16
Start Date: 30/Nov/21 08:16
Worklog Time Spent: 10m
Work Description: smolnar82 merged pull request #406:
URL: https://github.com/apache/knox/pull/406
--
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]
Issue Time Tracking
-------------------
Worklog Id: (was: 687833)
Time Spent: 40m (was: 0.5h)
> “NoSuchMethodErrors” due to multiple versions of
> org.apache.curator:curator-client
> ----------------------------------------------------------------------------------
>
> Key: KNOX-2540
> URL: https://issues.apache.org/jira/browse/KNOX-2540
> Project: Apache Knox
> Issue Type: Bug
> Affects Versions: 1.6.0
> Reporter: Bing-ok
> Priority: Major
> Time Spent: 40m
> Remaining Estimate: 0h
>
> h2. Issue description:
> There are multiple versions of _*org.apache.curator:curator-client*_ in
> _*hadoop-examples*_. As shown in the following dependency tree, library
> *_org.apache.curator:curator-client:2.13.0_* is transitively introduced by
> *_org.apache.hadoop:hadoop-common:3.2.1_* , but has been managed to be
> version _*4.3.0*_.
> However, several methods defined in shadowed version
> _*org.apache.curator:curator-client:2.13.0*_ are referenced by client project
> via _*org.apache.hadoop:hadoop-common:3.2.1*_ but missing in the actually
> loaded version _*org.apache.curator:curator-client:4.3.0*_.
> For instance, the following missing method(defined in
> _*org.apache.curator:curator-client:2.13.0*_) are actually referenced by
> *_hadoop-examples_*, which will introduce a runtime error(i.e.,
> "NoSuchMethodError") into _*hadoop-examples*_.
> _*org.apache.curator.utils.ThreadUtils: void
> checkInterrupted(java.lang.Throwable)*_ is invoked by _*hadoop-examples*_ via
> the following path:
> {code:java}
> <org.apache.knox.examples.WordCount: void main(java.lang.String[])>
> knox/hadoop-examples/target/classes
> <org.apache.hadoop.util.GenericOptionsParser: void
> <init>(org.apache.hadoop.conf.Configuration,java.lang.String[])>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.hadoop.util.GenericOptionsParser: void
> <init>(org.apache.hadoop.conf.Configuration,org.apache.commons.cli.Options,java.lang.String[])>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.hadoop.util.GenericOptionsParser: boolean
> parseGeneralOptions(org.apache.commons.cli.Options,java.lang.String[])>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.hadoop.util.GenericOptionsParser: void
> processGeneralOptions(org.apache.commons.cli.CommandLine)>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.hadoop.security.Credentials:
> org.apache.hadoop.security.Credentials
> readTokenStorageFile(org.apache.hadoop.fs.Path,org.apache.hadoop.conf.Configuration)>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.hadoop.io.IOUtils: void
> cleanupWithLogger(org.slf4j.Logger,java.io.Closeable[])>
> Respository/org/apache/hadoop/hadoop-common/3.2.1/hadoop-common-3.2.1.jar
> <org.apache.curator.framework.recipes.nodes.PersistentNode: void close()>
> Respository/org/apache/curator/curator-recipes/4.3.0/curator-recipes-4.3.0.jar
> <org.apache.curator.utils.ThreadUtils: void
> checkInterrupted(java.lang.Throwable)>{code}
> h2. Suggested fixing solutions:
> 1. Upgrade dependency _*org.apache.hadoop:hadoop-common*_ from _*3.2.1*_ to
> _*3.2.2*_.Because the newer version _*org.apache.hadoop:hadoop-common:3.2.2*_
> does not invoke the above missing methods, such changing can solve the
> problem.
> This repair will introduce the following new dependencies:
> javax.activation:javax.activation-api:1.2.0
> 2. Change direct dependency _*org.apache.curator:curator-client*_ from
> _*4.3.0*_ to _*2.13.0*_.
> h2. Dependency tree----
> {code:java}
> [INFO] org.apache.knox:hadoop-examples:jar:1.6.0-SNAPSHOT
> [INFO] \- org.apache.hadoop:hadoop-common:jar:3.2.1:provided
> [INFO] +- org.apache.curator:curator-client:jar:4.3.0:provided (version
> managed from 2.13.0)
> [INFO] \- org.apache.curator:curator-recipes:jar:4.3.0:provided (version
> managed from 2.13.0)
> [INFO] \- org.apache.curator:curator-framework:jar:4.3.0:provided
> [INFO] \- (org.apache.curator:curator-client:jar:4.3.0:provided -
> version managed from 2.13.0; omitted for duplicate)
> {code}
--
This message was sent by Atlassian Jira
(v8.20.1#820001)