How to process Header and Trailer in MapReduce
问题 How to process the Header and Trailer in the file? After processing these lines, it should be removed from the file. The Header line can be found by the offset value 0 and the same trailer the max offset. But the issue here is how we can get both these lines in one mapper? Appreciate your help.. Regards, Mohammed Niaz 回答1: It is possible when we have only one mapper for the given input file. We can process Header and Trailer records in below three options Write a custom InputFormat file and