1,John,NY 2,Bill,FL 3,Harry,TX
I have a textfile with above data.
val rdd = sc.textFile("/path").map(x=>(x.split(",