errors in spark