GithubHelp home page GithubHelp logo

my-mapreduce's Introduction

My-MapReduce

简易版分布式MapReduce

Base on Go

运行方式

cd main
go run mrcoordinator.go pg-*.txt

// 新启一个命令行窗口
cd main
go build -buildmode=plugin ../mrapps/wc.go
go run mrworker.go wc.so  

运行于本地文件系统,中间结果存储于/main/intermediate运行结果于/main/result目录下可见。

目录介绍

main:主程序入口,包含输入文件和输出文件

mr:具体的coordinator和worker实现,一集rpc结构体敬意

mrapps:一些mapreduce应用的实现

💡

  • ihash预分配reduce任务
  • json格式存储中间文件
  • hasTimeOut判活,无需额外开销
  • 使用Unix socket作为通信方式

  • 完成基本业务需求:实现分布式mapreduce
  • 通过测试脚本
  • 实现基本容错:worker crash,task重分配

my-mapreduce's People

Contributors

breeze-p avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.