YARN-9898. Dependency netty-all-4.1.27.Final doesn't support ARM platform. Contributed by liusheng.
This commit is contained in:
parent
ee58c112d0
commit
74887ab2ad
|
@ -64,7 +64,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<groupId>${netty4.group}</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -176,7 +176,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
|
|||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<groupId>${netty4.group}</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
|
|
|
@ -141,6 +141,7 @@
|
|||
<metrics.version>3.2.4</metrics.version>
|
||||
<netty3.version>3.10.6.Final</netty3.version>
|
||||
<netty4.version>4.1.48.Final</netty4.version>
|
||||
<netty4.group>io.netty</netty4.group>
|
||||
|
||||
<!-- Maven protoc compiler -->
|
||||
<protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>
|
||||
|
@ -892,7 +893,7 @@
|
|||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<groupId>${netty4.group}</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
<version>${netty4.version}</version>
|
||||
</dependency>
|
||||
|
@ -2215,6 +2216,21 @@
|
|||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>aarch64</id>
|
||||
<properties>
|
||||
<!-- To make hadoop fully support ARM64 now, here add a workaround using an unofficial
|
||||
netty-all package which support ARM64. Once the Netty officially support ARM64 in a
|
||||
new release, we need to remove this and upgrade to use Netty official package -->
|
||||
<netty4.group>org.openlabtesting.netty</netty4.group>
|
||||
</properties>
|
||||
<activation>
|
||||
<os>
|
||||
<family>linux</family>
|
||||
<arch>aarch64</arch>
|
||||
</os>
|
||||
</activation>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>test-patch</id>
|
||||
<activation>
|
||||
|
|
|
@ -44,7 +44,7 @@
|
|||
<version>${protobuf.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.netty</groupId>
|
||||
<groupId>${netty4.group}</groupId>
|
||||
<artifactId>netty-all</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
|
|
Loading…
Reference in New Issue