MapReduce and Design Patterns - Counting with Counters Overview
5K 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 will be using one utility known as the
0:09
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 count. called counters of the MapReduce Framework
0:32
So, there is one utility known as the counters that will be used in this design pattern
0:37
So, using this utility, the framework can generate a global sum on the map site
0:42
So, in the mapper side, the global sum will be obtained. It is a very efficient process to get the sum of a large dataset
0:50
So ordinary sum algorithms cannot work here because here we are dealing with the big data
0:55
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 use 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
1:46
criteria so mapper will take the key values and for the similar key values
1:51
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're 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 tracker will produce the required outputs
2:42
that is counted A, B, C, D in this way. And the job will have the success
2:47
To have a better idea, please watch the next video. where you will be discussing on this topic into more details. Thanks for watching this
#Data Management
#Programming
#Web Stats & Analytics