PySpark Throwing error Method __getnewargs__([]) does not exist
Using spark inside flatMap or any transformation that occures on executors is not allowed (spark session is available on driver only). It is also not possible to create RDD of RDDs (see: Is it possible to create nested RDDs in Apache Spark?) But you can achieve this transformation in another way – read all content … Read more