We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0565831 commit 624e652Copy full SHA for 624e652
launcher/src/main/java/org/apache/spark/launcher/SparkSubmitCommandBuilder.java
@@ -308,7 +308,8 @@ private boolean isClientMode(Properties userProps) {
308
* Return whether the given main class represents a thrift server.
309
*/
310
private boolean isThriftServer(String mainClass) {
311
- return mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2");
+ return (mainClass != null &&
312
+ mainClass.equals("org.apache.spark.sql.hive.thriftserver.HiveThriftServer2"));
313
}
314
315
0 commit comments