Skip to content

Commit

Permalink
ODP-1468: Fix hive-llap-server log4j-api and reload4j jars conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
manishsinghmowall committed May 17, 2024
1 parent 3365c1b commit d87f38e
Show file tree
Hide file tree
Showing 2 changed files with 28 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@
import org.apache.hadoop.security.UserGroupInformation;
import org.apache.hadoop.security.token.Token;
import org.apache.hadoop.yarn.api.records.ApplicationId;
import org.apache.log4j.NDC;
import org.apache.log4japi.NDC;
import org.apache.tez.common.CallableWithNdc;
import org.apache.tez.common.TezCommonUtils;
import org.apache.tez.common.security.JobTokenIdentifier;
Expand Down
27 changes: 27 additions & 0 deletions llap-tez/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -233,6 +233,33 @@
<sourceDirectory>${basedir}/src/java</sourceDirectory>
<testSourceDirectory>${basedir}/src/test</testSourceDirectory>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<shadeTestJar>false</shadeTestJar>
<createDependencyReducedPom>false</createDependencyReducedPom>
<artifactSet>
<includes>
<include>org.apache.logging.log4j:log4j-1.2-api</include>
</includes>
</artifactSet>
<relocations>
<relocation>
<pattern>org.apache.log4j</pattern>
<shadedPattern>org.apache.log4japi</shadedPattern>
</relocation>
</relocations>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>build-helper-maven-plugin</artifactId>
Expand Down

0 comments on commit d87f38e

Please sign in to comment.