Git Product home page Git Product logo

gospark's Introduction

GoSpark: An In-Memory Distributed Computation Platform in Go

Kuan-Ting Yu, Jiasi Shen, Bolei Zhou

Course project for MIT EECS 6.824: Distributed Systems

Spring 2014, course page: http://css.csail.mit.edu/6.824/2014/

Install Go

mkdir ~/software  # -> this is where I install go
cd ~/software
hg clone -u release https://code.google.com/p/go
cd go/src
./all.bash

Environment Setup

Add these in your .bashrc

export HADOOP_HOME=/usr/local/hadoop   #-> where you install the hadoop
export DSPROJECT_HOME=$HOME/824project   #-> where you put our project
export JAVA_HOME=/usr/lib/jvm/java-6-openjdk/   #-> where is the jdk installed

lzohead () {
	hadoop dfs -cat $1 | lzop -dc | head -1000 | less
}

unalias dfs &> /dev/null
alias dfs="hdfs dfs"
unalias hls &> /dev/null
alias hls="dfs -ls"
export PATH=$PATH:$HADOOP_HOME/bin
# Add Hadoop bin/ directory to PATH
export CLASSPATH=${DSPROJECT_HOME}/HDFSSplitUtil/bin:`hadoop classpath`:${CLASSPATH}

# For Go
export GOROOT=$HOME/software/go
export GOPATH=${DSPROJECT_HOME}/Spark
export PATH=$PATH:$HOME/software/go/bin

Testing

Update master host name (and/or port number) in config.txt.

On scheduler machine, run:

go test -run KMeans -timeout 1h
go test -run MasterMRLineCount -debug

On worker machines, run:

go test -run BasicWorker -timeout 1h
go test -run WorkerSuperUnrel -timeout 1h -debug

Options:

  • -run (required) chooses which application to run.
    • Scheduler: -run KMeans, -run MasterMRLineCount, etc.
    • Workers: -run BasicWorker for reliable, -run WorkerRPCUnrel for unreliable network connection, or -run WorkerSuperUnrel for unreliable network & may crash.
  • -timeout sets the timeout. For example, -timeout 1h for 1 hour.
  • -debug prints verbose log.

Utility Shell

install tmux: sudo apt-get install tmux

get into tmux, then run the sh

tmux
cd shells
./start-all.sh

gospark's People

Contributors

peterkty avatar shenjiasi avatar zhoubolei 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.