Because that org.apache.spark.mllib.rdd.RDDFunctions._ is mllib private class, it can only be called by function in mllib.
2014-10-28 17:09 GMT+08:00 Stephen Boesch <java...@gmail.com>: > I seem to recall there were some specific requirements on how to import > the implicits. > > Here is the issue: > > scala> import org.apache.spark.mllib.rdd.RDDFunctions._ > <console>:10: error: object RDDFunctions in package rdd cannot be accessed > in package org.apache.spark.mllib.rdd > import org.apache.spark.mllib.rdd.RDDFunctions._ >