Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

第五章《迭代型 Spark 应用》勘误与修改建议 #6

Open
JerryLead opened this issue Jul 20, 2020 · 2 comments
Open

第五章《迭代型 Spark 应用》勘误与修改建议 #6

JerryLead opened this issue Jul 20, 2020 · 2 comments

Comments

@JerryLead
Copy link
Owner

No description provided.

@ycli12
Copy link

ycli12 commented Feb 20, 2023

你好,P129页的5.2.3章节中,有一句话,“每轮迭代开始时,Spark首先将w广播到所有task中”,在5.2.2章节中给出的代码样例实际上没有广播,只是放到lambda闭包然后跟随Task序列化发送到Executor,每个Task都有一份

@JerryLead
Copy link
Owner Author

@ycli12 你好,书里对这个过程进行了抽象,这个过程抽象看就是broadcast,只是实现方式是闭包传输,如果参数更大一些,闭包传输不了,就需要单独进行broadcast。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants