类 SparkStepConfig


  • public class SparkStepConfig
    extends StepConfig
    Represent configuration for a spark step.

    A spark step can be configured with name, actionOnFailure, jar, submitOptions and arguments. The essential options are mapper, input, output and actionOnFailure, and the optional ones are name and arguments.

    • 构造器详细资料

      • SparkStepConfig

        public SparkStepConfig()
    • 方法详细资料

      • withJar

        public SparkStepConfig withJar​(String jar)
        Configure the BOS path for step's .jar file.
        参数:
        jar - The BOS path for the step's .jar file.
        返回:
        SparkStepConfig
      • withSubmitOptions

        public SparkStepConfig withSubmitOptions​(String submitOptions)
        Configure the submit options for the step.
        参数:
        submitOptions - The main class for the step.
        返回:
        SparkStepConfig
      • withArguments

        public SparkStepConfig withArguments​(String arguments)
        Configure the arguments for the step.
        参数:
        arguments - The arguments for the step.
        返回:
        SparkStepConfig
      • withActionOnFailure

        public SparkStepConfig withActionOnFailure​(String actionOnFailure)
        Configure the action on failure for the java step. This property is set to enum value: "Continue": continue to execute other steps. "TerminateCluster": terminate the cluster when this step fails. "CancelAndWait": cancel the other pending steps and set the cluster's status to WAITING.
        覆盖:
        withActionOnFailure 在类中 StepConfig
        参数:
        actionOnFailure - The action on step's failure.
        返回:
        SparkStepConfig
      • withAdditionalFile

        public SparkStepConfig withAdditionalFile​(String remote,
                                                  String local)
        Configure the additional file for the step.
        参数:
        remote - The remote file of the additional file.
        local - The local file of the additional file.
        返回:
        SparkStepConfig