Save data after group by result in afile


#1

Hi Team,

I got an RDD after group by as below
(2,List(Bhupesh, Amit, Ratan, Dinesh, Sheela))
(1,List(Lokesh, Pavan, Tejas, Kumar, Venkat))

I want to save data as below. Can i know how can i get this
2,Bhupesh, Amit, Ratan, Dinesh, Sheela
1,Lokesh, Pavan, Tejas, Kumar, Venkat