O'Reilly logo
  • myungchul kang thinks this is interesting:

triplets.foreach

From

Cover of Apache Spark Graph Processing

Note

should be changed like this to see the result in spark-shell

triplets.foreach => triplets.collect.foreach