I m trying to merge 2 rdds to one. If my rdd1 consists of 2 records of 2 elements both are strings ex: key_A:value_A and Key_B:value_B
rdd2 also consists of 1 record of 2 elements both of which are strings key_C:value_c
my final rdd would look like this: key_A :value_A , Key_B :value_B , key_C :value_c
we can use union method of rdd but its not working . Plz kindly help while using union of 2 rdds should the row of the 2 differnt rdd contain the same no of elments or there size can differ.......??
unionshould work properly. - Shankar