# One MR should create two outputs -- an ascending list of unique article names and also an ascending list of unique words. # # rm -rf step-8-out-ex; perl step-8-exercise.pl -c 2 -r 2 /home/straka/wiki/cs-text-medium/ step-8-out-ex # less step-8-out-ex/part-* package My::Mapper; use Moose; with 'Hadoop::Mapper'; sub map { my ($self, $key, $value, $context) = @_; # YOUR CODE HERE } package My::Partitioner; use Moose; with 'Hadoop::Partitioner'; sub getPartition { my ($self, $key, $value, $partitions) = @_; # YOUR CODE HERE } package My::Reducer; use Moose; with 'Hadoop::Reducer'; sub reduce { my ($self, $key, $values, $context) = @_; # YOUR CODE HERE } package main; use Hadoop::Runner; my $runner = Hadoop::Runner->new( mapper => My::Mapper->new(), partitioner => My::Partitioner->new(), reducer => My::Reducer->new(), input_format => 'KeyValueTextInputFormat'); $runner->run();