3. Write Map Reduce Program for Deidentification problem -> mask email field



0

I wrote a mapreduce  program for this assignment which  seems to be working! . If I can get any other  solution , it would be good to compare and learn. I am posting my approach as a attached text file. Thanks 

 

 



3 Answer(s)


0

Very nice Kumaran. I wil try this too. I want to write a mapreduce program to group results by two fields.

 

eg.

state, city, count(population) as total_population I am not sure how to group data by two fields. I will try to see how to wrtie the program. You can try as well.


0

Hi Kan,

Thanks for sharing an interesting scenario . I am reading that it can be done via composite keys ... In your example  state and city together should form a key. A similar scenario is solved in 

https://tutorials.techmytalk.com/2014/11/14/mapreduce-composite-key-operation-part2/

I will try to write the program and post results. Lets see how it goes


0

Hi Kan,

I have attached the program. Basically the columns in groupby clause of sql query  form a composite key  class in the program. In this case State and city.

 

 

 

 


Your Answer

Click on this code-snippet-icon icon to add code snippet.

Upload Files (Maximum image file size - 1.5 MB, other file size - 10 MB, total size - not more than 50 MB)

Email
Password