MapReduce and Design Patterns - Counting with Counters Overview
1K views
Oct 18, 2024
MapReduce and Design Patterns - Counting with Counters Overview https://www.tutorialspoint.com/market/index.asp Get Extra 10% OFF on all courses, Ebooks, and prime packs, USE CODE: YOUTUBE10
View Video Transcript
0:00
Counting with counters overview
0:03
So, in this particular type of design pattern, we'll be using one utility known as the
0:08
counter which will be calculating the global sum on the map site
0:14
And this particular design pattern in this implementation will be having only the mapper
0:18
tasks and there will be no reducer task. So let us go for more discussion on it
0:25
So counting with counters. These patterns use a utility called counters of the MapReduce Framework
0:32
So there is one utility known as a counters that will be used in this design pattern
0:36
So using this utility, the framework can generate a global sum on the map site
0:42
So in the mapper site, the global sum will be obtained. It is a very efficient process to get the sum of a large data set
0:51
So ordinary sum algorithms cannot work here because here we are dealing with the big data
0:56
So, the data set is used. So, that's why to calculate the sum, we are supposed to use this respective method
1:03
So as an example, we can say that if someone wants to track the login by his employee
1:09
to his heavily used public website, he can create this type of counting pattern to do it
1:16
a very efficient way. So how many employees have got logged or what is the current logging pattern on a heavily used system if the website owner wants to get that information they can go for this implementation this job is a map job only so it
1:36
is having only the map job and no deducer will be used in this case and the
1:41
mapper processes each input records and increments the counter value with certain criteria so mapper will take the key values and for the similar
1:50
key values, it will just go on increasing the counters accordingly. So, counters of different mapper count the value and send the updates to the task tracker
2:01
Here we are not having any reducer but here we are having tax tracker and then we'll
2:06
be having the job tracker also. Then the tax tracker send the progress update to the job tracker and job tracker will produce
2:13
the final output. So let us show and discuss it with one proper diagram
2:19
So, this is the diagram we are having. So here we are having the counting mapper
2:23
So here we are having the mapper tasks. And then we're having this increment counter D, increment counter B in this way, the mappers
2:30
will produce the required outputs. And that will be made available to the tax tracker
2:35
So here we are having the tax trackers and then it is going to the job tracker and job
2:40
tracker will produce the required outputs that is counted A, B, C, D in this way and the job
2:46
will have the success. have a better idea, please watch the next videos where you'll be discussing on this topic
2:53
into more details. Thanks for watching this
#Computer Science
#Programming