Currently the 2nd mapper doesn't work. One possible reason might be LongWritable cannot be cast to Text. Basically, it's that the 2nd mapper reads input from some intermediate files on disk (output ...