java-pair-rdd

Transform Java-Pair-Rdd to Rdd

混江龙づ霸主 提交于 2019-12-11 00:32:03
问题 I need to transform my Java-pair-rdd to a csv : so i m thinking to transform it to rdd, to solve my problem. what i want is to have my rdd transformed from : Key Value Jack [a,b,c] to : Key value Jack a Jack b Jack c i see that it is possible in that issue and in this issue(PySpark: Convert a pair RDD back to a regular RDD) so i am asking how to do that in java? Update of question The Type of my JavaPairRdd is of Type : JavaPairRDD<Tuple2<String,String>, Iterable<Tuple1<String>>> and this is