I get org.apache.spark.SparkException: Task not serializable when I try to execute the following on Spark 1.4.1:
org.apache.spark.SparkException: Task not serializable
import java.sql.{Date, Timestamp} i
Try:
object ConversionUtils extends Serializable { ... }