Unable to find encoder for type stored in a Dataset. Primitive types (Int, String, etc) and Product types (case classes) are supported by importing spark.im plicits._ Support for serializing other types will be added in future releases.
scala 2018. 10. 29. 19:35spark streaming을 처리할 때 Encoder를 잘 이해하지 못하면, 아래 에러를 많이 만나게 된다.
Unable to find encoder for type stored in a Dataset. Primitive types (Int, String, etc) and Product types (case classes) are supported by importing spark.im plicits._ Support for serializing other types will be added in future releases.
단순히 Serializable 이슈라 하기에는 좀..
spark을 더 공부할 수 있는 꺼리가 할 수 있다.
DataFrame 및 DataSet에 대한 이해도를 높일 수 있다.
https://jaceklaskowski.gitbooks.io/mastering-spark-sql/spark-sql-Encoder.html



댓글을 달아 주세요