Evaluate the max size for a spark broadcast variable

我们两清 提交于 2019-12-11 13:26:37

问题


I'm trying to measure the max size of variable I can broadcast using spark broadcast.

I didn't find any explanation regarding this issue.

did someone measure it? does spark has configuration for broadcast size?


回答1:


Limit for broadcasting has now been increased to 8 GB. you can find the details here.




回答2:


It's currently ~2GB. Anything you broadcast is converted into java byte array during serialization and as java arrays have max size Integer.MAX_VALUE you get this limit. There may currently be some effort increasing this limit: SPARK-6235



来源:https://stackoverflow.com/questions/39226163/evaluate-the-max-size-for-a-spark-broadcast-variable

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!