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


##########
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:
   interesting, the `-C java` should filter it down to just java processes.



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