sodonnel commented on PR #5460:
URL: https://github.com/apache/hadoop/pull/5460#issuecomment-1462929775

   > ```
   > Duplicate classes found:
   > 
   >   Found in:
   >     org.apache.hadoop:hadoop-client-minicluster:jar:3.4.0-SNAPSHOT:compile
   >     org.apache.hadoop:hadoop-client-api:jar:3.4.0-SNAPSHOT:compile
   >   Duplicate classes:
   >     org/apache/hadoop/hdfs/server/protocol/package-info.class
   > ```
   > 
   > I believe this could be avoided by excluding it from either of the poms:
   > 
   > ```
   > --- a/hadoop-client-modules/hadoop-client-api/pom.xml
   > +++ b/hadoop-client-modules/hadoop-client-api/pom.xml
   > @@ -126,6 +126,12 @@
   >                          
<exclude>org/apache/hadoop/yarn/client/api/package-info.class</exclude>
   >                        </excludes>
   >                      </filter>
   > +                    <filter>
   > +                      <artifact>org.apache.hadoop:hadoop-hdfs</artifact>
   > +                      <excludes>
   > +                        
<exclude>org/apache/hadoop/hdfs/server/protocol/package-info.class</exclude>
   > +                      </excludes>
   > +                    </filter>
   >                    </filters>
   >                    <relocations>
   >                      <relocation>
   > ```
   > 
   > For instance, the above patch might help. I haven't tested this but I 
guess it might work.
   
   @virajjasani This isn't working. I added what you suggested, but still the 
same error. I also don't understand why this style warning is appearing, as its 
not a new package folder, and it has plenty of other classes in it already.


-- 
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]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to