• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Tim Cooke
  • Liutauras Vilda
  • Jeanne Boyarsky
  • paul wheaton
Sheriffs:
  • Ron McLeod
  • Devaka Cooray
  • Henry Wong
Saloon Keepers:
  • Tim Holloway
  • Stephan van Hulst
  • Carey Brown
  • Tim Moores
  • Mikalai Zaikin
Bartenders:
  • Frits Walraven

Is this the correct way to implement this hadoop map reduce program?

 
Ranch Hand
Posts: 2951
13
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For extremely large volume of JSON data which has to be processed using batch processing, the data will be having customer, equipmentId and an array of values for various attributes. Each customer will have multiple equipments and and each equipment will have this array. This will be computed against threshold conditions stored in database for some of the attributes of an equipment of a customer. The result will be true or false based on whether condition passes or not. If the result is true, it will call a REST API.


Mapper - Read the input and form the key value pairs to be emitted from the mapper as below:

Key to be emitted from mapper : combination of customerId and equipmentId.
Value to be emitted from mapper: the array of attributes.


Reducer: For each key (customerId, equipmentId combination), do the below:

Fetch its list of conditions from the database and compute results (true/false). If the result is true, call the REST API.


Is this the right way to implement this hadoop map reduce program?

Thanks.






 
Put a gun against his head, pulled my trigger, now he's dead, that tiny ad sure bled
Gift giving made easy with the permaculture playing cards
https://coderanch.com/t/777758/Gift-giving-easy-permaculture-playing
reply
    Bookmark Topic Watch Topic
  • New Topic