/Hadoop-E

Hadoop-E is an implementation of the PageRanking algorithm based on Hadoop that works better than Hadopi (you know, the french law)

Primary LanguageJava

Hadoop-E Travis Complient

Hadoop-E is an implementation of the PageRanking algorithm based on Hadoop that works better than Hadopi (you know, the french law)

The goal of this project is to understand how pageranking works with Hadoop Apache solution.

How to run

First, make sure that you can build the .jar file with the following commands :

cd Hadoop-E
mvn clean install

then, you just have to use the following command :

$HADOOP_ROOT/hadoop jar target/hadoope-1.0-SNAPSHOT.jar main.java.io.github.cr3ahal0.hadoope.HadoopE

You can either run the crawler (1) or execute the MapReduce program.

Input files must be (for the moment) in a folder named "files/in" located at the place where you run the program
Output files are in the folder "files". "ranking" folder (within "files") contains calculation iterations whereas "result" folder contains final results.

If you want to run Hadoop, type "1" when asked then wait for the job completion :)
If you prefer to run the Pig program (with existing crawled resources), type "2" and wait until the program ends.

If you did choose to run the Pig program, after the first step has ended, you can run the following command :

pig -Dpython.cachedir=/home/{myuser}/tmp pagerank.py

For the moment, Pig' input files must be in "data/in" folder while outputs are located in "data/out".

About

This implementation is based on several articles :