Object cache on Spark executors

前端 未结 3 1138
青春惊慌失措
青春惊慌失措 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:27

    In case serialisation turns out to be impossible, how about storing the lookup objects in a database? It's not the easiest solution, granted, but should work just fine. I could recommend checking e.g. spark-redis, but I am sure there are better solution out there.

提交回复
热议问题