4
我的代碼工作很好火花外殼:IDEA爲什麼找不到toDS()和toDF()函數?
scala> case class Person(name:String,age:Int)
defined class Person
scala> val person = Seq(Person("ppopo",23)).toDS()
person: org.apache.spark.sql.Dataset[Person] = [name: string, age: int]
scala> person.show()
+-----+---+
| name|age|
+-----+---+
|ppopo| 23|
+-----+---+
,但錯在IDEA:
我已經進口的所有罐子在「火花2.0.0彬hadoop2.7 /罐子/「,但仍然無法找到這個功能。