Refer to this repo and make it work on hadoop 2.x. This distributed recommender system is based on itemCF algorithm, which is implemented by several map-reduce steps.
Run on hadoop:
hadoop jar myHadoop.jar org.conan.myhadoop.recommend.Recommend
Check the results:
hdfs dfs -cat /user/hdfs/recommend/step6/part-r-00000