Skip to content

Commit fbb232f

Browse files
Using a special exit code instead of 1 to represent ClassNotFoundException
1 parent 0a7091e commit fbb232f

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

bin/spark-sql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
set -o posix
2525

2626
CLASS="org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver"
27-
CLASS_NOT_FOUND_EXIT_STATUS=1
27+
CLASS_NOT_FOUND_EXIT_STATUS=1024
2828

2929
# Figure out where Spark is installed
3030
FWDIR="$(cd "`dirname "$0"`"/..; pwd)"

core/src/main/scala/org/apache/spark/deploy/SparkSubmit.scala

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ object SparkSubmit {
5454
private val SPARK_SHELL = "spark-shell"
5555
private val PYSPARK_SHELL = "pyspark-shell"
5656

57-
private val CLASS_NOT_FOUND_EXIT_STATUS = 1
57+
private val CLASS_NOT_FOUND_EXIT_STATUS = 1024
5858

5959
// Exposed for testing
6060
private[spark] var exitFn: () => Unit = () => System.exit(-1)

sbin/start-thriftserver.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ set -o posix
2727
FWDIR="$(cd "`dirname "$0"`"/..; pwd)"
2828

2929
CLASS="org.apache.spark.sql.hive.thriftserver.HiveThriftServer2"
30-
CLASS_NOT_FOUND_EXIT_STATUS=1
30+
CLASS_NOT_FOUND_EXIT_STATUS=1024
3131

3232
function usage {
3333
echo "Usage: ./sbin/start-thriftserver [options] [thrift server options]"

0 commit comments

Comments
 (0)