I am trying to run the example linear regression code from http://spark.apache.org/docs/latest/mllib-guide.html
But I am getting the following error...am I missing an import? ----code---- import org.apache.spark._ import org.apache.spark.mllib.regression.LinearRegressionWithSGD import org.apache.spark.mllib.regression.LabeledPoint object ModelLR { def main(args: Array[String]) { val sc = new SparkContext(args(0), "SparkLR", System.getenv("SPARK_HOME"), SparkContext.jarOfClass(this.getClass) .toSeq) // Load and parse the data val data = sc.textFile("mllib/data/ridge-data/lpsa.data") val parsedData = data.map { line => val parts = line.split(',') LabeledPoint(parts(0).toDouble, parts(1).split(' ').map(x => x.toDouble).toArray) } ...<snip>... } ----error---- - polymorphic expression cannot be instantiated to expected type; found : [U >: Double]Array[U] required: org.apache.spark.mllib.linalg.Vector - polymorphic expression cannot be instantiated to expected type; found : [U >: Double]Array[U] required: org.apache.spark.mllib.linalg.Vector