Hadoop::Streaming::Role::Emitter - Role to provide emit, counter, and status interaction with Hadoop::Streaming.
version 0.110030
$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.
$object->put( $key, $value )
This method emits a key,value pair to STDOUT in the format expected by Hadoop::Streaming: ( key \t value \n )
$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>
$object->status( $message )
This method emits a status message to STDERR in the format expected by Hadoop::Streaming: reporter:status:$message\n
andrew grangaard <spazm@cpan.org>
Naoya Ito <naoya@hatena.ne.jp>
This software is copyright (c) 2011 by Naoya Ito <naoya@hatena.ne.jp>.
This is free software; you can redistribute it and/or modify it under the same terms as the Perl 5 programming language system itself.
To install Hadoop::Streaming, copy and paste the appropriate command in to your terminal.
cpanm
cpanm Hadoop::Streaming
CPAN shell
perl -MCPAN -e shell install Hadoop::Streaming
For more information on module installation, please visit the detailed CPAN module installation guide.