@@ -74,7 +74,7 @@ class SparkSubmitCommandBuilder extends AbstractCommandBuilder {
74
74
* to parse the command lines for things like bin/spark-shell, which allows users to mix and
75
75
* match arguments (e.g. "bin/spark-shell SparkShellArg --master foo").
76
76
*/
77
- private boolean isSpecialClass ;
77
+ private boolean allowsMixedArguments ;
78
78
79
79
SparkSubmitCommandBuilder () {
80
80
this .sparkArgs = new ArrayList <String >();
@@ -84,11 +84,11 @@ class SparkSubmitCommandBuilder extends AbstractCommandBuilder {
84
84
this ();
85
85
List <String > submitArgs = args ;
86
86
if (args .size () > 0 && args .get (0 ).equals (PYSPARK_SHELL )) {
87
- this .isSpecialClass = true ;
87
+ this .allowsMixedArguments = true ;
88
88
appResource = PYSPARK_SHELL_RESOURCE ;
89
89
submitArgs = args .subList (1 , args .size ());
90
90
} else {
91
- this .isSpecialClass = false ;
91
+ this .allowsMixedArguments = false ;
92
92
}
93
93
94
94
new OptionParser ().parse (submitArgs );
@@ -287,7 +287,7 @@ protected boolean handle(String opt, String value) {
287
287
// non-spark-submit arguments.
288
288
mainClass = value ;
289
289
if (specialClasses .containsKey (value )) {
290
- isSpecialClass = true ;
290
+ allowsMixedArguments = true ;
291
291
appResource = specialClasses .get (value );
292
292
}
293
293
} else {
@@ -303,7 +303,7 @@ protected boolean handleUnknown(String opt) {
303
303
// normal mode, any unrecognized parameter triggers the end of command line parsing, and the
304
304
// parameter itself will be interpreted by SparkSubmit as the application resource. The
305
305
// remaining params will be appended to the list of SparkSubmit arguments.
306
- if (isSpecialClass ) {
306
+ if (allowsMixedArguments ) {
307
307
appArgs .add (opt );
308
308
return true ;
309
309
} else {
0 commit comments