run_hive_script ( $script, $args )

Step that runs a Hive script on your job flow.

Access

public static

Parameters

Parameter

Type

Required

Description

$script

string

Required

The script to run with script-runner.jar.

$args

array

Optional

An indexed array of arguments to pass to the script.

Returns

Type

Description

array

A standard array that is intended to be passed into a CFStepConfig object.

Related Methods

See Also

Source

Method defined in utilities/hadoopstep.class.php | Toggle source view (8 lines) | View on GitHub

public static function run_hive_script($script, $args = null)
{
    if (!$args) $args = array();
    $args = is_array($args) ? $args : array($args);
    $args = array_merge(array('--run-hive-script', '--args', '-f', $script), $args);

        return self::hive_pig_script('hive', $args);
}

Copyright © 2010–2013 Amazon Web Services, LLC


Feedback