在把spark的RDD转换到DS时,在spark-shell下,import spark.implicits._;正常,而在jupyter notebook下
<console>:40: error: stable identifier required, but this.$line7$read.spark.implicits found.
解决办法:
val spark2 = spark
import spark2.implicits._
在把spark的RDD转换到DS时,在spark-shell下,import spark.implicits._;正常,而在jupyter notebook下
<console>:40: error: stable identifier required, but this.$line7$read.spark.implicits found.
解决办法:
val spark2 = spark
import spark2.implicits._