I have file of the form User, Item, which I'd like to use with Spark Itemsets. I've done this:
val data = sc.textFile("myfile")
.map(line => (line.trim.split(' ')(0), line.trim.split(' ')(1)))
.groupByKey()
val fpg = new FPGrowth().setMinSupport(0.2).setNumPartitions(10)
val model = fpg.run(data)
but it is complaining that
inferred type arguments [Nothing,(String, Iterable[String])] do not conform to method run's type parameter bounds [Item,Basket <: Iterable[Item]]