You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@spark.apache.org by "Yang Yang (JIRA)" <ji...@apache.org> on 2016/10/31 23:56:58 UTC

[jira] [Created] (SPARK-18189) task not serializable with groupByKey() + mapGroups() + map

Yang Yang created SPARK-18189:
---------------------------------

             Summary: task not serializable with groupByKey() + mapGroups() + map
                 Key: SPARK-18189
                 URL: https://issues.apache.org/jira/browse/SPARK-18189
             Project: Spark
          Issue Type: Bug
            Reporter: Yang Yang


just run the following code 

val a = spark.createDataFrame(sc.parallelize(Seq((1,2),(3,4)))).as[(Int,Int)]
val grouped = a.groupByKey({x:(Int,Int)=>x._1})
val mappedGroups = grouped.mapGroups((k,x)=>{(k,1)})
val yyy = sc.broadcast(1)
val last = mappedGroups.rdd.map(xx=>{
  val simpley = yyy.value
  
  1
})




spark says Task not serializable







--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

---------------------------------------------------------------------
To unsubscribe, e-mail: issues-unsubscribe@spark.apache.org
For additional commands, e-mail: issues-help@spark.apache.org