nrg4878 commented on pull request #2869:
URL: https://github.com/apache/hive/pull/2869#issuecomment-996146648


   > It still seems to depend on log4j 2.6.2 in hive-upgrade-acid module.
   > 
   > ```
   > [INFO] org.apache.hive:hive-upgrade-acid:jar:3.2.0-SNAPSHOT
   > ...
   > [INFO] +- org.apache.hive:hive-exec:jar:2.3.3:provided
   > ...
   > [INFO] |  +- org.apache.logging.log4j:log4j-1.2-api:jar:2.6.2:provided
   > [INFO] |  |  +- org.apache.logging.log4j:log4j-api:jar:2.6.2:provided
   > [INFO] |  |  \- org.apache.logging.log4j:log4j-core:jar:2.6.2:provided
   > ```
   > 
   > I think it should be excluded in `upgrade-acid/pom.xml`.
   > 
   > ```diff
   >         <dependency>
   >             <groupId>org.apache.hive</groupId>
   >             <artifactId>hive-metastore</artifactId>
   >             <version>2.3.3</version>
   >             <scope>provided</scope>
   > +            <exclusions>
   > +                <exclusion>
   > +                    <groupId>org.apache.logging.log4j</groupId>
   > +                    <artifactId>log4j-core</artifactId>
   > +                </exclusion>
   > +            </exclusions>
   >         </dependency>
   >         <dependency>
   >             <groupId>org.apache.hive</groupId>
   >             <artifactId>hive-exec</artifactId>
   >             <version>2.3.3</version>
   >             <scope>provided</scope>
   > +            <exclusions>
   > +                <exclusion>
   > +                    <groupId>org.apache.logging.log4j</groupId>
   > +                    <artifactId>log4j-core</artifactId>
   > +                </exclusion>
   > +            </exclusions>
   >         </dependency>
   > ```
   
   Thanks @tasanuma for the review. Looks like the scoping for this transitive 
dependency is "provided" which means it expects the jar to be added by the 
user. It should not automatically include in the distribution. Is that still a 
concern?


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