holdenk commented on code in PR #36434:
URL: https://github.com/apache/spark/pull/36434#discussion_r907597398


##########
resource-managers/kubernetes/docker/src/main/dockerfiles/spark/decom.sh:
##########
@@ -18,17 +18,24 @@
 #
 
 
-set -ex
+set +e
+set -x
 echo "Asked to decommission"
 # Find the pid to signal
 date | tee -a ${LOG}
-WORKER_PID=$(ps -o pid -C java | tail -n 1| awk '{ sub(/^[ \t]+/, ""); print 
}')
+WORKER_PID=$(ps x -o pid,cmd -C java |grep Executor \

Review Comment:
   We could also do a `killall java` instead but I'm hesistant incase someones 
runing another java process inside the executor container.



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to