how to create a global variable in spark that can be used across all nodes -
this question has answer here:
i need use variable across nodes in spark yarn cluster. broadcast variables in spark immutable so, not useful in case. need similar approach supports both read , write.
regards, sorabh
you cannot, spark built on principle of immutability, in fact distributed framework works leveraging concepts of immutability.
here similar question , beautiful explanation : how define global read\write variables in spark
Comments
Post a Comment