-
Notifications
You must be signed in to change notification settings - Fork 5.4k
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
presto-mysql, presto-hive tests fail due to missing/incompatible binaries/libraries on ppc64le #14549
Comments
Got some answers on #14550 |
About snappy-java-1.1.7.1.jar which is a dependency for presto-hive does not contain libsnappyjava.so for ppc64le which causes the following issue:
Higher versions of this jar (>= 1.1.7.4) have support for ppc64le. But since that (https://github.com/xerial/snappy-java.git) is built with jdk11, the test execution for presto-hive runs into the following issue if we try to use jdk8 to build/test presto-hive (as per the requirements mentioned here):
Building https://github.com/xerial/snappy-java.git 1.1.7.6 from source using jdk8 and using the generated jar gets rid of the issue though. Not sure whether to raise PR to use 1.1.7.6 version and update requirements to jdk11. Please advise! |
upgrading the java requirement to java 11 has much bigger implications. Let me start a conversation about it in the slack dev channel |
also, I should clarify that you can build presto with java 11. It just needs to be at least java 8. |
now built with Java 11 |
ENV:
arch=ppc64le
os=RHEL7.6
maven=3.6.3
I was able to compile presto commit c51b285 on ppc64le RHEL 7.6 as
mvn install -DskipTests
. However, there were test failures for 5 packages namely presto-function-namespace-managers, presto-mysql, presto-verifier, presto-benchmark-runner, presto-raptor caused by the following error:After some debugging, I found that the issue was due to missing mysql-Linux-ppc64le.tar.gz in ~/.m2/repository/com/facebook/presto/testing-mysql-server-5/0.6/testing-mysql-server-5-0.6.jar. I could get the tests to PASS by adding mysqld, etc. files from rh-mysql57 installation from my setup to mysql-Linux-ppc64le.tar.gz and then adding that as a part of testing-mysql-server-5-0.6.jar in the local maven repo.
Similarly, I had to replace the native libraries libhadoop.so, libsnappy.so in nativelib/Linux-ppc64le/ of ~/.m2/repository/com/facebook/presto/hadoop/hadoop-apache2/2.7.4-7/hadoop-apache2-2.7.4-7.jar and libsnappyjava.so in org/xerial/snappy/native/Linux/ppc64le/ of ~/.m2/repository/org/xerial/snappy/snappy-java/1.1.7.1/snappy-java-1.1.7.1.jar to get the tests for packages presto-hive, presto-jdbc, presto-geospatial, presto-spark-base to PASS. The test failures which were seen for these packages were caused by one or more of the following errors:
I have the following questions in relation to this:
Thanks in advance!
The text was updated successfully, but these errors were encountered: