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

Presto C++ can only be used as a worker but not as a coordinator? #23742

Closed
linghengqian opened this issue Sep 28, 2024 · 1 comment
Closed
Labels

Comments

@linghengqian
Copy link

Describe the problem you faced

To run the functional tests using existing docker images, specify -DcoordinatorImage and -DworkerImage in the run/debug configurations of the test as VM options. For example:

-DcoordinatorImage="public.ecr.aws/oss-presto/presto:0.287-20240619190653-db8458d" -DworkerImage="public.ecr.aws/oss-presto/presto-native:0.287-20240619190653-db8458d"
  • Does this command mean that Presto C++ can only be used as a worker but not as a coordinator?
  • I'm not sure if there are any additional limitations. If this is a known limitation, can I try to compile Presto Server as a GraalVM Native Image and use this gcc debuggable C/C++ program as the coordinator? Can this also ensure that both the worker and coordinator are VM-free programs?

Environment Description

  • Presto version used: 0.289
  • Storage (HDFS/S3/GCS..): Um, the storage inside the Docker Image should be memory-level?
  • Data source and connectors or catalogs used: Memory Connector
  • Deployment (Cloud or On-prem): On-prem
  • Pastebin link to the complete debug logs: Maybe not.

Steps To Reproduce

Steps to reproduce the behavior:

  1. Open https://github.com/prestodb/presto/blob/0.289/presto-native-execution/testcontainers/README.md#2-run-functional-tests .

Expected behavior

  • A more explicit clarification should be present in the relevant MarkDown documentation.

Additional context

Stacktrace

  • Null.
@elharo
Copy link
Contributor

elharo commented Oct 1, 2024

Correct. Presto C++ is only for the worker, not the coordinator.

As to GraalVM, you're welcome to try. Might work, might not. IMHO it's not likely that would be the path forward for the entire project — mostly we're happy with a pure Java coordinator — but you never know.

@elharo elharo closed this as completed Oct 1, 2024
@github-project-automation github-project-automation bot moved this from 🆕 Unprioritized to ✅ Done in Bugs and support requests Oct 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
Archived in project
Development

No branches or pull requests

2 participants