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

distributed 模式下不能运行 #9

Open
jason-js opened this issue Mar 15, 2018 · 0 comments
Open

distributed 模式下不能运行 #9

jason-js opened this issue Mar 15, 2018 · 0 comments

Comments

@jason-js
Copy link

感谢你提供的示例,distributed模式下不能运行成功,调试之后发现有三处需要修改:

  1. 入口处wc.go需要执行mapreduce.RunWorker方法,否则程序不执行。
  2. Master和Worker对外曝出的方法没有按照RPC的方法格式,如Master的Wait()、CleanupFiles()、Lock()和Unlock()方法。
  3. Worker的net.Listener监听Accept()没有Close(),导致程序一直处于阻塞状态,不能正常结束。
    PS:从你的代码中学到了更多东西,Thanks!
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

1 participant