Spark: Task not Serializable for UDF on DataFrame

后端 未结 1 1350
说谎
说谎 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)
提交回复
热议问题