Skip to content

Commit e6c1eb7

Browse files
committed
add a comment in bin/spark-sql to remind user who wants to change the class
1 parent f1c5c8d commit e6c1eb7

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

bin/spark-sql

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
# Enter posix mode for bash
2424
set -o posix
2525

26+
# SparkSQLCLIDriver class name was used in SparkSubmit. Be careful about renaming it.
2627
CLASS="org.apache.spark.sql.hive.thriftserver.SparkSQLCLIDriver"
2728

2829
# Figure out where Spark is installed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,7 @@ object SparkSubmit {
143143
case (_, CLUSTER) if isShell(args.primaryResource) =>
144144
printErrorAndExit("Cluster deploy mode is not applicable to Spark shells.")
145145
case (_, CLUSTER) if isSqlShell(args.mainClass) =>
146-
printErrorAndExit("Cluster deploy mode is not applicable to Spark Sql shell.")
146+
printErrorAndExit("Cluster deploy mode is not applicable to Spark SQL shell.")
147147
case _ =>
148148
}
149149

0 commit comments

Comments
 (0)