Preprocessing step for Spark history file processing