I know that all the values associated with a Key are sent to a single Reducer. Is it the case that a Reducer could get multiple keys at once via it's standard input?
My use case is that I am splitting lines into key-value pairs, then I want to send all lines associated with a key to an API. I'm seeing though that multiple keys get send into the API at once.
Here is some example code that my job is running
Mapper
def main():
for line in sys.stdin
part1 = get_part1(line)
part2 = get_part2(line)
key = '%s - %s' % (part1, part2)
print '%s\t%s' % (key, line)
Reducer
def main():
my_module.sent_to_api(sys.stdin)