Spark: Task not Serializable for UDF on DataFrame

后端 未结 1 1348
说谎
说谎 2021-02-05 06:32

I get org.apache.spark.SparkException: Task not serializable when I try to execute the following on Spark 1.4.1:

import java.sql.{Date, Timestamp}
i         


        
相关标签:
1条回答
  • 2021-02-05 07:14

    Try:

    object ConversionUtils extends Serializable {
      ...
    }
    
    0 讨论(0)
提交回复
热议问题