Skip to content

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:

Important

The main class must be specified via --main-class or fromCommandLineArgs throws an IllegalArgumentException.

fromCommandLineArgs is used when:

  • KubernetesClientApplication is requested to start
Back to top