Engineering Blog


Learn from our challenges and triumphs as our talented engineering team offers insights for discussion and sharing.

Debugging “ClassCastException:” exceptions when testing Cascading flows

When testing our Hadoop data workflows we've intermittently run into this error, which ends up failing the MapReduce job being tested: java.lang.ClassCastException: cannot be cast to org.apache.hadoop.mapred.FileSplit at org.apache.hadoop.mapred.TextInputFormat.getRecordReader( at org.apache.hadoop.mapred.MapTask.runOldMapper( at A quick search for the error didn't find any obvious problems. When we dug into the problem a a bit more, we noticed a couple ...