Home > other >  The Spark the clear problem
The Spark the clear problem

Time:10-01

In my program declares a HashMap:
 val filterMap=new HashMap [(String, String), Long] 
Var broadFilterMap=sc. Broadcast (filterMap)

Then the Map is clear:
 filterMap. The clear () 

Results all the RDD is empty,,, I don't know why, what is the spark of this principle? Can't is broadcast variable clear?
  • Related