<?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 Aman on Medium]]></title>
        <description><![CDATA[Stories by Aman on Medium]]></description>
        <link>https://medium.com/@meamanhere?source=rss-bbbae086400c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*kAQznyJ8JdOzLpKIFmV-ow.jpeg</url>
            <title>Stories by Aman on Medium</title>
            <link>https://medium.com/@meamanhere?source=rss-bbbae086400c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 15:36:25 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@meamanhere/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[Apache Spark 4.0: The New Standard for Big Data Analytics]]></title>
            <link>https://meamanhere.medium.com/apache-spark-4-0-the-new-standard-for-big-data-analytics-454ccb09bb08?source=rss-bbbae086400c------2</link>
            <guid isPermaLink="false">https://medium.com/p/454ccb09bb08</guid>
            <category><![CDATA[data-engineering]]></category>
            <category><![CDATA[python]]></category>
            <category><![CDATA[big-data]]></category>
            <category><![CDATA[spark]]></category>
            <dc:creator><![CDATA[Aman]]></dc:creator>
            <pubDate>Fri, 30 May 2025 14:02:52 GMT</pubDate>
            <atom:updated>2025-05-30T14:02:52.673Z</atom:updated>
            <content:encoded><![CDATA[<p>Big data is everywhere, but making sense of it — quickly, reliably, and at scale — remains a challenge for organizations of all sizes. For over a decade, Apache Spark has been the go-to platform for distributed data processing. Now, with the release of <strong>Apache Spark 4.0</strong>, the open-source community is raising the bar yet again.</p><p>In this article, I’ll walk you through the most exciting new features in Spark 4.0, why they matter, and how they’re poised to change the landscape of data engineering and analytics.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*ui74y_7gapoLbj36gWE6jQ.png" /></figure><h3>1. Spark Connect: A Game-Changer for Developers</h3><p>Perhaps the most transformative addition in Spark 4.0 is <strong>Spark Connect</strong>. This new client-server architecture separates the user interface from the Spark engine, making it easier than ever to build, deploy, and scale Spark applications.</p><p><strong>Why is this important?</strong></p><ul><li><strong>Flexibility:</strong> Developers can now interact with Spark clusters from a variety of environments, including local machines and cloud notebooks.</li><li><strong>Future-proofing:</strong> The architecture is designed to support new languages and tools, making Spark more accessible to a broader audience.</li><li><strong>Seamless migration:</strong> Existing Spark jobs continue to work, but new projects can take full advantage of the modern Connect interface.</li></ul><h3>2. Structured Logging: Observability Made Simple</h3><p>Debugging distributed systems can be tricky. Spark 4.0 introduces <strong>structured logging</strong>, which outputs logs as machine-readable JSON lines, complete with timestamps and context. This makes it much easier to integrate Spark with popular monitoring and observability platforms.</p><p><strong>What’s the impact?</strong></p><ul><li><strong>Faster troubleshooting:</strong> Search and filter logs with ease.</li><li><strong>Better monitoring:</strong> Integrate with tools like ELK, Splunk, and Datadog.</li><li><strong>Greater reliability:</strong> Spot issues before they impact your users.</li></ul><h3>3. PySpark: More Pythonic, More Powerful</h3><p>Python is the language of choice for many data scientists, and Spark 4.0 delivers a host of improvements for PySpark users:</p><ul><li><strong>Performance boosts</strong> for Python workloads.</li><li><strong>Cleaner, more intuitive APIs</strong> that feel right at home for Python developers.</li><li><strong>Unified profiling tools</strong> to help optimize custom Python functions.</li></ul><p>If you love working in Python, Spark 4.0 just made your life a lot easier.</p><h3>4. Structured Streaming: Real-Time Analytics, Refined</h3><p>Streaming data is the lifeblood of modern analytics, and Spark 4.0 brings major upgrades to <strong>Structured Streaming</strong>:</p><ul><li><strong>Lower latency</strong> and higher throughput.</li><li><strong>Simpler APIs</strong> for building robust streaming pipelines.</li><li><strong>Enhanced monitoring</strong> for real-time troubleshooting.</li></ul><p>Whether you’re processing IoT data, financial transactions, or social media feeds, Spark 4.0 has you covered.</p><h3>5. Ecosystem and Standards: Built for the Modern Data Stack</h3><p>Spark 4.0 isn’t just about new features — it’s about playing nicely with the rest of your stack:</p><ul><li><strong>ANSI SQL compliance:</strong> Makes it easier to port queries and integrate with other systems.</li><li><strong>Java 21 support:</strong> Leverage the latest JVM features for better performance and security.</li><li><strong>Kubernetes Operator:</strong> Run Spark natively in the cloud, with all the benefits of container orchestration.</li><li><strong>Expanded connectors:</strong> Including XML, broadening the range of data sources you can tap into.</li></ul><h3>Getting Started</h3><p>Ready to try Spark 4.0?<br>You can download it directly from <a href="https://spark.apache.org/">spark.apache.org</a>, or spin up a free cluster in <a href="https://community.cloud.databricks.com/">Databricks Community Edition</a>. Whether you’re migrating existing workloads or starting something new, there’s never been a better time to explore what Spark can do.</p><h3>Final Thoughts</h3><p>Apache Spark 4.0 is more than just an upgrade — it’s a bold step into the future of data analytics. With its new architecture, improved observability, and expanded ecosystem, Spark is cementing its place as the foundation of modern data platforms.</p><p>If you’re working with big data, now is the time to check out Spark 4.0. The future of analytics is here — and it’s blazing fast.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=454ccb09bb08" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[The Unseen Consequences: A Call for Accountability]]></title>
            <link>https://meamanhere.medium.com/the-unseen-consequences-a-call-for-accountability-adace9383e7f?source=rss-bbbae086400c------2</link>
            <guid isPermaLink="false">https://medium.com/p/adace9383e7f</guid>
            <category><![CDATA[self-improvement]]></category>
            <category><![CDATA[worklife-balance]]></category>
            <category><![CDATA[indian-workforce]]></category>
            <category><![CDATA[work]]></category>
            <category><![CDATA[corporate-culture]]></category>
            <dc:creator><![CDATA[Aman]]></dc:creator>
            <pubDate>Wed, 25 Sep 2024 13:27:08 GMT</pubDate>
            <atom:updated>2024-09-25T14:21:29.425Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*GrLgN3eSTiIjLjYtR5N8Lg.jpeg" /><figcaption>More Work less Sleep</figcaption></figure><p>Imagine you’re planning a family dinner at a well-known restaurant where you’ve been a loyal patron for years. You decide to indulge in their buffet offerings. However, during your meal, you discover an insect — let’s say a cockroach — in one of the dishes.</p><p>In light of this incident, several critical questions arise:</p><p>- Would you continue eating the remaining dishes?<br>- Would you ever return to that restaurant?<br>- Would you still recommend it to friends and family?<br>- Who would you hold responsible: the restaurant or the chef who prepared the meal?</p><p>Despite these pressing concerns, here are some notable public statements that have emerged:</p><p>- The restaurant manager commented, “We recently introduced this dish, and it was cooked in the same kitchen as the others. We don’t believe this insect came from our kitchen.” He also stated, “This is an unusual situation for our culture.”</p><p>- The head of the finance remarked, “Whatever you do, you should have the inner strength to handle that situation and should not blame restaurant.” Essentially, this implies that diners should either remove the insect and continue eating or consume the dish without complaint.</p><p>- Some patrons shared their experiences: “We have encountered similar situations at same and other reputed restaurants but either didn’t raise the issue or only mentioned it to the staff, who took no action as it seemed routine for them.”</p><p>- Others expressed their loyalty: “We are regular visitors to this restaurant and have never had issues with the dishes served. We will continue to dine here.”</p><p>It seems likely that no significant action will be taken against this esteemed restaurant due to its established reputation. Patrons may continue to frequent it, fully aware that they could encounter similar situations in the future — perhaps even more alarming discoveries like a lizard or snake.</p><p>History has shown that even a single incident can catalyze meaningful change; however, it appears unlikely that this case will lead to any substantial action or reform.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=adace9383e7f" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Decoding Spark’s Power Duo: Magic of RDD and DAG in Distributed Data Processing]]></title>
            <link>https://meamanhere.medium.com/decoding-sparks-power-duo-magic-of-rdd-and-dag-in-distributed-data-processing-22aa8b54aeb5?source=rss-bbbae086400c------2</link>
            <guid isPermaLink="false">https://medium.com/p/22aa8b54aeb5</guid>
            <category><![CDATA[sparklearn]]></category>
            <category><![CDATA[sparkpoint]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[apache-spark]]></category>
            <dc:creator><![CDATA[Aman]]></dc:creator>
            <pubDate>Fri, 12 Jan 2024 10:28:09 GMT</pubDate>
            <atom:updated>2024-01-12T10:28:09.968Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s discuss about the two main abstractions in Apache Spark: DAG (Directed Acyclic Graph) and RDD (Resilient Distributed Dataset).</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*d3hydgHfA_PJWGsLQ4QW7w.jpeg" /></figure><p><strong>RDD (Resilient Distributed Dataset):</strong></p><ul><li>An RDD is like a specific collection of books in our library. It represents a distributed, immutable dataset that can be processed in parallel across a cluster of computers (librarians).</li><li><strong>Example</strong>: If we have an RDD of mystery books, it means we’ve organised a specific set of mystery books that can be analysed or transformed by the librarians (computers) in parallel.</li></ul><p><strong>DAG (Directed Acyclic Graph):</strong></p><ul><li>A DAG is like a flowchart that shows the sequence of tasks the librarians (computers) need to perform. It’s a directed graph because it indicates the order in which tasks should be executed, and it’s acyclic because there are no loops or repetitions in the task sequence.</li><li><strong>Example</strong>: If we want to categorize mystery books by author and then count the books for each author, the DAG would represent the steps: first, categorize by author, and second, count the books for each author. Each step is a node in the graph, and the arrows show the order of execution.</li></ul><p>So, in our library of distributed data processing, RDD are like specific collections of books, and DAG are like organised plans or flowcharts that guide the librarians (computers) on how to process these collections efficiently.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=22aa8b54aeb5" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Unveiling the Symphony of Driver, Executor, and Cluster Manager in Distributed Data Processing]]></title>
            <link>https://meamanhere.medium.com/unveiling-the-symphony-of-driver-executor-and-cluster-manager-in-distributed-data-processing-3235e2ba51cf?source=rss-bbbae086400c------2</link>
            <guid isPermaLink="false">https://medium.com/p/3235e2ba51cf</guid>
            <category><![CDATA[spark-basic]]></category>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[spark-fundamentals]]></category>
            <category><![CDATA[sparklearn]]></category>
            <dc:creator><![CDATA[Aman]]></dc:creator>
            <pubDate>Tue, 09 Jan 2024 12:28:26 GMT</pubDate>
            <atom:updated>2024-01-09T12:28:26.943Z</atom:updated>
            <content:encoded><![CDATA[<p>Let’s delve deeper into the concept of Cluster Manager, Driver and Worker nodes using the same library analogy:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*eJOrYnFp-c9IYxatW_-zyA.jpeg" /></figure><p><strong>Cluster Manager (Library Manager):</strong></p><ul><li><strong>Role</strong>: The Cluster Manager is like the library manager overseeing the entire library. This manager is responsible for coordinating the librarians (Worker Nodes) and ensuring that they have the resources they need to carry out their tasks efficiently.</li><li><strong>Responsibilities</strong>: The Cluster Manager allocates tasks, monitors the performance of librarians, and addresses any issues that may arise within the library. It works closely with the Head Librarian (Driver Node) to maintain the smooth operation of the entire system.</li><li><strong>Example Task</strong>: If the library is getting more books (data) or if there’s a need for additional librarians (Worker Nodes), the Cluster Manager ensures that the resources are available and distributed appropriately.</li></ul><p><strong>Driver Node (Head Librarian):</strong></p><ul><li><strong>Role</strong>: The Driver Node is like the head librarian in the library. This librarian has the master plan and knows what needs to be done with the entire collection of books (data).</li><li><strong>Responsibilities</strong>: The Driver Node is responsible for coordinating and overseeing the tasks. It decides what transformations or actions need to be performed on the books (data) and directs the Worker Nodes accordingly.</li><li><strong>Example Task</strong>: If we want to find out how many books are there in each genre, the Driver Node would instruct the Worker Nodes to perform the necessary tasks.</li></ul><p><strong>Worker Nodes (Librarians):</strong></p><ul><li><strong>Role</strong>: Worker Nodes are like individual librarians in our library. They carry out the instructions given by the Head Librarian (Driver Node) and work collectively to accomplish the tasks.</li><li><strong>Responsibilities</strong>: Each Worker Node is responsible for a portion of the books (data) assigned to it. It performs the required transformations or actions on its subset of the collection based on the instructions from the Head Librarian.</li><li><strong>Example Task</strong>: If a Worker Node is assigned books in the mystery genre, it would count and categorise the books in that genre according to the instructions from the Driver Node.</li></ul><p>Now, let’s tie it all together:</p><ul><li>Cluster Manager (Library Manager): Oversees the entire library, allocates resources, and ensures the smooth operation of tasks.</li><li>Driver Node (Head Librarian): Plans and directs the overall strategy for the library (data processing).</li><li>Worker Nodes (Librarians): Carry out specific tasks assigned to them by the Head Librarian (Driver Node).</li></ul><p><strong>Communication:</strong></p><ul><li>The Driver Node communicates with the Worker Nodes, telling them what to do and how to do it. It’s like the Head Librarian giving specific instructions to each librarian.</li><li>The Worker Nodes may also communicate with each other, especially if the tasks involve sharing or exchanging information. It’s like librarians collaborating to achieve a common goal.</li></ul><p><strong>Fault Tolerance (Resilience):</strong></p><ul><li>If a Worker Node goes on vacation or faces an issue (like a computer failure), the Driver Node can redistribute the tasks to other available Worker Nodes. This ensures that the work continues smoothly even if some librarians are temporarily unavailable.</li></ul><p>In summary, the library manager (Cluster Manager) plays a crucial role in managing resources and maintaining the overall health of the library, collaborating closely with the Head Librarian (Driver Node) and the librarians (Worker Nodes) to achieve optimal efficiency.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=3235e2ba51cf" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Demystifying Spark Architecture]]></title>
            <link>https://meamanhere.medium.com/demystifying-spark-architecture-8a5c6904f9e8?source=rss-bbbae086400c------2</link>
            <guid isPermaLink="false">https://medium.com/p/8a5c6904f9e8</guid>
            <category><![CDATA[spark]]></category>
            <category><![CDATA[the-sparks-foundation]]></category>
            <category><![CDATA[sparklearn]]></category>
            <dc:creator><![CDATA[Aman]]></dc:creator>
            <pubDate>Mon, 08 Jan 2024 11:53:26 GMT</pubDate>
            <atom:updated>2024-01-08T11:53:26.067Z</atom:updated>
            <content:encoded><![CDATA[<p>Imagine you have a massive amount of data, like a huge collection of books. Now, you want to analyse and gain insights from all these books, but it’s so much information that a regular computer would struggle to handle it quickly. Here’s where Spark comes in with its architecture.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*WvcBbo6-59wLhpF29fDNGQ.jpeg" /><figcaption>spark</figcaption></figure><ol><li>Cluster: Think of a cluster as a group of computers working together. In our analogy, each computer is like a librarian.</li><li>Driver Program: The driver program is like the head librarian. It tells the other librarians (computers in the cluster) what tasks to perform.</li><li>RDD (Resilient Distributed Datasets): This is like a way of organising books. RDD breaks down the books into smaller, manageable pieces and spreads them across the librarians. Even if one librarian (or computer) goes on vacation, the others still have the same pieces of information.</li><li>Transformations and Actions: These are the tasks given to the librarians. Transformations are like asking the librarians to rearrange or categorise the books, while actions are like asking for a specific result, like counting how many books there are in a certain category.</li><li>Spark Core: This is the main brain of Spark, overseeing everything. It ensures that the tasks are carried out efficiently and reliably, coordinating the work of the librarians (computers).</li><li>Spark SQL, Spark Streaming, MLlib, GraphX: These are like specialised librarians who are really good at certain tasks. Spark has different components for handling different types of data analysis, like working with databases (SQL), real-time data (Streaming), machine learning (MLlib), and graph data (GraphX).</li></ol><p>So, in simple terms, Spark is like a super-smart library where a team of librarians (computers in a cluster) works together efficiently to organise, analyse, and retrieve information from a massive collection of books (data).</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=8a5c6904f9e8" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>