For a given MR job, I need to create two output files. One file should be the output of Mapper Another file should be the output of Reducer (which is just an aggregation above Mapper).
Can I write both display and gear files in the same job?
EDIT:
In task 1 (phase Mapper only), the Output contains 20 fields in one line, which should be written to hdfs (file1). In Job 2 (Mapper n Converter), Mapper takes input from Job1 output, removes several fields for entering the standard format (10 fields in total), and passes it to the reducer, which writes file2.
I need both file1 and file2 in hdfs ... Now I doubt that in Job1 mapper I can write data to hdfs as file1, and then change the same data and transfer it to the reducer.
PS: At the moment I am using 2 jobs with a chain mechanism. The first task contains only cartography, in seconds - a cartographer and gearbox.
source share