类 PigStepConfig


  • public class PigStepConfig
    extends StepConfig
    Represent configuration for a pig step.

    A pig 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.

    • 构造器详细资料

      • PigStepConfig

        public PigStepConfig()
    • 方法详细资料

      • withInput

        public PigStepConfig withInput​(String input)
        Configure the input path of the pig step.
        参数:
        input - The input path of the pig step.
        返回:
        PigStepConfig
      • withScript

        public PigStepConfig withScript​(String script)
        Configure the script path of the pig step.
        参数:
        script - The script path of the pig step.
        返回:
        PigStepConfig
      • withOutput

        public PigStepConfig withOutput​(String output)
        Configure the output path of the pig step.
        参数:
        output - The output path of the pig step.
        返回:
        PigStepConfig
      • withArguments

        public PigStepConfig withArguments​(String arguments)
        Configure the arguments of the pig step.
        参数:
        arguments - The arguments of the pig step.
        返回:
        PigStepConfig
      • withName

        public PigStepConfig withName​(String name)
        Configure the name of the pig step.
        覆盖:
        withName 在类中 StepConfig
        参数:
        name - The name of the pig step.
        返回:
        PigStepConfig
      • withActionOnFailure

        public PigStepConfig withActionOnFailure​(String actionOnFailure)
        Configure the action on failure for the pig 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.
        返回:
        PigStepConfig
      • withAdditionalFile

        public PigStepConfig 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.
        返回:
        PigStepConfig