Open ravi-krovvidi-exa opened 4 years ago
I am able to add a new GATEWAY_BACKEND only via 'http://localhost:8080/entity'
@ravi-krovvidi-exa Can you try below?
curl --location --request POST 'http://localhost:8080/entity?entityType=GATEWAY_BACKEND' \
--header 'Content-Type: application/json' \
--data-raw '{
"name": "presto1",
"proxyTo": "http://localhost:9000",
"active": true,
"routingGroup": "adhoc"
}'
Hi @ayushbilala @ravi-krovvidi-exa, I am able installed presto-Gateway and it' up and runnng and api is also fine but How does presto-cli know about the redirection of url?
Please help...
the cli doesn't need to use the proxy URL, the idea was to use the gateway URL directly and the Presto/Trino traffic would be routed correctly
curl -X POST http://localhost:8080/entity?entityType="GATEWAY_BACKEND" -d '{ "name": "presto1", "proxyTo": "http://localhost:9000","active": true, "routingGroup": "adhoc" }'
no matches found: http://localhost:8080/entity?entityType=GATEWAY_BACKEND
========= followed the steps in documentation and able to view the Presto Gateway UI locally (http://localhost:8080), just not able to add 'GATEWAY_BACKEND'
Note - I built from master branch