There is one solution, you can check the offset of the lines of the files that the cartographer reads. It will be zero for the first line in the file. therefore, you can add a line on the map as follows:
public void map ( LongWritable, , ) throws IOException, InterruptedException {
if(key.get() > 0)
{
your mapper code
}
}
, .
, , .
-