MIT 6.824 Lab1 MapReduce实现 2020 Spring

一、环境准备

  • 1.Linux系统
  • 2.Go环境的安装

二、准备实验的代码

通过课程地址获取 https://pdos.csail.mit.edu/6.824/labs/lab-mr.html

$ git clone git://g.csail.mit.edu/6.824-golabs-2020 6.824
$ cd 6.824
$ ls
Makefile src

三、学习go语言

  • 1.基本语法
  • 2.学习途径
    主要通过learn-go-with-tests项目边写代码边学习
  • 3.学习笔记
  1. Linux下配置Golang开发环境
  2. mapreduce阅读笔记

四、实验准备工作

  • 题目提供的资料:We supply you with a simple sequential mapreduce implementation in src/main/mrsequential.go. It runs the maps and reduces one at a time, in a single process. We also provide you with a couple of MapReduce applications: word-count in mrapps/wc.go, and a text indexer in mrapps/indexer.go. You can run word count sequentially as follows:
    在src/main/mrsequential.go中提供了串行mapreduce的实现,mrapps/wc.go中给了统计单词的实现。可以通过如下方式使用
$ cd src/main
$ go build -buildmode=plugin ../mrapps/wc.go
$ rm mr-out*
$ go run mrsequential.go wc.so pg*.txt
$ more mr-out-0
A 509
ABOUT 2
ACT 8
...

mrsequential.go leaves its output in the file mr-out-0. The input is from the text files named pg-xxx.txt.
测试结果
MIT 6.824 Lab1 MapReduce实现 2020 Spring_第1张图片

你可能感兴趣的:(mit6.824,分布式)