Skip to content

Commit

Permalink
Allow running Presto on Linux aarch64
Browse files Browse the repository at this point in the history
  • Loading branch information
electrum committed Feb 13, 2020
1 parent 4427821 commit 316bfc0
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
2 changes: 1 addition & 1 deletion pom.xml
Expand Up @@ -438,7 +438,7 @@
<dependency>
<groupId>io.prestosql.hadoop</groupId>
<artifactId>hadoop-apache</artifactId>
<version>3.2.0-7</version>
<version>3.2.0-8</version>
</dependency>

<dependency>
Expand Down
Expand Up @@ -14,6 +14,7 @@
package io.prestosql.server;

import com.google.common.base.StandardSystemProperty;
import com.google.common.collect.ImmutableSet;
import io.airlift.slice.Slice;
import io.airlift.slice.Slices;
import org.joda.time.DateTime;
Expand Down Expand Up @@ -71,10 +72,13 @@ private static void verifyOsArchitecture()
String osName = StandardSystemProperty.OS_NAME.value();
String osArch = StandardSystemProperty.OS_ARCH.value();
if ("Linux".equals(osName)) {
if (!"amd64".equals(osArch) && !"ppc64le".equals(osArch)) {
failRequirement("Presto requires amd64 or ppc64le on Linux (found %s)", osArch);
if (!ImmutableSet.of("amd64", "aarch64", "ppc64le").contains(osArch)) {
failRequirement("Presto requires amd64, aarch64, or ppc64le on Linux (found %s)", osArch);
}
if ("ppc64le".equals(osArch)) {
if ("aarch64".equals(osArch)) {
warnRequirement("Support for the ARM architecture is experimental");
}
else if ("ppc64le".equals(osArch)) {
warnRequirement("Support for the POWER architecture is experimental");
}
}
Expand Down

0 comments on commit 316bfc0

Please sign in to comment.