You are viewing a single comment's thread. Return to all comments →
When I copy the sample input, the splitting of the columns by tab seems to be failing.
Can you please chnage the input format to use a comma separated and change the line country, state, city, population = line.strip.split("\t")
to use split(',')
This is my third mapreduce solution and in each one of these I have the same problem.
Seems like cookies are disabled on this browser, please enable them to open this website
Map Reduce Tutorials - #3 Composite Keys
You are viewing a single comment's thread. Return to all comments →
When I copy the sample input, the splitting of the columns by tab seems to be failing.
Can you please chnage the input format to use a comma separated and change the line country, state, city, population = line.strip.split("\t")
to use split(',')
This is my third mapreduce solution and in each one of these I have the same problem.