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

Popular posts from this blog

Is there a better way to structure post methods in Class Based Views -

performance - Why is XCHG reg, reg a 3 micro-op instruction on modern Intel architectures? -

jquery - Responsive Navbar with Sub Navbar -