类 HiveStepConfig
- java.lang.Object
-
- com.baidubce.services.bmr.model.StepConfig
-
- com.baidubce.services.bmr.model.HiveStepConfig
-
public class HiveStepConfig extends StepConfig
Represent configuration for a hive step.A hive step can be configured with name, actionOnFailure, script, input, output and arguments. The essential options are script and actionOnFailure, and the optional ones are name, input, output and arguments.
-
-
构造器概要
构造器 构造器 说明 HiveStepConfig()
-
方法概要
所有方法 实例方法 具体方法 修饰符和类型 方法 说明 HiveStepConfigwithActionOnFailure(String actionOnFailure)Configure the action on failure for the hive step.HiveStepConfigwithAdditionalFile(String remote, String local)Configure the additional file for the step.HiveStepConfigwithArguments(String arguments)Configure the arguments of the hive step.HiveStepConfigwithInput(String input)Configure the input path of the hive step.HiveStepConfigwithName(String name)Configure the name of the hive step.HiveStepConfigwithOutput(String output)Configure the output path of the hive step.HiveStepConfigwithScript(String script)Configure the script path of the hive step.-
从类继承的方法 com.baidubce.services.bmr.model.StepConfig
addAdditionalFile, addProperty, getActionOnFailure, getAdditionalFiles, getName, getProperties, getType, setActionOnFailure, setAdditionalFiles, setName, setProperties, setType, withAdditionalFiles, withProperties, withType
-
-
-
-
方法详细资料
-
withInput
public HiveStepConfig withInput(String input)
Configure the input path of the hive step.- 参数:
input- The input path of the hive step.- 返回:
- HiveStepConfig
-
withScript
public HiveStepConfig withScript(String script)
Configure the script path of the hive step.- 参数:
script- The script path of the hive step.- 返回:
- HiveStepConfig
-
withOutput
public HiveStepConfig withOutput(String output)
Configure the output path of the hive step.- 参数:
output- The output path of the hive step.- 返回:
- HiveStepConfig
-
withArguments
public HiveStepConfig withArguments(String arguments)
Configure the arguments of the hive step.- 参数:
arguments- The arguments of the hive step.- 返回:
- HiveStepConfig
-
withName
public HiveStepConfig withName(String name)
Configure the name of the hive step.- 覆盖:
withName在类中StepConfig- 参数:
name- The name of the hive step.- 返回:
- HiveStepConfig
-
withActionOnFailure
public HiveStepConfig withActionOnFailure(String actionOnFailure)
Configure the action on failure for the hive 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.- 返回:
- HiveStepConfig
-
withAdditionalFile
public HiveStepConfig 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.- 返回:
- HiveStepConfig
-
-