#NEWLINE# def build_pig_step( parsed_step , release_label , region = None ) : #NEWLINE# #INDENT# args = parsed_step . get ( 'Args' ) #NEWLINE# emrutils . check_required_field ( structure = constants . PIG_STEP_CONFIG , name = 'Args' , value = args ) #NEWLINE# emrutils . check_empty_string_list ( name = 'Args' , value = args ) #NEWLINE# name = _apply_default_value ( arg = parsed_step . get ( 'Name' ) , value = constants . DEFAULT_PIG_STEP_NAME ) #NEWLINE# action_on_failure = _apply_default_value ( arg = parsed_step . get ( 'ActionOnFailure' ) , value = constants . DEFAULT_FAILURE_ACTION ) #NEWLINE# return emrutils . build_step ( jar = _get_runner_jar ( release_label , region ) , args = _build_pig_args ( args , release_label , region ) , name = name , action_on_failure = action_on_failure )