Skip to content

Instantly share code, notes, and snippets.

Table:
UserID ItemID clickCount
1 a 1
1 b 1
2 a 1
2 b 1
2 c 1
3 a 1
/*Pig script to convert the user,movie,rating,timestamp data to a user-user graph for running adsorption algorithm.
The format of the input data is
1::122::5::838985046
*/
/*Loading the data into a table. The delimiter might be different for different inputs. */