How can I use java to connect to the coordinator on another server #13387
Replies: 3 comments 1 reply
-
Depending on what you want to do, you can use trino-cli or trino-jdbc if you want to execute a query, or you can use the rest interface if you want to get some status information about the query. |
Beta Was this translation helpful? Give feedback.
-
I want to get some information about the query, such as query progress, execution status and other operations. Personally, I want to use the rest API, but there will be problems when connecting to the coordinator |
Beta Was this translation helpful? Give feedback.
-
Discovery URI pointing to other coordinator simply registers multiple coordinators in the cluster and will cause issues unless you know what you are doing. Also TestingTrinoServer is not built for what you are trying to do so you'll run into lots of issues even if you fix this one. The JDBC driver supports what you are asking for. For just getting stats about query execution you can use the JDBC driver itself - which exposes the query stats (search for |
Beta Was this translation helpful? Give feedback.
-
How can I use java to connect to the coordinator on another server
Beta Was this translation helpful? Give feedback.
All reactions