I want to convert RDD to dataframe, if is the Person type code can perform, but I want to use a map or a json to encapsulate data, don't want to use the specific type
But changing the map after prompt is unusual, I want to ask next in what way can use the format of the data,
Java. Lang. ClassCastException: org. Apache. Spark. SQL. Types. The MapType always be cast to org. Apache. Spark. SQL. Types. StructType My program code
JavaRDD