spark-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Marcelo Vanzin <van...@cloudera.com>
Subject Re: Task not serializable: collect, take
Date Thu, 01 May 2014 22:59:01 GMT
Have you tried making A extend Serializable?


On Thu, May 1, 2014 at 3:47 PM, SK <skrishna.id@gmail.com> wrote:
> Hi,
>
> I have the following code structure. I compiles ok, but at runtime it aborts
> with the error:
> Exception in thread "main" org.apache.spark.SparkException: Job aborted:
> Task not serializable: java.io.NotSerializableException:
> I am running in local (standalone) mode.
>
> trait A{
>   def input(...): ...
>   def output(...)
>   def computeSim(...): ... { }
> }


-- 
Marcelo

Mime
View raw message