convert the map rdd into dataframe : I am using spark 1.6.0, I have input map rdd (key,value) pair and want to convert to dataframe.

Input format RDD:

((1, A, ABC), List(pz,A1))

((2, B, PQR), List(az,B1))

((3, C, MNR), List(cs,c1))

Output format:

    +----+----+-----+----+----+
    | c1 | c2 | c3  | c4 | c5 |
    +----+----+-----+----+----+
    | 1  | A  | ABC | pz | A1 |
    +----+----+-----+----+----+
    | 2  | B  | PQR | az | B1 |
    +----+----+-----+----+----+
    | 3  | C  | MNR | cs | C1 |
    +----+----+-----+----+----+


Can someone help me on this.
