Coder Social home page Coder Social logo

mapreduceexercises's Introduction

MapReduce exercises

Sample of exercises solved using Hadoop MapReduce

Word count

Counts the number of each word in any text file

First char count

Same as before but for each first letter of each word

Inverted index

Given any text file it builds an inverted index

Log parser

For a any given file with log records like:

10.223.157.186 - - [15/Jul/2009:14:58:59 -0700] "GET / HTTP/1.1" 403 202

It first filters those whose status code isn't 2XX.

Then we count the number of requests for each URL. Then we count number of request for each month for year 2010. Finally the count of requests for each hour for year 2010.

Friends recommender

For a any given file with lines like:

ID \t ID1,ID2,...,IDn

We suggest a top 10 of users for each user who aren't already friend and ordered by their number of friends in common and their IDs.

Bakery

Given a dataset which consists of the following files:

  • customers.csv : information about the bakery's customers
  • goods.csv : information about the baked goods offered for sale by the bakery
  • items.csv : itemized reciept infromation for purchases
  • reciepts.csv : general reciept information for purchases

We count the total amount of money spent by each user, which users have bought more than once per day and the list of those dates and for each product the total number of units sold.

mapreduceexercises's People

Contributors

hdelcampo avatar khushbukp 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.