ClientArguments¶
ClientArguments represents a KubernetesClientApplication to start.
Creating Instance¶
ClientArguments takes the following to be created:
-
MainAppResource - Name of the main class of a Spark application to run
- Driver Arguments
ClientArguments is created (via fromCommandLineArgs utility) when:
KubernetesClientApplicationis requested to start
fromCommandLineArgs Utility¶
fromCommandLineArgs(
args: Array[String]): ClientArguments
fromCommandLineArgs slices the input args into key-value pairs and creates a ClientArguments as follows:
--primary-java-resource,--primary-py-fileor--primary-r-filekeys are used for the MainAppResource--main-classfor the name of the main class--argfor the driver arguments
Important
The main class must be specified via --main-class or fromCommandLineArgs throws an IllegalArgumentException.
fromCommandLineArgs is used when:
KubernetesClientApplicationis requested to start