1.Does creation of read only singleton object in each map function is same
as broadcast object as singleton never gets garbage collected unless
executor gets shutdown ? Aim is to avoid creation of complex object at each
batch interval of a spark streaming app.


2.why JavaStreamingContext 's sc () method is deprecated? Whats the other
way to access spark context to broadcast a variable then?
    jssc.sc().broadcast(filter);.

3.Does in streamapp processing executors (executors other than
receivers)stay 24*7 till streaming app is alive?
And task are allocated in threads on these executors?

Thanks
Shushant

Reply via email to