Code Monkey home page Code Monkey logo

mapreduce-9's Introduction

MapReduce on EC2

created by Vineet Jain, September 2013

This project is was created to implement MapReduce on gigabytes worth of text documents and calculate the co-occurrence rate between the words in the text file and a specified target word. To optimize parallelization, this project was run on Amazon EC2 servers as well.

Parameters can be specified in the configuration file, titled conf.xml

###Usage: Convert your input .txt file into a .seq file that is readable by hadoop
make generate-input myinput=YOUR_INPUT_FILE.txt

You can launch a hadoop job by running the following command: $ hadoop jar proj1.jar Proj1 -conf conf.xml <params> <input> <intermediateDir> <outDir>

The params <intermediateDir> and <outDir> specify the intermediate and output directories. These can be whatever you like. The intermediate directory will hold the output from the first MapReduce job, which is used as input for the second job. The <params> field supports two parameters, -Dcombiner and -DrunJob2. Setting -Dcombiner=true will turn on the combiner, while setting -Dcombiner=false will turn it off. Setting -DrunJob2=false will cause only the first job to run, and will cause its output to be in a .txt format instead of as sequence files. The default value for -Dcombiner is false and -DrunJob2 is true.

Your output will be found in <outDir>/part-r-00000
It displays the cooccurrence rates in descending order.

mapreduce-9's People

Contributors

vinee109 avatar

Watchers

James Cloos avatar sivanantham chellam 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.