Add InputFormat to spark job