Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MPP-3183: Support JDK 11 #17

Merged
merged 2 commits into from
Oct 6, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
13 changes: 12 additions & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
<air.maven.version>3.3.9</air.maven.version>

<dep.antlr.version>4.7.1</dep.antlr.version>
<dep.airlift.version>0.183</dep.airlift.version>
<dep.airlift.version>0.183.5</dep.airlift.version>
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

<dep.packaging.version>${dep.airlift.version}</dep.packaging.version>
<dep.slice.version>0.36</dep.slice.version>
<dep.aws-sdk.version>1.11.445</dep.aws-sdk.version>
Expand Down Expand Up @@ -1267,6 +1267,17 @@
</plugins>
</build>

<pluginRepositories>
<pluginRepository>
<id>treasuredata</id>
<name>treasuredata-releases</name>
<url>https://treasuredata.jfrog.io/treasuredata/libs-release</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</pluginRepository>
</pluginRepositories>

<profiles>
<profile>
<id>tests-with-dependencies</id>
Expand Down
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