I am kind of new to scala and spark. Now I would like to generate a vector on each of the worker. When I use this line, I got two errors:
val b = sc.parallelize(1 to n, n).map( i => DenseVector[Double]](10.0,20.0,30.0,40.0))
No ClassTag available for Vec[Double]
not enough arguments for method map: (implicit evidence$3: scala.reflect.ClassTag[Vec[Double]])org.apache.spark.rdd.RDD[Vec[Double]]. Unspecified value parameter evidence$3.
Could anybody help me on this?