How to avoid using of collect in Spark RDD in Scala?
问题 I have a List and has to create Map from this for further use, I am using RDD, but with use of collect(), job is failing in cluster. Any help is appreciated. Please help. Below is the sample code from List to rdd.collect. I have to use this Map data further but how to use without collect? This code creates a Map from RDD (List) Data. List Format->(asdfg/1234/wert,asdf) //List Data to create Map val listData = methodToGetListData(ListData).toList //Creating RDD from above List val rdd =