Graceful shutdown worker failed when Trino Environment with https and authentication #18621
-
My Trino Environment as following: (2)etc/access-control.properties (3) etc/security/rules.json (4)
Can anybody help me? What's wrong with it? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment
-
I found the answer, Just replacing “ -u '{user}:{password}' ” with " -H 'X-Trino-User: {user}' " will run OK. curl -v -k -X PUT -d '"SHUTTING_DOWN"' -H "Content-type: application/json" -H 'X-Trino-User: {user}' https://{worker}:{port}/v1/info/state |
Beta Was this translation helpful? Give feedback.
I found the answer, Just replacing “ -u '{user}:{password}' ” with " -H 'X-Trino-User: {user}' " will run OK.
curl -v -k -X PUT -d '"SHUTTING_DOWN"' -H "Content-type: application/json" -H 'X-Trino-User: {user}' https://{worker}:{port}/v1/info/state