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

Not able to add a "GATEWAY_BACKEND" #121

Open
ravi-krovvidi-exa opened this issue Oct 27, 2020 · 4 comments
Open

Not able to add a "GATEWAY_BACKEND" #121

ravi-krovvidi-exa opened this issue Oct 27, 2020 · 4 comments

Comments

@ravi-krovvidi-exa
Copy link

ravi-krovvidi-exa commented Oct 27, 2020

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

@ravi-krovvidi-exa
Copy link
Author

I am able to add a new GATEWAY_BACKEND only via 'http://localhost:8080/entity'

@ayushbilala
Copy link

@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"
}'

@AvianshKumar
Copy link

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...

@endoplasmicR
Copy link
Contributor

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants