|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.baidubce.services.bmr.model.StepConfig
com.baidubce.services.bmr.model.SparkStepConfig
public class SparkStepConfig
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.
Constructor Summary | |
---|---|
SparkStepConfig()
|
Method Summary | |
---|---|
SparkStepConfig |
withActionOnFailure(String actionOnFailure)
Configure the action on failure for the java step. |
SparkStepConfig |
withAdditionalFile(String remote,
String local)
Configure the additional file for the step. |
SparkStepConfig |
withArguments(String arguments)
Configure the arguments for the step. |
SparkStepConfig |
withJar(String jar)
Configure the BOS path for step's .jar file. |
SparkStepConfig |
withName(String name)
Configure the name of the step. |
SparkStepConfig |
withSubmitOptions(String submitOptions)
Configure the submit options for the step. |
Methods inherited from class com.baidubce.services.bmr.model.StepConfig |
---|
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public SparkStepConfig()
Method Detail |
---|
public SparkStepConfig withJar(String jar)
jar
- The BOS path for the step's .jar file.
public SparkStepConfig withSubmitOptions(String submitOptions)
submitOptions
- The main class for the step.
public SparkStepConfig withArguments(String arguments)
arguments
- The arguments for the step.
public SparkStepConfig withActionOnFailure(String actionOnFailure)
actionOnFailure
- The action on step's failure.
public SparkStepConfig withName(String name)
name
- The name of the step.
public SparkStepConfig withAdditionalFile(String remote, String local)
remote
- The remote file of the additional file.local
- The local file of the additional file.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |