[amp_mcq option1=”outputcollector.collect” option2=”outputcollector.get” option3=”outputcollector.receive” option4=”outputcollector.put” correct=”option1″]
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.