From fe7ee4ab55e0f57828fa04c3c3de49acb3a8a0dd Mon Sep 17 00:00:00 2001 From: Zhan Lu Date: Fri, 25 Sep 2020 17:10:45 +0800 Subject: [PATCH] !291 [I1WM4J] Add username in docker shutdown * add user to curl --- docker/bin/shutdown-hetu | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docker/bin/shutdown-hetu b/docker/bin/shutdown-hetu index 0260750ce..fcbd75211 100755 --- a/docker/bin/shutdown-hetu +++ b/docker/bin/shutdown-hetu @@ -27,7 +27,7 @@ then fi # Send shutdown request -curl -X PUT -H "Content-Type: application/json" http://localhost:$HETU_PORT/v1/info/state -d '"SHUTTING_DOWN"' +curl -X PUT -H "X-Presto-User: openlk" -H "Content-Type: application/json" http://localhost:$HETU_PORT/v1/info/state -d '"SHUTTING_DOWN"' # Wait for node to exit while true