I have two rdd's which both are result of a groupby and look like:
[(u'1', [u'0']), (u'3', [u'1']), (u'2', [u'0']), (u'4', [u'1'])]
and
[(u'1', [u'3', u'4']), (u'0', [u'1', u'2'])]
How can I merge the two and get the following:
[(u'1', [u'0',u'3', u'4']]), (u'3', [u'1']), (u'2', [u'0']), (u'4', [u'1']),(u'0', [u'1', u'2'])]
I tried the join command but but that did not give me the result that I was looking for. Any help is much appreciated.