Skip to content

Movie Recommendation (1.download and preprocess the dataset; 2.put data onto the hadoop HDFS; 3. run Mahout Collaborative Filtering on Hadoop with MapReduce 4. Get top k movie list for Recommendation)

License

faustineinsun/MahoutHadoopUseCase

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

###Mahout Hadoop Use Case

Purpose of this program:

  • Hadoop 2.2.0 is incompatible with mahout 0.8 problem (problem was resolved on 25/Feb/14), I would like to figure out an alternative method of running use case on Hadoop 2.2.0 with Mahout 0.8 collaborative filtering library
  • Run hadoop program on Eclipse and Yarn

Steps:

  • Setup Hadoop Yarn, hadoop 2.2.0
  • sbin/start_classicCF.sh
    • This script is used to download the dataset,
    • start and put data onto the hadoop HDFS,
    • build a runnable Jar of this project
  • Setup MahoutHadoopUseCase_HOME and HADOOP_HOME in ~/.bash_profile
  • Set up eclipse plugin for hadoop 2.2.0 (Mac OS X 10.9.1)
  • Import this Maven program into eclipse
  • In eclipse, open the file RecommenderJob.java in folder feiyu.com.cfex, and input the arguments as follows, later click Run As -> Run on Hadoop
--input src/main/resources/datasets/preferenceData \\
--output src/main/resources/datasets/DB_output \\
--similarityClassname SIMILARITY_COOCCURRENCE \\
--usersFile src/main/resources/datasets/userid.txt \\
--itemsFile src/main/resources/datasets/itemid.txt \\
--filterFile src/main/resources/datasets/filterUserItemPairs.txt \\
--numRecommendations 8171 \\
--booleanData true \\
--outputPathForSimilarityMatrix src/main/resources/datasets/opfsm \\
--tempDir src/main/resources/datasets/temp

sbin/cleanUpBeforeCommit.sh

About

Movie Recommendation (1.download and preprocess the dataset; 2.put data onto the hadoop HDFS; 3. run Mahout Collaborative Filtering on Hadoop with MapReduce 4. Get top k movie list for Recommendation)

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published