In MapReduce program, we just set the output path FileOutputFormat.setOutputPath
and write the result to a HDFS file using mapper or reducer's context.write(key, value)
;
How the file writing concept actually works?
Mapper/ Reducer will be continuously emiting the records.
Will each record is sent to HDFS directly?
or
once the application is completed then it will do a copyFromLocal
?
or
it create a temporary files in local file system for each mapper or reducer?