类 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

        public HiveStepConfig()
    • 方法详细资料

      • 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