We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
You can continue the conversation there. Go to discussion →
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
An error was occurred when I tried to query data with Trino Rest API.
Java Code:
try { HttpPost httpPost = new HttpPost("http://address:port/v1/statement"); httpPost.addHeader("X-Trino-Catalog", "mongodb"); httpPost.addHeader("X-Trino-Schema", "database"); StringEntity stringEntity = new StringEntity("select * from table;", ContentType.APPLICATION_JSON); httpPost.setEntity(stringEntity); CloseableHttpResponse closeableHttpResponse = closeableHttpClient.execute(httpPost); LOGGER.info("result: " + closeableHttpResponse); } catch (Exception e) { LOGGER.error("failed: ", e); }
Exception:
HTTP/1.1 405 Method Not Allowed
Trino Version:
449
Trino Config:
coordinator=true # worker include coordinator node-scheduler.include-coordinator=false http-server.http.port=8000 discovery.uri=http://localhost:8000
The text was updated successfully, but these errors were encountered:
No branches or pull requests
An error was occurred when I tried to query data with Trino Rest API.
Java Code:
Exception:
Trino Version:
Trino Config:
The text was updated successfully, but these errors were encountered: