I am using Spark 1.5.0 and I have an issue while creating a dataframe from my rdd.
Here is the code:
case class MyC (myclass: MyClass)
val df = rdd.map {t => MyC(t)}.toDF("cust")
df.show()
Here is the error message:
Exception in thread "main" java.lang.UnsupportedOperationException:
Schema for type MyClass is not supported
Any help with this will be greatly appreciated.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…