480259 (1) [Avatar] Offline
#1
I get a type mismatch error when running the example code in section 8.3, specifically in listing 8.11:

scala> val r = vr.map(v => (v,pred(vm,mean,cid,v)))
<console>:51: error: type mismatch;
found : (org.apache.spark.graphx.VertexId, String)
(which expands to) (Long, String)
required: Long
val r = vr.map(v => (v,pred(vm,mean,cid,v)))

I am running Spark 2.1 on HDP 2.6