def main(input, output, num_workers): fnames = reader.smart_find_logs(input) pipeline.pool(fnames, util.identity, local_reducer, global_reducer, num_workers) dump_counts(global_counts, output)
def main(input, output, num_workers): fnames = reader.smart_find_logs(input) roller = util.rollover(output) pipeline.pool(fnames, mapper, util.identity, roller.writelines, num_workers)