I have a huge data set with almost 600 columns but, while I am trying to create a DF it is failing with
Exception in thread "main" java.lang.ClassFormatError: Too many arguments in method signature in class file
Sample code:
def main(args: Array[String]): Unit = {
val data = sc.textFile(file);
val rd = data.map(line => line.split(",")).map(row => new Parent(row(0), row(1), ........row(600)))
rd.toDF.write.mode("append").format("orc").insertInto("Table")
}
Can someone help how to perform workaround for this?.
spark.read.csv()?Parentto have aList[String]as the single member.