Shade and relocate Avro dependency in hadoop-mr-bundle
This commit is contained in:
committed by
Balaji Varadarajan
parent
1c09f5b055
commit
8c13340062
@@ -71,6 +71,7 @@
|
||||
<include>com.esotericsoftware:kryo-shaded</include>
|
||||
<include>org.objenesis:objenesis</include>
|
||||
<include>com.esotericsoftware:minlog</include>
|
||||
<include>org.apache.avro:avro</include>
|
||||
</includes>
|
||||
</artifactSet>
|
||||
<relocations>
|
||||
@@ -86,6 +87,10 @@
|
||||
<pattern>com.esotericsoftware.minlog.</pattern>
|
||||
<shadedPattern>org.apache.hudi.com.esotericsoftware.minlog.</shadedPattern>
|
||||
</relocation>
|
||||
<relocation>
|
||||
<pattern>org.apache.avro.</pattern>
|
||||
<shadedPattern>${mr.bundle.avro.shade.prefix}org.apache.avro.</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<createDependencyReducedPom>false</createDependencyReducedPom>
|
||||
<filters>
|
||||
@@ -134,5 +139,21 @@
|
||||
<artifactId>parquet-avro</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.avro</groupId>
|
||||
<artifactId>avro</artifactId>
|
||||
<scope>${mr.bundle.avro.scope}</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>mr-bundle-shade-avro</id>
|
||||
<properties>
|
||||
<mr.bundle.avro.scope>compile</mr.bundle.avro.scope>
|
||||
<mr.bundle.avro.shade.prefix>org.apache.hudi.</mr.bundle.avro.shade.prefix>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
|
||||
9
pom.xml
9
pom.xml
@@ -100,6 +100,8 @@
|
||||
<skipUTs>${skipTests}</skipUTs>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<main.basedir>${project.basedir}</main.basedir>
|
||||
<mr.bundle.avro.scope>provided</mr.bundle.avro.scope>
|
||||
<mr.bundle.avro.shade.prefix></mr.bundle.avro.shade.prefix>
|
||||
</properties>
|
||||
|
||||
<scm>
|
||||
@@ -906,6 +908,13 @@
|
||||
<surefire-log4j.file>file://${project.basedir}/src/test/resources/log4j-surefire-quiet.properties</surefire-log4j.file>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>aws-emr-profile</id>
|
||||
<properties>
|
||||
<mr.bundle.avro.scope>compile</mr.bundle.avro.scope>
|
||||
<mr.bundle.avro.shade.prefix>org.apache.hudi.</mr.bundle.avro.shade.prefix>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
<issueManagement>
|
||||
|
||||
Reference in New Issue
Block a user