In the last article you have seen how the ruleengine was integrated in the Hadoop mapreduce process to produce a web page from a CSV file (with data from geonames.org). Data is read from the CSV file, processed by the Hadoop framework and the result in then processed further to be displayed on a web page using Highcharts.
I now went ahead and changed the business rules. The data file also has information about different types of mines:
MNAU = gold mine(s) - a mine where gold ore, or alluvial gold is extracted
MNC = coal mine(s) - a mine where coal is extracted
MNCR = chrome mine(s) - a mine where chrome ore is extracted
MNCU = copper mine(s) - a mine where copper ore is extracted
MNFE = iron mine(s) - a mine where iron ore is extracted
MNN = salt mine(s) - a mine from which salt is extracted
I want to display the number of mines per type and country on the web page, so I changed the business rules which I used in the last article accorind to the codes listed above:
And here is the resulting web page from the mapreduce run:
Carpe Diem
Uwe