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

Íñigo Goiri commented on HDFS-12384:
------------------------------------

Thanks [~busbey]. I tried excluding {{curator-framework}} from 
{{hadoop-client-minicluster}}:
{code}
        <exclusion>
          <groupId>org.apache.curator</groupId>
          <artifactId>curator-framework</artifactId>
        </exclusion>
{code}

And now I get:
{code}
  Found in:
    org.apache.hadoop:hadoop-client-api:jar:3.0.0-beta1-SNAPSHOT:compile
    org.apache.hadoop:hadoop-client-minicluster:jar:3.0.0-beta1-SNAPSHOT:compile
  Duplicate classes:
    
org/apache/hadoop/yarn/server/timeline/security/TimelineAuthenticationFilterInitializer.class
    org/apache/hadoop/hdfs/protocolPB/package-info.class
    
org/apache/hadoop/yarn/server/timeline/security/TimelineAuthenticationFilter.class

  Found in:
    org.apache.hadoop:hadoop-client-minicluster:jar:3.0.0-beta1-SNAPSHOT:compile
    org.apache.hadoop:hadoop-client-runtime:jar:3.0.0-beta1-SNAPSHOT:compile
  Duplicate classes:
    
org/apache/hadoop/shaded/org/apache/curator/framework/api/DeleteBuilder.class
    org/apache/hadoop/shaded/org/apache/curator/framework/CuratorFramework.class
    
org/apache/hadoop/shaded/org/apache/curator/framework/api/Backgroundable.class
    
org/apache/hadoop/shaded/org/apache/curator/framework/imps/NamespaceWatchedEvent.class
    
org/apache/hadoop/shaded/org/apache/curator/framework/api/GetChildrenBuilder.class
    
org/apache/hadoop/shaded/org/apache/curator/framework/imps/SetACLBuilderImpl$2.class
    ...
{code}

So now more curator dependencies show as dup and new stuff from TS showed up.
Any idea?

> Fixing compilation issue with BanDuplicateClasses
> -------------------------------------------------
>
>                 Key: HDFS-12384
>                 URL: https://issues.apache.org/jira/browse/HDFS-12384
>             Project: Hadoop HDFS
>          Issue Type: Sub-task
>          Components: fs
>            Reporter: Íñigo Goiri
>            Assignee: Íñigo Goiri
>             Fix For: HDFS-10467
>
>         Attachments: HDFS-12384-HDFS-10467-000.patch
>
>
> {{hadoop-client-modules}} is failing because of dependences added by 
> {{CuratorManager}}:
> {code}
> [INFO]   Adding ignore: *
> [WARNING] Rule 1: org.apache.maven.plugins.enforcer.BanDuplicateClasses 
> failed with message:
> Duplicate classes found:
>   Found in:
>     
> org.apache.hadoop:hadoop-client-minicluster:jar:3.0.0-beta1-SNAPSHOT:compile
>     org.apache.hadoop:hadoop-client-runtime:jar:3.0.0-beta1-SNAPSHOT:compile
>   Duplicate classes:
>     
> org/apache/hadoop/shaded/org/apache/curator/framework/api/DeleteBuilder.class
>     
> org/apache/hadoop/shaded/org/apache/curator/framework/CuratorFramework.class
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

---------------------------------------------------------------------
To unsubscribe, e-mail: hdfs-issues-unsubscr...@hadoop.apache.org
For additional commands, e-mail: hdfs-issues-h...@hadoop.apache.org

Reply via email to