Spark algorithm to make a link analysis I'm doing my master thesis on Big Data Analytics. I'm trying to develop a algorithm to identify associations between some products in a supermakert. Imagine that I've this dataset:

Purchase_ID Product_ID  Purchase_Value
    1       2           4.5
    1       3           1.2 
    2       3           1.4 
    2       1           3.5
    2       2           7.3
    3       2           0.5
    3       3           1.0


What I want to conclude is that:
"Every people that by Product_ID 2 also buy 3"

Anyone knows If exists any code algorithm available to use in Spark Mllib? I already search on internet but I didn't found anything...

Anyone can help me?

Many thanks!
This sounds like a classic frequent pattern mining problem, where you're trying to find sets of items that are frequently found together within users' sets of purchases.

Start here: https://spark.apache.org/docs/latest/mllib-frequent-pattern-mining.html