<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Sharayu Salunke on Medium]]></title>
        <description><![CDATA[Stories by Sharayu Salunke on Medium]]></description>
        <link>https://medium.com/@sharayu_salunke?source=rss-8af7c205c31a------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>Stories by Sharayu Salunke on Medium</title>
            <link>https://medium.com/@sharayu_salunke?source=rss-8af7c205c31a------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Wed, 02 Dec 2026 17:50:28 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@sharayu_salunke/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[reduceByKey() vs groupByKey()]]></title>
            <link>https://medium.com/@sharayu_salunke/reducebykey-vs-groupbykey-5f6a04216a03?source=rss-8af7c205c31a------2</link>
            <guid isPermaLink="false">https://medium.com/p/5f6a04216a03</guid>
            <category><![CDATA[apache-spark-rdd]]></category>
            <category><![CDATA[groupbykey]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[reducebykey]]></category>
            <dc:creator><![CDATA[Sharayu Salunke]]></dc:creator>
            <pubDate>Sat, 15 Aug 2026 06:54:28 GMT</pubDate>
            <atom:updated>2026-08-15T06:54:28.102Z</atom:updated>
            <content:encoded><![CDATA[<p><em>Pre-requisite: Understanding of python map &amp; lambda function is needed.</em></p><p>Very interesting and popular interview question among interviewers is, what is the difference between reduceByKey() and groupByKey() and which one will you use in below scenario?</p><p>Note: Both reduceByKey and groupByKey are wide transformations performed on spark low level APIs i.e. RDDs.</p><p><strong>Scenario</strong></p><p>You have given a big data file <strong>orders.csv</strong> around size 3.5 GB (consider this file is very big hypothetically). You need to calculate number of orders per order status.</p><p>Given CSV file has below 4 columns:</p><p>order_id, order_date, customer_id, order_status</p><p>To answer this question, lets try executing both ways.</p><h3>reduceByKey()</h3><p>Let’s assume you have multi node cluster and SparkSession is already created as below. As to create RDD we need SparkContext, which is already present under SparkSession.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/670/1*Q9uwFmwv_HAhaGRFg_NujA.png" /></figure><pre>base_rdd = spark.sparkContext.textFile(&quot;/users/sharayu/orders.csv&quot;)</pre><p>Once you created RDD, it will look like as below. Since we are only interested in total number of order status per category, we will apply map function only on column number 4.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/764/1*sEeJXMOnit9BP8spGId29g.png" /></figure><pre>mapped_rdd = base_rdd.map(lambda x: (x.split(&quot;,&quot;)[3],1))</pre><p>Above line will give us paired RDD as below. On which we can apply reduceByKey transformation.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/404/1*0JllBmb2vSvQUd5hZN240Q.png" /></figure><p>Now, what will happen when we call reduceByKey on mapped_rdd internally? Please refer below picture for better understanding.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*KtBxtP60E4DvebZwLdc22A.png" /><figcaption>Illustration of reducedByKey on RDD</figcaption></figure><p><strong><em>Explanation :</em></strong></p><p>i. When we received 3.5 GB of file and create RDD on top of it, the file is divided into partitions and spread across the worker machines.</p><p>ii. Let’s assume, at the beginning total data size on each worker node is around 900 MB (~7 Partitions). After applying Map transformation, let’ say data per machine reduced in size to 200 MB.</p><p>iii. When we apply reducedBy key on this data, local aggregation happens and data gets further reduce, let’s assume it got reduced to 10 KB.</p><p>iv. So now, from each worker node 10 KB of data will be shuffle write t the disk.</p><p>v. And when we call any action only 40 KB of data will be shuffle read from the disk.</p><p><strong><em>Conclusion</em></strong>:</p><p>Out of 3.5 GB only 40 KB of data is shuffled, resulting to the faster processing.</p><p>Below is how spark job execution looks like in real. And you can see in reality even less i.e. 19.8 KB of data is shuffled. And if you observe duration for the job is only 35 seconds.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*4K_QPkkwlOCauszTtBaEsA.png" /></figure><h3>groupByKey()</h3><p>Now let’s try solving same problem using groupByKey(), and see what happens.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*f2PaaxODMhtDoKsgLlMIyQ.png" /></figure><p><strong><em>Explanation :</em></strong></p><p>i. When we received 3.5 GB of file and create RDD on top of it, the file is divided into partitions and spread across the worker machines.</p><p>ii. Let’s assume, at the beginning total data size on each worker node is around 900 MB (~7 Partitions). After applying Map transformation, let’ say data per machine reduced in size to 100 MB.</p><p>iii. When we apply reducedBy key on this data, local aggregation doesn’t happens and entire data gets shuffled across nodes, since to perform groupByKey operation same key should be on single node.</p><p>iv. So now, after shuffling grouping happens and data is written to the disk.</p><p>v. And when we call any action 400 MB of data will be shuffle read from the disk.</p><p><strong><em>Conclusion</em></strong>:</p><p>Out of 3.5 GB 400 MB of data is shuffled, which is huge and would be very costly when data grows. Also, if you observe carefully, in our case we are grouping based on two keys and all our data distributed among two nodes resulting two nodes seating idle. Also in worst case scenario, it might be possible that single node receive a lot of data and give us memory errors.</p><p>Below is how spark job execution looks like in real. And you can see in reality 360 MB of data is shuffled. And if you observe duration for the job is 1 min for 3.5 GB of file.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*aGckIcc3lupiokueSGvYKQ.png" /></figure><h3><strong><em>Final Conclusion:</em></strong></h3><p>The major difference between reduceByKey and groupByKey is local aggregation. In case of reduceByKey we get local aggregation which means more amount of data is processed in parallel, resulting less data shuffle and faster performance. Opposite to reduceByKey, In groupByKey vey less data is processed in parallel, rather most of the data is shuffled to achieve the results giving poor performance. Hence we will always preper reduceByKey over groupByKey.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5f6a04216a03" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Spark]]></title>
            <link>https://medium.com/@sharayu_salunke/understanding-spark-15a9232c583b?source=rss-8af7c205c31a------2</link>
            <guid isPermaLink="false">https://medium.com/p/15a9232c583b</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Sharayu Salunke]]></dc:creator>
            <pubDate>Sat, 08 Aug 2026 11:17:51 GMT</pubDate>
            <atom:updated>2026-08-08T11:17:51.765Z</atom:updated>
            <content:encoded><![CDATA[<p>First of all we need to understand that Spark is a replacement of MapReduce in Hadoop framework which was a processing component.</p><p>Following are the few of the reasons of spark evolution.</p><p><strong>Disadvantages of MapReduce</strong></p><ol><li>Need to write complex MapReduce code in java.</li><li>A lot of disk i/os overhead.</li><li>Only supports batch processing.</li><li>No flexibility to work on data like in spark.</li><li>One might need to think of how mappers and reducers will respond to the code, rather than thinking about main problem.</li></ol><p>So if we say spark resolves all of the above problems, then how exactly it solves it lets try to understand it briefly.</p><p><strong>Official Spark Definition:</strong> Apache spark is a <strong>multi language</strong> engine for executing data engineering, data science &amp; machine learning on single node cluster.</p><p><strong>Simpler Definition:</strong> Spark is a general purpose, <strong>in memory compute engine</strong>.</p><p>From above two definitions, one thing is very clear that spark is just a compute engine we we can plug it with any Storage (HDFS/ADLS/S3) &amp; resource manager (YARN/Kubernetes) of our choice.</p><p>Lets discuss above disadvantages of MapReduce one by one and it’s corresponding solution in Spark.</p><ol><li><strong>Need to write complex MapReduce code in java.</strong></li></ol><p><strong>Solution:</strong> You see we had a lot of dependency on Java to work with MapReduce, but in spark due to available APIs one can use any of the languages like Scala, Java, Python, R to work with spark, also includes libraries for diverse tasks ranging from SQL to streaming and machine learning, and runs anywhere from a laptop to a cluster of thousands of servers. This makes it an easy system to start with and scale-up to big data processing or incredibly large scale.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/585/1*1MCgZH6qhL9-Jv2SuhYEfw.png" /></figure><p>Above figure represents spark toolkit, from which you can understand spark gives user to flexibility to work with low level APIs (RDD) as well as high level APIs.</p><p>RDD — Most flexible and requires sparkContext</p><p>DataFrames — Less flexible than RDDs. Requires sparkSession.</p><p>SparkSQL — A little less flexible compared to RDD and DFs but very easy to work with. Requires sparkSession.</p><p>And this is how spark completely erases dependency on Java and leveraging the learning curve.</p><p><strong>2. A lot of disk i/o overhead.</strong></p><p><strong>Solution: </strong>There is one word in the spark definition i.e <strong>in-memory</strong>, lets understand it.</p><p>First will understand, why disk i/os considered as a problem worth to solve?</p><p>In case of MapReduce, every reducer has to read and write data from and to HDFS. So lets say we have configured 10 reducers, then in this case there will be 20 read and write operations to the HDFS increasing overhead on computing and resulting in slower performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*44eNrpJoGCDw_ItCHrV5PA.png" /><figcaption>Illustration of disk i/os in MapReduce</figcaption></figure><p>But in case of spark (ideal scenario without wide transformations), Data is read and written only once from HDFS and all the intermediate results of one transformations are stored in memory and passed to the next transformations. This approach is more effective giving better performance.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*iXIwrQJiXdrTVk0LcrrAQg.png" /><figcaption>Spark in memory processing</figcaption></figure><p><strong>3. Only supports batch processing &amp; No flexibility to work on data like in spark.</strong></p><p><strong>Solution:</strong> From above spark toolkit, it is clear that we have more ways tto deal with data and no need to write java files to process the data. We can work on data as soon as it arrives. And we can focus more on performance optimization and the actual data requirements.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=15a9232c583b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[MapReduce Explained]]></title>
            <link>https://medium.com/@sharayu_salunke/mapreduce-explained-41133d2321c0?source=rss-8af7c205c31a------2</link>
            <guid isPermaLink="false">https://medium.com/p/41133d2321c0</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[mapreduce]]></category>
            <dc:creator><![CDATA[Sharayu Salunke]]></dc:creator>
            <pubDate>Fri, 31 Jul 2026 12:34:28 GMT</pubDate>
            <atom:updated>2026-07-31T15:02:27.150Z</atom:updated>
            <content:encoded><![CDATA[<h3>Context</h3><p>To understand distributed processing, it is really important to understand how MapReduce works. MapReduce is the processing component of Hadoop architecture. MapReduce is a programming paradigm, which means, particular approach to solve a problem e.g procedural paradigm, Object oriented paradigm etc. In this case our problem is distributed processing, how to process single file on multiple machines (data nodes). Using MapReduce we can solve this problem in Hadoop. MapReduce is simply bundle of java files (jar files). One mapper file, One reducer file and one main file. As per the problem statement, Data engineer would write down the java files and execute these on the data files, this approach make one thing clear that MapReduce isn’t ideal choice for live stream data processing, where we need to process data dynamically as soon as it comes.</p><h3>Working Principle</h3><p>There are two phases in MapReduce:</p><ol><li>Map phase</li><li>Reduce phase</li></ol><p>1st of all we need to understand, what input map phase and reduce phase require in order to process the data.</p><p>Mappers and reducers take input in the form of key, value pairs. Now big question is <strong>how come a normal text, csv files will get converted into key value pairs? </strong>The answer to this is record reader.</p><p>Record Reader reads the files line by line and convert it into (k,v) pairs. And these pairs are given to the mappers as input.</p><p>Let’s understand this with the help of examples.</p><ul><li><strong>input file</strong> <strong>:</strong> file1.txt 500 MB file</li><li><strong>Problem Statement:</strong> Count of each word</li><li><strong>no. of blocks</strong> = 500 MB/128MB = 4 blocks. block 1 = 128 MB, block 2 = 128 MB, block 3 = 128 MB, block 4 = 116 MB</li><li><strong>no. of mapper jobs = no of file blocks</strong>, in this case 4 mapper jobs will run in total.</li><li>Assume we have 4 node cluster, then</li><li><strong>no. of parallel mapper job = no. of cluster nodes</strong></li><li>Let’s say file content is as below:</li></ul><pre>My name is Sharayu<br>I am a big data enthusiast<br>My name is Sharayu<br>I am a big data enthusiast<br>My name is Sharayu<br>I am a big data enthusiast<br>My name is Sharayu</pre><p>Now as per above logic, content of this file will get divided in 4 parts as below and all will be stored in HDFS.</p><pre>My name is Sharayu<br>I am a big data enthusiast              B1<br>==================================<br>My name is Sharayu<br>I am a big data enthusiast              B2<br>===================================<br>My name is Sharayu<br>I am a big data enthusiast              B3<br>====================================<br>My name is Sharayu                    B4</pre><p>When user will run MapReduce file on data files, it will be transferred to the Data nodes to be executed on blocks of file present in HDFS. Then record reader comes into picture to convert each data in key, value format.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dD8DKjkQhvTsznTy3hhw1g.png" /></figure><p>Output of record reader is as below. (Note: Key can be anything depending upon file format, here I have taken normal index for ease of explanation)</p><pre>(0, My name is Sharayu)<br>(1, I am a big data enthusiast)             B1<br>==================================<br>(2, My name is Sharayu)<br>(3, I am a big data enthusiast)             B2<br>===================================<br>(4, My name is Sharayu)<br>(5, I am a big data enthusiast)             B3<br>====================================<br>(6, My name is Sharayu)                     B4</pre><p>So above (K,V) pairs will be input to the mappers and based on mappers logic written output will get generated as (K,V) pairs.</p><p>So this is happening inside mapper (Data Node). You need to remember that mappers and reducers are nothing but the same cluster nodes.</p><pre>(0, My name is Sharayu)                            (My, 1)<br>(1, I am a big data enthusiast) ---&gt; Mapper 1 ---&gt; (name, 1)<br>                                                   (is, 1)<br>                                                   (Sharayu, 1)<br>                                                   (I, 1)<br>                                                   (am, 1)<br>                                                   (a, 1)<br>                                                   (big, 1)<br>                                                   (data, 1)<br>                                                   (enthusiast, 1)</pre><pre>(0, My name is Sharayu)                            (My, 1)<br>(1, I am a big data enthusiast) ---&gt; Mapper 2---&gt;  (name, 1)<br>                                                   (is, 1)<br>                                                   (Sharayu, 1)<br>                                                   (I, 1)<br>                                                   (am, 1)<br>                                                   (a, 1)<br>                                                   (big, 1)<br>                                                   (data, 1)<br>                                                   (enthusiast, 1)</pre><pre>(0, My name is Sharayu)                            (My, 1)<br>(1, I am a big data enthusiast) ---&gt; Mapper 3---&gt;  (name, 1)<br>                                                   (is, 1)<br>                                                   (Sharayu, 1)<br>                                                   (I, 1)<br>                                                   (am, 1)<br>                                                   (a, 1)<br>                                                   (big, 1)<br>                                                   (data, 1)<br>                                                   (enthusiast, 1)</pre><pre>(0, My name is Sharayu) ---&gt; Mapper 4---&gt;  (My, 1) <br>                                           (name, 1)<br>                                           (is, 1)<br>                                           (Sharayu, 1)</pre><p>Once mapper output is generated it is then transferred to reducer (any of one data node) and this is how shuffling comes into picture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eG-qTHaENh68cTKBxp7s7A.png" /></figure><p>Once reducer has all of the data, then it does the sorting and aggregation on the data as below and gives us final output as (key, value) pairs.</p><pre>(My, 1)             (a, 1)     <br>(name, 1)           (a, 1)<br>(is, 1)             (a, 1)<br>(Sharayu, 1)        (am, 1)<br>(I, 1)              (am, 1)<br>(am, 1)             (am, 1)<br>(a, 1)              (big, 1)<br>(big, 1)            (big, 1)<br>(data, 1)           (big, 1)<br>(enthusiast, 1)     (data, 1)<br>(My, 1)             (data, 1)<br>(name, 1)           (data, 1)<br>(is, 1)             (enthusiast, 1)<br>(Sharayu, 1)        (enthusiast, 1)<br>(I, 1)              (enthusiast, 1)    (a, {1,1,1})          (a, 3)<br>(am, 1)             (I, 1)             (am, {1,1,1})         (am, 3)<br>(a, 1)              (I, 1)             (big, {1,1,1})        (big, 3)<br>(big, 1)       ----&gt;(I, 1)          --&gt;(data, {1,1,1})  --&gt;  (data, 3)<br>(data, 1)           (is, 1)            (enthusiast, {1,1,1}) (enthusiast,3)<br>(enthusiast, 1)     (is, 1)            (I,{1,1,1})           (I,3)<br>(My, 1)             (is, 1)            (is, {1,1,1,1})       (is, 4)<br>(name, 1)           (is, 1)            (My, {1,1,1,1})       (My, 4)<br>(is, 1)             (My, 1)            (Name, {1,1,1,1})     (Name, 4)<br>(Sharayu, 1)        (My, 1)            (Sharayu, {1,1,1,1})  (Sharayu, 4)<br>(I, 1)              (My, 1)<br>(am, 1)             (My, 1)<br>(a, 1)              (name, 1)<br>(big, 1)            (name, 1)<br>(data, 1)           (name, 1)<br>(enthusiast, 1)     (name, 1)<br>(My, 1)             (Sharayu, 1)<br>(name, 1)           (Sharayu, 1)<br>(is, 1)             (Sharayu, 1)<br>(Sharayu, 1)        (Sharayu, 1)<br></pre><p>So, by now it is clear that mapper gives us more parallelism than reducers, so in order to be efficient, one should keep in mind that mapper should execute most of the work in order to achieve good performance.</p><p>By default no. of reducer are 1, but we can make it 0 or any numbers other that 1.</p><p>For example, if one wants to filter the data, we don’t need sorting and aggregation, in that case we can set no. of reducers to 0.</p><p>While, when we increase no. of reducers to more than one, output of the mapper need to go to the specific reducer only, and that is decided by hash function which is based on keys of the mappers outputs (One can customize the hash function according to their needs).</p><p><strong>So, how can mappers do more work to avoid overhead on reducers?</strong></p><p>That’s where combiners come into picture.</p><p>Lets consider simple example where we need to find out maximum number.</p><pre>1, 7, 9,<br>8, 2, 5,<br>7, 3, 1<br></pre><p>Let’s say above file gets divided in 3 blocks, and we are dealing with 3 node cluster.</p><p>So, mapper one will work on (1, 7, 9), mapper 2 will work on (8, 2, 5) likewise mapper 3 will work on (7, 3, 1). Since in this case, mappers don’t have much work to do they will pass this data to reducers. So now, reducers will work on entire data. Where we don’t get any parallelism and this is not the ideal case.</p><p>So when we introduce combiners we would run reducer code locally on individual mappers in order to reduce input given to reducer. Below is the pictorial representation of the combiners concept.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*dRljKBpFD80pQ8VQVn40Fg.png" /></figure><p>But when we introduce combiners in our logic we need to be very careful, as when we are dealing with requirements which deals with Average logic, then we might get wrong results. Because average of combiner’s output can mostly be different than average of direct mapper’s output.</p><h3>Evolution of Spark</h3><p>Below are the key bottlenecks due to which spark came into existence replacing MapReduce in Hadoop architecture.</p><p><strong>Disadvantages of MapReduce</strong></p><ol><li>Need to write complex MapReduce code in java.</li><li>A lot of disk i/os overhead.</li><li>Only supports batch processing.</li><li>No flexibility to work on data like in spark.</li><li>One might need to think of how mappers and reducers will respond to the code, rather than thinking about main problem.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=41133d2321c0" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Hadoop Architecture Overview (Legacy)]]></title>
            <link>https://medium.com/@sharayu_salunke/hadoop-architecture-overview-legacy-468f0050a649?source=rss-8af7c205c31a------2</link>
            <guid isPermaLink="false">https://medium.com/p/468f0050a649</guid>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[hdfs-architecture]]></category>
            <category><![CDATA[hadoop-architecture]]></category>
            <dc:creator><![CDATA[Sharayu Salunke]]></dc:creator>
            <pubDate>Mon, 27 Jul 2026 07:58:02 GMT</pubDate>
            <atom:updated>2026-07-29T15:45:16.383Z</atom:updated>
            <content:encoded><![CDATA[<p>Whenever we think about doing any kind of work on any machine, be it monolithic or distributed, we need three basic things like, Storage to store the data, Memory for caching and faster processing and Compute for processing. Similar components are present in Hadoop framework with little modifications as we need to deal with multiple machines communicating with each other over network.</p><p>Since Hadoop is based on distributed processing framework, there are below three core components of Legacy Hadoop.</p><ol><li>HDFS — Hadoop Distributed File System</li><li>MapReduce — Java written distributed processing engine</li><li>YARN — Yet Another Resource Negotiator (Act as resource manager)</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G15enB9kcew8NdL-m1o-LQ.png" /></figure><h3>HDFS</h3><p><strong>So how data gets divided across HDFS?</strong></p><p>Consider we have a big file of 1 GB (Suppose 1 GB is big data hypothetically for ease of explanation)</p><p>This 1 GB file gets divided into blocks of size 128 MB (Set by Hadoop admin, not fixed). So for 1 GB i.e. 1024 MB/128 MB = 8 Blocks per GB</p><p>These blocks are gets distributed on each data node in cluster, lets say we have 4 node cluster then data will be stored as below,</p><p>DN1 — Block 1, Block 5</p><p>DN2 — Block 2, Block 6</p><p>DN3 — Block 3, Block 7</p><p>DN4 — Block 4, Block 8</p><p>Now 1 GB file will be processed by 4 machines in parallel giving faster output.</p><h3><strong>MapReduce</strong></h3><p>This is the actual code written in Java to perform processing on the data and gets executed on data nodes (Logic will be discussed in depth in another blog).</p><h3>YARN</h3><p>It is the resource manager in Hadoop ecosystem. It’s useful for data processing engines like MapReduce to run and shared resources efficiently.</p><p>It has two primary responsiblities:</p><ol><li>Job Scheduling</li><li>Resource Management</li></ol><p><strong>Components of YARN</strong></p><ol><li>Resource Manager : Master Node that manages global resource allocation.</li><li>Node Manager: Slave node that monitors resources on individual nodes.</li><li>Application Master: Manages lifecycle of each individual job.</li></ol><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=468f0050a649" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Hadoop Story]]></title>
            <link>https://medium.com/@sharayu_salunke/the-hadoop-story-1707b83aea0b?source=rss-8af7c205c31a------2</link>
            <guid isPermaLink="false">https://medium.com/p/1707b83aea0b</guid>
            <category><![CDATA[apache]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[parallel-processing]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <dc:creator><![CDATA[Sharayu Salunke]]></dc:creator>
            <pubDate>Sat, 25 Jul 2026 05:04:41 GMT</pubDate>
            <atom:updated>2026-07-25T05:04:41.881Z</atom:updated>
            <content:encoded><![CDATA[<h3>Need</h3><p>Apache Software Foundation (ASF), released Apache Hadoop Version 1.0 in 2011, but the story begins in 2002. When two engineers Doug Cutting and Mike Cafarella were working on Apache Nutch project, where they needed to process around 1 billion of webpages for indexing.</p><h3>Obstacles</h3><p>Processing of 1 billions of web pages, it is not something a normal computer can do. Even for a high end computer with great specifications (Stoarage, Compute, Memory) at start, there are huge chances that at some point we might run out of resources. Even having a big high end computer plays role of a monolithic system where we get limitations on scaling up the resources.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*nQkptShHd1LnT7UzQugY0w.png" /></figure><h3>Solution</h3><p>So to deal with huge, rapidly growing variety of data, distributed approach was followed, where the data gets divided, stored and processed across multiple computers and communicate over secure network which we term it as a cluster. One of the big advantage of Hadoop framework is that, it’s very agile in terms of scaling up the resources. In todays big data era we can find organizations running up to 4000 node cluster for big data processing.</p><h3>Summary</h3><p>Instead of processing huge data on single compute we work on multiple machines, following distributed approach and get maximum performance benefits with optimum amount of money invested. This is how Hadoop was invented and the latest version Hadoop 3.0 was released in 2017.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=1707b83aea0b" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>