We use cookies to ensure you have the best browsing experience on our website. Please read our cookie policy for more information about how we use cookies.
defmapper(record):# use SSN=Employee_ID as the joining keyt,k,v=record.strip().split(',')ift[0]=='E':k,v=v,kmapReducer.emitIntermediate(k,(t[0],v))defreducer(key,values):# a person can have multiple nicknamesforpin[vfort,vinvaluesift=='E']:fordin[vfort,vinvaluesift=='D']:mapReducer.emit((key,p,d))
Cookie support is required to access HackerRank
Seems like cookies are disabled on this browser, please enable them to open this website
Map Reduce Advanced - Relational Join
You are viewing a single comment's thread. Return to all comments →