spark-instrumented-optimizer/sbin
Punya Biswal f6a9a57a72 [SPARK-6952] Handle long args when detecting PID reuse
sbin/spark-daemon.sh used

    ps -p "$TARGET_PID" -o args=

to figure out whether the process running with the expected PID is actually a Spark
daemon. When running with a large classpath, the output of ps gets
truncated and the check fails spuriously.

This weakens the check to see if it's a java command (which is something
we do in other parts of the script) rather than looking for the specific
main class name. This means that SPARK-4832 might happen under a
slightly broader range of circumstances (a java program happened to
reuse the same PID), but it seems worthwhile compared to failing
consistently with a large classpath.

Author: Punya Biswal <pbiswal@palantir.com>

Closes #5535 from punya/feature/SPARK-6952 and squashes the following commits:

7ea12d1 [Punya Biswal] Handle long args when detecting PID reuse
2015-04-17 11:08:37 +01:00
..
slaves.sh [SPARK-3584] sbin/slaves doesn't work when we use password authentication for SSH 2014-09-25 16:49:15 -07:00
spark-config.sh [SPARK-4076] Parameter expansion in spark-config is wrong 2014-10-24 13:04:35 -07:00
spark-daemon.sh [SPARK-6952] Handle long args when detecting PID reuse 2015-04-17 11:08:37 +01:00
spark-daemons.sh Merge branch 'scripts-reorg' of github.com:shane-huang/incubator-spark into spark-915-segregate-scripts 2014-01-02 17:55:21 +05:30
start-all.sh SPARK-3337 Paranoid quoting in shell to allow install dirs with spaces within. 2014-09-08 10:24:15 -07:00
start-history-server.sh SPARK-3337 Paranoid quoting in shell to allow install dirs with spaces within. 2014-09-08 10:24:15 -07:00
start-master.sh SPARK-3337 Paranoid quoting in shell to allow install dirs with spaces within. 2014-09-08 10:24:15 -07:00
start-slave.sh [Spark-4848] Allow different Worker configurations in standalone cluster 2015-04-13 18:21:16 -07:00
start-slaves.sh [Spark-4848] Allow different Worker configurations in standalone cluster 2015-04-13 18:21:16 -07:00
start-thriftserver.sh [SPARK-4924] Add a library for launching Spark jobs programmatically. 2015-03-11 01:03:01 -07:00
stop-all.sh [Minor]fix the wrong description 2015-03-07 12:35:26 +00:00
stop-history-server.sh SPARK-3337 Paranoid quoting in shell to allow install dirs with spaces within. 2014-09-08 10:24:15 -07:00
stop-master.sh [Minor]fix the wrong description 2015-03-07 12:35:26 +00:00
stop-slave.sh [Spark-4848] Allow different Worker configurations in standalone cluster 2015-04-13 18:21:16 -07:00
stop-slaves.sh [Spark-4848] Allow different Worker configurations in standalone cluster 2015-04-13 18:21:16 -07:00
stop-thriftserver.sh [SPARK-3658][SQL] Start thrift server as a daemon 2014-10-01 15:15:24 -07:00