Skip to content

Commit 0918433

Browse files
committed
YARN-9898. Dependency netty-all-4.1.27.Final doesn't support ARM platform. Contributed by liusheng.
1 parent c757cb6 commit 0918433

File tree

4 files changed

+20
-4
lines changed

4 files changed

+20
-4
lines changed

hadoop-hdfs-project/hadoop-hdfs-client/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,7 +64,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
6464
<scope>test</scope>
6565
</dependency>
6666
<dependency>
67-
<groupId>io.netty</groupId>
67+
<groupId>${netty4.group}</groupId>
6868
<artifactId>netty-all</artifactId>
6969
<scope>test</scope>
7070
</dependency>

hadoop-hdfs-project/hadoop-hdfs/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -176,7 +176,7 @@ https://maven.apache.org/xsd/maven-4.0.0.xsd">
176176
<scope>compile</scope>
177177
</dependency>
178178
<dependency>
179-
<groupId>io.netty</groupId>
179+
<groupId>${netty4.group}</groupId>
180180
<artifactId>netty-all</artifactId>
181181
<scope>compile</scope>
182182
</dependency>

hadoop-project/pom.xml

Lines changed: 17 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,7 @@
141141
<metrics.version>3.2.4</metrics.version>
142142
<netty3.version>3.10.6.Final</netty3.version>
143143
<netty4.version>4.1.48.Final</netty4.version>
144+
<netty4.group>io.netty</netty4.group>
144145

145146
<!-- Maven protoc compiler -->
146147
<protobuf-maven-plugin.version>0.5.1</protobuf-maven-plugin.version>
@@ -892,7 +893,7 @@
892893
</dependency>
893894

894895
<dependency>
895-
<groupId>io.netty</groupId>
896+
<groupId>${netty4.group}</groupId>
896897
<artifactId>netty-all</artifactId>
897898
<version>${netty4.version}</version>
898899
</dependency>
@@ -2215,6 +2216,21 @@
22152216
</plugins>
22162217
</build>
22172218
</profile>
2219+
<profile>
2220+
<id>aarch64</id>
2221+
<properties>
2222+
<!-- To make hadoop fully support ARM64 now, here add a workaround using an unofficial
2223+
netty-all package which support ARM64. Once the Netty officially support ARM64 in a
2224+
new release, we need to remove this and upgrade to use Netty official package -->
2225+
<netty4.group>org.openlabtesting.netty</netty4.group>
2226+
</properties>
2227+
<activation>
2228+
<os>
2229+
<family>linux</family>
2230+
<arch>aarch64</arch>
2231+
</os>
2232+
</activation>
2233+
</profile>
22182234
<profile>
22192235
<id>test-patch</id>
22202236
<activation>

hadoop-yarn-project/hadoop-yarn/hadoop-yarn-csi/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
<version>${protobuf.version}</version>
4545
</dependency>
4646
<dependency>
47-
<groupId>io.netty</groupId>
47+
<groupId>${netty4.group}</groupId>
4848
<artifactId>netty-all</artifactId>
4949
</dependency>
5050
<dependency>

0 commit comments

Comments
 (0)