aboutsummaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorCheng Hao <hao.cheng@intel.com>2015-02-19 12:07:51 -0800
committerAndrew Or <andrew@databricks.com>2015-02-19 12:07:51 -0800
commit94cdb05ff7e6b8fc5b3a574202ba8bc8e5bbe689 (patch)
treebcf17594668e504f97dd4158d09003b0a2b19ed3 /sbin
parent90095bf3ce9304d09a32ceffaa99069079071b59 (diff)
downloadspark-94cdb05ff7e6b8fc5b3a574202ba8bc8e5bbe689.tar.gz
spark-94cdb05ff7e6b8fc5b3a574202ba8bc8e5bbe689.tar.bz2
spark-94cdb05ff7e6b8fc5b3a574202ba8bc8e5bbe689.zip
[SPARK-5825] [Spark Submit] Remove the double checking instance name when stopping the service
`spark-daemon.sh` will confirm the process id by fuzzy matching the class name while stopping the service, however, it will fail if the java process arguments is very long (greater than 4096 characters). This PR looses the check for the service process. Author: Cheng Hao <hao.cheng@intel.com> Closes #4611 from chenghao-intel/stopping_service and squashes the following commits: a0051f6 [Cheng Hao] loosen the process checking while stopping a service
Diffstat (limited to 'sbin')
-rwxr-xr-xsbin/spark-daemon.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/sbin/spark-daemon.sh b/sbin/spark-daemon.sh
index ec6d0b5a40..e1bcc7d642 100755
--- a/sbin/spark-daemon.sh
+++ b/sbin/spark-daemon.sh
@@ -166,7 +166,7 @@ case $option in
if [ -f $pid ]; then
TARGET_ID="$(cat "$pid")"
- if [[ $(ps -p "$TARGET_ID" -o args=) =~ $command ]]; then
+ if [[ $(ps -p "$TARGET_ID" -o comm=) =~ "java" ]]; then
echo "stopping $command"
kill "$TARGET_ID"
else