How to remove parentheses around records when saveAsTextFile on RDD[(String, Int)]?
You can try the following which is very basic:
rdd.map(x => x._1 + "," + x._2).saveAsTextFile(path)
You just map your RDD[(A,B)] to an RDD[String] and save it.
Before making saveAsTextFile
use map(x => x.mkString(",")
rdd.map(x => x.mkString(",").saveAsTextFile(path)
Output will not have bracket.