0

enter image description here

as your see, "3L,5L,7L,2L" is a Long Data Type.

how can i using other scala datatype. such as String.

1 Answers1

0

I had a similar issue and I still don't know if that's possible. I can share a little workaround though. In my case I assigned ID to all vertices. Hope it will help

val VertexRDD: RDD[(VertexId, Array[String])] = vfile.map(line => line.split(",")).zipWithIndex().map(_.swap)
Jarek
  • 209
  • 3
  • 8