解決value toDF is not a member of org.apache.spark.rdd.RDD[People]

編譯以下代碼時web val rdd : RDD[People]= sparkSession.sparkContext.textFile(hdfsFile,2).map(line => line.split(",")).map(arr => People(arr(0),arr(1).trim.toInt)) rdd.toDF 出現錯誤:sql value toDF is not a member
相關文章
相關標籤/搜索