Skip to content

Instantly share code, notes, and snippets.

@nateware
Last active June 27, 2024 16:03
Show Gist options
  • Save nateware/6212979 to your computer and use it in GitHub Desktop.
Save nateware/6212979 to your computer and use it in GitHub Desktop.
Hadoop with Mahout simple setup
hadoop fs -rmr temp
MAHOUT_HOME/bin/mahout org.apache.mahout.cf.taste.hadoop.similarity.item.ItemSimilarityJob --input ~/Workspace/beerstats/beer-ratings-by-userid.csv --output ratings-pearson --similarityClassname SIMILARITY_PEARSON_CORRELATION
hadoop jar mahout-examples-0.8-job.jar org.apache.mahout.cf.taste.hadoop.item.RecommenderJob --input ~/Workspace/beerstats/beer-ratings-by-userid.csv --output beer-ratings --similarityClassname SIMILARITY_LOGLIKELIHOOD --maxSimilaritiesPerItem 50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment