I have some data below:
b   3
c   1
a   1
b   2
b   1
a   2
I want to repartition 3 sections by first column, and save as files, the result should be like this(needn't sort):
//file: part-00000
a   1
a   2
//file: part-00001
b   3
b   2
b   1
//file: part-00002
c   1
I try to call repartition function, but it can't achieve my purpose.
How to do it? Thank you very much!