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
yuokada committed Oct 6, 2020
1 parent 7bbf3e5 commit 8e19a56
Showing 1 changed file with 7 additions and 3 deletions.
Original file line number Diff line number Diff line change
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 8e19a56

Please sign in to comment.