final void parse(List<String> args)
 SparkSubmitOptionParser — spark-submit’s Command-Line Parser
SparkSubmitOptionParser is the parser of spark-submit's command-line options.
| Command-Line Option | Description | 
|---|---|
  | 
|
  | 
The main class to run (as   | 
  | 
All   | 
  | 
  | 
  | 
  | 
  | 
|
  | 
  | 
  | 
  | 
  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
The option is added to   | 
  | 
|
  | 
|
  | 
The option and a value are added to   | 
  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
  | 
  | 
|
  | 
|
  | 
|
  | 
|
  | 
The option and a value are added to   | 
  | 
|
  | 
|
  | 
The option is added to   | 
  | 
|
  | 
The option is added to   | 
SparkSubmitOptionParser Callbacks
SparkSubmitOptionParser is supposed to be overriden for the following capabilities (as callbacks).
| Callback | Description | 
|---|---|
  | 
Executed when an option with an argument is parsed.  | 
  | 
Executed when an unrecognized option is parsed.  | 
  | 
Executed for the command-line arguments that   | 
SparkSubmitOptionParser belongs to org.apache.spark.launcher Scala package and spark-launcher Maven/sbt module.
| 
 Note 
 | 
org.apache.spark.launcher.SparkSubmitArgumentsParser is a custom SparkSubmitOptionParser.
 | 
 Parsing Command-Line Arguments — parse Method
parse parses a list of command-line arguments.
parse calls handle callback whenever it finds a known command-line option or a switch (a command-line option with no parameter). It calls handleUnknown callback for unrecognized command-line options.
parse keeps processing command-line arguments until handle or handleUnknown callback return false or all command-line arguments have been consumed.
Ultimately, parse calls handleExtraArgs callback.