public class SparkStepConfig extends StepConfig
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 and Description |
|---|
SparkStepConfig() |
| Modifier and Type | Method and Description |
|---|---|
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.
|
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withTypepublic 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)
withActionOnFailure in class StepConfigactionOnFailure - The action on step's failure.public SparkStepConfig withName(String name)
withName in class StepConfigname - 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.Copyright © 2021. All rights reserved.