类 SparkStepConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.StepConfig
-
- com.baidubce.services.bmr.model.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()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 SparkStepConfigwithActionOnFailure(String actionOnFailure)Configure the action on failure for the java step.SparkStepConfigwithAdditionalFile(String remote, String local)Configure the additional file for the step.SparkStepConfigwithArguments(String arguments)Configure the arguments for the step.SparkStepConfigwithJar(String jar)Configure the BOS path for step's .jar file.SparkStepConfigwithName(String name)Configure the name of the step.SparkStepConfigwithSubmitOptions(String submitOptions)Configure the submit options for the step.-
从类继承的方法 com.baidubce.services.bmr.model.StepConfig
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withType
-
-
-
-
方法详细资料
-
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
-
withName
public SparkStepConfig withName(String name)
Configure the name of the step.- 覆盖:
withName在类中StepConfig- 参数:
name- The name of the step.- 返回:
- 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
-
-