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:
KubernetesClientApplication
is 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-file
or--primary-r-file
keys are used for the MainAppResource--main-class
for the name of the main class--arg
for the driver arguments
Important
The main class must be specified via --main-class
or fromCommandLineArgs
throws an IllegalArgumentException
.
fromCommandLineArgs
is used when:
KubernetesClientApplication
is requested to start