outputcollector.collect
outputcollector.get
outputcollector.receive
outputcollector.put
Answer is Right!
Answer is Wrong!
The correct answer is: A. outputcollector.collect
The output of the reduce task is typically written to the FileSystem via outputcollector.collect()
. This method takes a list of key-value pairs as input and writes them to the specified file system.
The other options are incorrect because:
outputcollector.get()
returns the next key-value pair from the output collector.outputcollector.receive()
registers a callback to be invoked when the next key-value pair is available from the output collector.outputcollector.put()
adds a key-value pair to the output collector.