I have a use case where i am using collect().toMap (Group by certain column
and finding count ,creating map with a key) and use that map to enable some
further calculations.

I am getting Out of memory errors and is there any alternative than
.collect() to create a structure like Map or some better way to handle
this?.

Thank you ,
kumar

Reply via email to