Object cache on Spark executors

前端 未结 3 1130
青春惊慌失措
青春惊慌失措 2021-02-07 14:35

A good question for Spark experts.

I am processing data in a map operation (RDD). Within the mapper function, I need to lookup objects of class A

3条回答
  •  野性不改
    2021-02-07 15:13

    Since A is not serializable the easiest solution is to create yout own serializable type A1 with all data from A required for computation. Then use the new lookup table in broadcast.

提交回复
热议问题