Giter Club home page Giter Club logo

hadoop-pagerank-mda_hw2's Introduction

Hadoop - Page Rank with dead-end data

alt tag
With dead-ends data, it needs to be normalized.

rjnew = normalization of rj
rjnew' = rj in next iteration

In this project, I designed a 5-job architecture.

  1. Count Job: count the number of nodes.
  2. Map Job: Create link map.
  3. PageRank Job: calculate page rank rjnew.
  4. Sum Job: Calculate the sum of PageRank S.
  5. Sort Job: Do the final normalization and sort the output.

It will iterate between PageRank Job and Sum Job until the iteration times you set.

Map Job

Input: line

1 2
1 3
2 3

Output:Node (pageNode|PageRank|outlink)

1|1/N|2,3
2|1/N|3

PageRank Job

Mapper

Input: line

1|1/N|2,3
2|1/N|3

Create two kind of node, OUT node for recording the link map, IN node for calculate PageRank.
Output: <pageNode , Node>

1 1|r1|2,3|OUT
2 1|r2new|IN
3 1|r3new|IN
2 2|r2|3|OUT
3 2|r3new|IN

Reducer

Sum page rank of Nodes which is IN type, and repalce the PageRank. Output:

1 1|r1new'|2,3
2 2|r1new'|3
3 2|r3new'

hadoop-pagerank-mda_hw2's People

Contributors

refu0523 avatar

Watchers

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