Spark was giving me serialization errors because the parameters to the SparkIngest class are not serializable. Is there another way around this?