This Apache Spark snippet looks at users who have rated a series of products and pulls out the unique combinations of the products rated by each user to start building a recommendation system. To get there though we will go through a multi-part MapReduce algorithm. Some Terminology: (k,v) denotes