question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

presto-postgresql tests fail on ppc64le

See original GitHub issue

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 presto-postgresql caused by the following error:

io.airlift.command.CommandFailedException: [/tmp/testing-postgresql-server5907429493503395537/bin/pg_ctl, stop, -D, /tmp/testing-postgresql-server5907429493503395537/data, -m, fast, -t, 5, -w] failed to start: Cannot run program "/tmp/testing-postgresql-server5907429493503395537/bin/pg_ctl" (in directory "/root/presto/presto-postgresql/."): error=2, No such file or directory

After some debugging, I found that the issue was due to missing postgresql-Linux-ppc64le.tar.gz in ~/.m2/repository/com/facebook/airlift/testing-postgresql-server/9.6.3-4/testing-postgresql-server-9.6.3-4.jar. I could get this particular issue resolved by adding the necessary binaries, libraries, etc. from rh-postgresql96 installation from my setup to postgresql-Linux-ppc64le.tar.gz and then adding that as a part of testing-postgresql-server-9.6.3-4.jar in the local maven repo.

However, I started getting a different error after that:

2020-05-13T10:33:14.269-0500 SEVERE could not stop postmaster in /tmp/testing-postgresql-server9157088070576433197
java.lang.RuntimeException: io.airlift.command.CommandFailedException: [/tmp/testing-postgresql-server9157088070576433197/bin/pg_ctl, stop, -D, /tmp/testing-postgresql-server9157088070576433197/data, -m, fast, -t, 5, -w] exited with 1
pg_ctl: directory "/tmp/testing-postgresql-server9157088070576433197/data" does not exist

I tried creating a directory data as a part of the tarball in the jar itself alongside the bin, lib, etc. directories. But that didn’t help either.

Please provide me a pointer to help resolve this issue.

Thanks in advance!

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:16 (16 by maintainers)

github_iconTop GitHub Comments

1reaction
rschlusselcommented, Jun 11, 2020

@rschlussel I have a question regarding the cross OS viability of the jars generated by these repos. e.g. hadoop-apache2-2.7.4-7.jar which gets downloaded from central maven repo has libhadoop.so, libsnappy.so in nativelib/Linux-ppc64le/ directory. But since those are not compatible with RHEL 7.6 ppc64le (maybe compatible with ubuntu), it resulted in an error java.lang.RuntimeException: failed to load Hadoop native library when I tried to run tests for presto-hive, etc. and when I tried executing the presto-server which was built.

So, my question is, is it OK to focus on a specific OS for ppc64le similar to what’s done for x86_64 here?

yeah, if the jars are not compatible across different oses , it’s fine to focus on a particular os

0reactions
amitsadaphulecommented, Jul 1, 2020

OK. Thanks for the feedback! I’ll raise another PR and follow your instructions.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Presto-postgresql test fails on ppc64le · Issue #6806 - GitHub
Tried building presto-postgresql on Power Systems. To support the same, modified the testing-postgresql-server-0.3.jar to include jars ...
Read more >
Documentation: 10: 32.1. Running the Tests - PostgreSQL
The regression tests can be run against an already installed and running server, or using a temporary installation within the build tree.
Read more >
PostgreSQL Connector — Presto 0.278 Documentation
The PostgreSQL connector allows querying and creating tables in an external PostgreSQL database. This can be used to join data between different systems ......
Read more >
EasyBuild v4.6.2 documentation (release 20221021.0)
enhance OpenBLAS easyblock to support running LAPACK test suite + checking how many tests fail (#2801); make numexpr easyblock aware of toolchain with...
Read more >
Getting Started With PrestoDB - DZone Refcardz
Testing, Deployment, and Maintenance Deployment DevOps and CI/CD ... Presto is an open-source distributed SQL (on everything) query engine that is designed ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found