<?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 Meenakshi Sundaram Sekar on Medium]]></title>
        <description><![CDATA[Stories by Meenakshi Sundaram Sekar on Medium]]></description>
        <link>https://medium.com/@meenakshisundaramsekar?source=rss-56efd8f83bb6------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/0*Vp4gkzxpSxcmbRHS.</url>
            <title>Stories by Meenakshi Sundaram Sekar on Medium</title>
            <link>https://medium.com/@meenakshisundaramsekar?source=rss-56efd8f83bb6------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sat, 28 Nov 2026 08:14:10 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meenakshisundaramsekar/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[HDFS (Hadoop distributed File System) Architecture in a nutshell]]></title>
            <link>https://medium.com/@meenakshisundaramsekar/hdfs-hadoop-distributed-file-system-architecture-in-a-nutshell-90b5f57dcb14?source=rss-56efd8f83bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/90b5f57dcb14</guid>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[mapreduce]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[hdfs]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Meenakshi Sundaram Sekar]]></dc:creator>
            <pubDate>Wed, 09 May 2018 12:27:44 GMT</pubDate>
            <atom:updated>2018-05-27T09:43:45.815Z</atom:updated>
            <content:encoded><![CDATA[<p><strong>HDFS (Hadoop distributed File System) Architecture in a nutshell</strong></p><p>The Hadoop distributed File System (HDFS) is Hadoop’s storage platform. Though Hadoop can interact can with multiple different filesystems, HDFS is Hadoop’s primary input data source and target for data processing operations.</p><p>HDFS is designed based on the Problem statements defined behind for building a platform like Hadoop.</p><p>1. Is Scalable (Economically) — for processing Multiple PETA BYTES of data captured in internet scale</p><p>2. Is distributed — in order to process the <strong>Petabytes</strong> of data in <strong>parallel</strong> mode</p><p>3. Is Fault tolerant — since the data is distributed, data is <strong>replicated</strong> in blocks to support the tasks failures</p><p>4. Uses commodity hardware — cost effective platforms for<strong> cheaper storage</strong>.</p><p><strong>HDFS Files, Blocks and Replication</strong></p><p>HDFS is a virtual filesystem meaning that it appears to client as one system, but the underlying data is located in multiple different locations. HDFS is deployed on top of native filesystems such as ext3,ext4 filesystems available on Linux filesystems.</p><p>HDFS is referred to as WORM (Write Once Read Many) filesystem and one of most important properties is the IMMUTABILITY. Consider the <strong>IMMUTABILITY </strong>as design solution to the Hadoop original problem statement of processing the Peta bytes of internet scale data in distributed parallel fashion across the clusters<strong>.</strong> You basically cannot update the data in HDFS and concept <strong>of immutability supports in-memory processing in Spark</strong> data processing architectures.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*25G1-FpAewKRhv928mo_zA.jpeg" /></figure><p>Input files are <strong>DISTRIBUTED</strong> (Splitted) into HDFS Blocks ( <strong>Hadoop problem statement</strong>: To process the petabytes of internet scale data. <strong>Design solution</strong>: HDFS ingest the data by distributing the files into multiple blocks of 128 MB in size. So now the data can be processed in parallel). Also this enables Shared nothing — Distributed,Parrallel processing of data.</p><p>HDFS Blocks are 128 MB in size (configurable by the client). Files are split into blocks upon ingestion into HDFS. For example when you try to load/ingest a 400 MB file into HDFS, files are splitted into 4 blocks of size Block1(128MB),Block2(128 MB), Block3(128MB) and Block4 (16 MB)</p><p>HDFS blocks are replicated ( <strong>Hadoop Problem statement</strong> : To process the petabytes of internet scale data and a fault tolerant system. <strong>Design Solution:</strong> Files are splitted into blocks to support parallel processing of data and also replicated to support the FAULT TOLERANT statement and also increased opportunities for data locality (taking processing to data)</p><p><strong>HDFS Components:</strong></p><p><strong>The NameNode: </strong>is the HDFS master node process which governs the distributes filesystem. The NameNode’s most important function is managements of Filesystems metadata.</p><p>HDFS metadata is the filesystem catalog which contains directories, File objects and their related properties and attributes (such as ACLS — Access control Lists — Which defines which users or groups have access to the file objects).</p><p>The metadata is stored in the resident memory of the NameNode process to efficiently serve the client queries related to the filesystem. There are also disk images of the metadata including a snapshot and a journaling function to ensure durability and crash consistency of the metadata.</p><p>The NameNode in-memory representation of metadata includes the block location of the block which comprise the files in HDFS and this is only the stateful representation of the relationship between the files and blocks in HDFS.</p><p>The NameNode services the queries from the client (which could be users querying the filesystem or a spark application wishing to write a output into HDFS). However, the data from the client does not go through the NameNode. Instead the Client interacts with the NameNode to get directives which cluster nodes to communicate with to get or put the blocks.</p><p><strong>The DataNodes: </strong>are the nodes on the cluster where the data is stored and managed in the Hadoop platform. <strong>DataNodes</strong> are responsible for:</p><p>1. Participating in the block replication pipeline</p><p>2. Providing block reports to the NameNode</p><p>3. Manages local volumes and storage</p><p>Block reports are regular messages sent from the DataNode to NameNode to provide the NameNode with the inventory of blocks stored on the DataNode. This inventory is used to populate and maintain the NameNode metadata catalog.</p><p>Checksums are calculated upon ingestion into HDFS and are kept with blocks. The DataNodes periodically computes the checksum and reports mismatches to the NameNode. Because the HDFS is immutable system, the checksums should never change for the lifetime of the block.</p><p>If the checksum has changed, it is considered as a block corruption and will be handled by the HDFS.</p><p>DataNodes are not aware of the HDFS files and directories, they just store and manage the physical HDFS blocks only. The relationship between a HDFS file and its associated blocks is only held only in the NameNode metadata and only the NameNode metadata can be used to reconstruct the filesystem.</p><p>Thanks for your reading and time ! Have a great day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=90b5f57dcb14" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[YARN — Resource scheduler/Cluster Manager for Hadoop platform — in a nutshell]]></title>
            <link>https://medium.com/@meenakshisundaramsekar/yarn-resource-scheduler-cluster-manager-for-hadoop-platform-in-a-nutshell-12bed356ac55?source=rss-56efd8f83bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/12bed356ac55</guid>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[yarn]]></category>
            <category><![CDATA[apache-spark]]></category>
            <category><![CDATA[mapreduce]]></category>
            <category><![CDATA[big-data]]></category>
            <dc:creator><![CDATA[Meenakshi Sundaram Sekar]]></dc:creator>
            <pubDate>Sun, 22 Apr 2018 03:35:04 GMT</pubDate>
            <atom:updated>2018-04-22T03:51:21.706Z</atom:updated>
            <content:encoded><![CDATA[<p>YARN Schedules and orchestrates applications and tasks in Hadoop platform. When tasks to be run need data from HDFS, YARN will attempt to schedule the tasks on node where the data resides (applying the concept of data locality).</p><p>YARN is the Hadoop second generation data processing platform and the first of which is called the MapReduce v1 or MR1. MR1 was a scheduling platform built for processing Hadoop MapReduce workloads.MR1 was very effective in processing Map and Reduce workloads and achieving the data locality wherever possible.</p><p>MR1 has its own shortcomings and YARN was able to solve the shortcomings faced by the MR1 platform. Some of the shortcomings are explained below.</p><p>MR1 was not intended to schedule and manage non-MapReduce programs. MR1 provides strict framework for scheduling map/reduce jobs on a Hadoop cluster and was not able to manage other applications like spark, impala and Tez and SQL on Hadoop projects.</p><p>Not flexible enough to use all processing assets which went underutilized. MR1 had strict definition of processing slots for map and reduce operations which led to underutilization of resources in the cluster.</p><p>Its practical upper limit to scalability.</p><h3><strong>Running an Application on YARN</strong></h3><p>YARN is designed to distribute an applications workload across the multiple workers daemons or processes called NodeManagers.</p><p>NodeManagers are the worker nodes or agents responsible for carrying out tasks, the complete set of which comprise an application.</p><p>A YARN daemon called ResourceManager is responsible for assigning an ApplicationMaster, a delegate process for managing the status and execution of an application.</p><p>In addition, ResourceManager monitors, governs and reserves the compute resources in the nodemanagers (CPU cores and memory). Compute and memory resources are presented to applications to perform tasks attempts in processing units called containers.</p><p>The ApplicationMaster determines the container requirements for an application and negotiates the resources with the ResourceManager, hence the name Yet Another Resource Negotiator or YARN.</p><p>Below are the sequence of steps happens when user submits an application in Hadoop platform with YARN as Resource scheduler/Cluster manager.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*-1cof_C3JxRjYSmGyDpQsw.jpeg" /></figure><p>1. The client/user submits an application to the YARN ResourceManager.</p><p>2. The ResourceManager designates an ApplicationMaster on a NodeManager with sufficient capacity to be assigned this role.</p><p>3. The ApplicationMaster negotiates the tasks containers on the NodeManagers (Including the NodeManager the Application master is running).</p><p>Once the ResourceManager allocates the containers, the ApplicationMaster dispatches processing to the NodeManagers hosting the task containers for the application.</p><p>4.The NodeManager report their task attempt status and progress to the ApplicationMaster.</p><p>5. The Application master in turn reports the status and progress of the application to the Resourcemanager.</p><p>6, ResourceManger reports application progress, status and results to the client.</p><p>Thanks for your reading and time ! Have a great day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=12bed356ac55" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Spark Applications Running on Yarn — in a nutshell]]></title>
            <link>https://medium.com/@meenakshisundaramsekar/spark-applications-running-on-yarn-in-a-nutshell-d73f2c19f21b?source=rss-56efd8f83bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/d73f2c19f21b</guid>
            <category><![CDATA[mapreduce]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[spark-streaming]]></category>
            <dc:creator><![CDATA[Meenakshi Sundaram Sekar]]></dc:creator>
            <pubDate>Sun, 22 Apr 2018 03:25:51 GMT</pubDate>
            <atom:updated>2018-04-22T03:51:40.783Z</atom:updated>
            <content:encoded><![CDATA[<p>YARN (yet another resource negotiator) is Hadoop’s popular resource scheduling cluster manager. In this post, let’s see how a Spark application running on Hadoop platform uses YARN for its data processing operations.</p><p>To know more about Spark architecture and Different spark components refer my other story:</p><p><a href="https://medium.com/@meenakshisundaramsekar/anatomy-of-a-spark-application-in-a-nutshell-2e542d5f334e">Anatomy of a Spark Application — in a nutshell</a></p><p>To Know more about the YARN as a Resource Scheduler for Hadoop refer my other story:</p><p><a href="https://medium.com/@meenakshisundaramsekar/yarn-resource-scheduler-cluster-manager-for-hadoop-platform-in-a-nutshell-12bed356ac55">YARN — Resource scheduler/Cluster Manager for Hadoop platform — in a nutshell</a></p><h3><strong>YARN Resource Manager as Cluster Manager and YARN Application Master as the Spark Master</strong></h3><p>Once the user submits the spark program to the YARN Resource Manager which is the cluster manager, creates an Application master and it acts as Spark master. The Spark Driver which is responsible for spark program is also created at the same instance.</p><p>The Spark driver informs the ApplicationMaster (Spark Master) about the executor requirements of the application and the Application Master (spark master) in turn negotiates the resources from the Resource manager to host these executors.</p><p>Yarn Resource Manager (Cluster manager) in a distributed spark application is the process that monitors, governs, reserves resources in the form of containers on the cluster worker nodes. These containers are reserved upon request by the Application Masters (spark masters) and allocated to the Application master (spark Masters) when released and available.</p><p>Once the Resource manager allocates the containers, the application master provides the containers resources back to Spark Driver and Spark driver will be responsible for executing the various stages and tasks in spark application.</p><p>(Additional Resource Manager duties) The Resource Manager allocates the container to a new or queued application according to a scheduler policy. Common scheduler policies include CapacityScheduler and FairScheduler. These scheduler policies determine the application, queue, user access to the cluster and ensure the long running and short running process can coexist in the cluster.</p><p>Spark applications running on YARN can use two different submission modes. YARN-CLUSTER and YARN-CLIENT mode.</p><h3><strong>Yarn-cluster mode:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*56hY2HQTuRDMRbIii234Yw.jpeg" /></figure><p>In the Yarn cluster mode, the driver runs in the cluster, especially the driver runs inside the ApplicationMaster. This mode is best suited for production applications. The spark interactive shells mode are not available using the yarn-cluster mode.</p><p>Below are the sequence of steps happens in the YARN cluster mode.</p><p>1.The client submits (using spark-submit method) the spark application to the cluster manager (the YARN Resource Manager).</p><p>2.The Resource Manager assigns an ApplicationMaster (the Spark master) for the applications. The driver process is also created on the same node.</p><p>3.The ApplicationManager request containers for executors from the ResourceManager. The containers are assigned, and executors are created.</p><p>The Spark Driver communicates with executors to coordinate the processing of stages and tasks of an application.</p><p>4.The Spark driver returns progress, results and status to the client.</p><h3><strong>Yarn-client mode:</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*Woz2QghU3ov7cQF45sD38w.jpeg" /></figure><p>In YARN client mode, the driver runs on the client , which is normally not a node on the cluster. Since the driver is running on the client and not on the cluster, the driver is not managed by the YARN.</p><p>In YARN client mode, Since the client runs the spark driver, the client needs to be available for entirety of the spark application as the spark driver is responsible for coordinating the stages and tasks of a spark program.</p><p>Below are the sequence of steps happens in the YARN client mode.</p><p>1.The client submits (using spark-submit method) the spark application to the cluster manager (the YARN Resource Manager). The driver process is created and runs on the client.</p><p>2. The Resource Manager assigns an ApplicationMaster (the Spark master) for the applications. ‘</p><p>3.The ApplicationManager request containers for executors from the ResourceManager. The containers are assigned, and executors are created.</p><p>4.The Spark Driver (located on the client) communicates with executors to coordinate the processing of stages and tasks of an application.</p><p>The Spark driver (located on the client) returns progress, results and status to the client.</p><p>Thanks for your reading and time ! Have a great day.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=d73f2c19f21b" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Anatomy of a Spark Application — in a nutshell]]></title>
            <description><![CDATA[<div class="medium-feed-item"><p class="medium-feed-image"><a href="https://medium.com/@meenakshisundaramsekar/anatomy-of-a-spark-application-in-a-nutshell-2e542d5f334e?source=rss-56efd8f83bb6------2"><img src="https://cdn-images-1.medium.com/max/2398/1*B9lbB8uU7a_Xi0a1uDImRw.jpeg" width="2398"></a></p><p class="medium-feed-snippet">Spark application contains several components, all of which exists whether you are running spark on single machine or across a cluster of&#x2026;</p><p class="medium-feed-link"><a href="https://medium.com/@meenakshisundaramsekar/anatomy-of-a-spark-application-in-a-nutshell-2e542d5f334e?source=rss-56efd8f83bb6------2">Continue reading on Medium »</a></p></div>]]></description>
            <link>https://medium.com/@meenakshisundaramsekar/anatomy-of-a-spark-application-in-a-nutshell-2e542d5f334e?source=rss-56efd8f83bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/2e542d5f334e</guid>
            <category><![CDATA[scala]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[hadoop]]></category>
            <dc:creator><![CDATA[Meenakshi Sundaram Sekar]]></dc:creator>
            <pubDate>Fri, 20 Apr 2018 14:36:12 GMT</pubDate>
            <atom:updated>2018-04-22T03:26:28.937Z</atom:updated>
        </item>
        <item>
            <title><![CDATA[Hadoop Architecture — Design Considerations — in a nutshell]]></title>
            <link>https://medium.com/@meenakshisundaramsekar/hadoop-architecture-design-considerations-in-a-nutshell-60d55b26e4?source=rss-56efd8f83bb6------2</link>
            <guid isPermaLink="false">https://medium.com/p/60d55b26e4</guid>
            <category><![CDATA[hadoop]]></category>
            <category><![CDATA[data]]></category>
            <category><![CDATA[distributed-systems]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[computing]]></category>
            <dc:creator><![CDATA[Meenakshi Sundaram Sekar]]></dc:creator>
            <pubDate>Sun, 08 Apr 2018 15:32:42 GMT</pubDate>
            <atom:updated>2018-04-08T19:54:37.272Z</atom:updated>
            <content:encoded><![CDATA[<p>Hadoop Architecture — Design Considerations — in a nutshell</p><p>1.Hadoop is a platform for the storing big data (*petabytes of information) by distributing the data across the machines in the Hadoop *cluster for the purpose of processing data and computing desired results in parallel.</p><p>2. To support the distributed and parallel processing of data, a concept central to Hadoop platform Data locality comes into play. Data locality is a term in which we take the processing of the data to place where the data resides instead of in a traditional way where we retrieve the data from a relational database to another machine where the computation takes place.</p><p><strong>Below are the design considerations for the Hadoop’s data locality concept</strong></p><p>3. Internet has petabytes of data aka BigData collected from various sources needs to analyzed, processed and computed faster to get the desired results. Moving the Petabytes of huge data between different machines in cluster will result in slower processing time and network latencies during data movement between machines could result in processing failures. So it becomes a design consideration and need to take the processing to the where the data resides in the cluster.</p><p>4.Hadoop is a *schema less write platform meaning when you write the data into a file in Hadoop, there is no indexes, no metadata captured about the type of data written into the hdfs Hadoop platform. To the contrast, Relational database systems index the data while writing into the file system which helps in retrieving the data faster. To support the faster data retrieval and processing in a Hadoop environment which is schemaless write platform, it becomes evident to take the processing to the data in the Hadoop cluster.</p><p>Points 3 and 4 necessitates the requirement for data locality.</p><p>Hadoop has two core components: HDFS (Hadoop distributed File system) and YARN (Yet another Resource negotiator). HDFS is Hadoop data storage sub-system and YARN is Hadoop job/process scheduling substem. I will try to blog/write another story on both of them. Thanks for your reading and time !</p><p>*1 petabyte = 1,000,000 GB</p><p>*cluster — A cluster is a collection of systems that work together to perform functions such as computational or processing functions. Individual servers within a cluster can be referred to as nodes.</p><p>* schemaless — Hadoop is schemaless with respect to write operation ( its what called a Schema on read system). Hadoop is a schema on read system and it can read and process and store a wide range of data, from unstructured text documents to semistructured documents ( Json and xml) to well structured data extracts from relational database.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60d55b26e4" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>