Hadoop::Streaming::Role::Emitter - Role to provide emit, counter, and status interaction with Hadoop::Streaming.


Hadoop-Streaming documentation  | view source Contained in the Hadoop-Streaming distribution.

Index


NAME

Top

Hadoop::Streaming::Role::Emitter - Role to provide emit, counter, and status interaction with Hadoop::Streaming.

VERSION

Top

version 0.110030

METHODS

Top

emit

    $object->emit( $key, $value )

This method emits a key,value pair in the format expected by Hadoop::Streaming. It does this by calling $self->put(). This catches errors from put and turns them into warnings.

put

    $object->put( $key, $value )

This method emits a key,value pair to STDOUT in the format expected by Hadoop::Streaming: ( key \t value \n )

counter

    $object->counter(
        group   => $group,
        counter => $countername,
        amount  => $count,
    );

This method emits a counter key to STDERR in the format expected by hadoop: reporter:counter:<group>,<counter>,<amount>

status

    $object->status( $message )

This method emits a status message to STDERR in the format expected by Hadoop::Streaming: reporter:status:$message\n

AUTHORS

Top

COPYRIGHT AND LICENSE

Top


Hadoop-Streaming documentation  | view source Contained in the Hadoop-Streaming distribution.