<?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 Amgad Mohamed Salem on Medium]]></title>
        <description><![CDATA[Stories by Amgad Mohamed Salem on Medium]]></description>
        <link>https://medium.com/@amgedsalem1260?source=rss-c34ea99bd107------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*84Q-9-4u6c5miK27yveodQ.jpeg</url>
            <title>Stories by Amgad Mohamed Salem on Medium</title>
            <link>https://medium.com/@amgedsalem1260?source=rss-c34ea99bd107------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:31:23 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@amgedsalem1260/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[Centralized Authentication and Active Directory (AD) in Big Data Environments]]></title>
            <link>https://medium.com/@amgedsalem1260/centralized-authentication-and-active-directory-ad-in-big-data-environments-f1077052f8e3?source=rss-c34ea99bd107------2</link>
            <guid isPermaLink="false">https://medium.com/p/f1077052f8e3</guid>
            <dc:creator><![CDATA[Amgad Mohamed Salem]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 10:54:04 GMT</pubDate>
            <atom:updated>2025-10-05T10:54:04.482Z</atom:updated>
            <content:encoded><![CDATA[<p>In modern data platforms, users and services span dozens of systems — Hadoop clusters, databases, analytics tools, and management consoles.<br> Without a unified identity layer, managing access quickly becomes chaotic: different usernames, mismatched passwords, and inconsistent policies.</p><p>To solve this, organizations adopt <strong>Centralized Authentication</strong>, often powered by <strong>Active Directory (AD)</strong>.</p><h3>What Is Centralized Authentication?</h3><p><strong>Centralized Authentication</strong> means all users, groups, and credentials are stored and managed in one place — rather than separately on each server or application.<br> Every system delegates authentication to a central directory service that verifies who the user is and whether they should be allowed access.</p><h3>Why It Matters</h3><ul><li><strong>Single Sign-On (SSO):</strong> Users log in once and can access multiple systems securely.</li><li><strong>Simplified User Management:</strong> Add or remove access from one location.</li><li><strong>Consistent Policies:</strong> Enforce company-wide password, role, and access standards.</li><li><strong>Better Security:</strong> Disable a user in one place, and they lose access everywhere.</li></ul><h3>What Is Active Directory (AD)?</h3><p><strong>Active Directory (AD)</strong> is Microsoft’s enterprise-grade directory service used to store and manage users, computers, and security policies.<br> It’s built around the <strong>LDAP protocol</strong> for directory lookups and <strong>Kerberos</strong> for authentication.</p><p><strong>Component Description</strong></p><p><strong>Domain Controller (DC)</strong> The main server that hosts AD and handles authentication requests.</p><p><strong>Users and Groups</strong> Define people, service accounts, and logical collections of permissions.</p><p><strong>Organizational Units (OUs)</strong> Used to organize users or devices and apply specific policies.</p><p><strong>Group Policy Objects (GPOs)</strong> Security and configuration rules applied to groups or OUs.</p><p><strong>LDAP Interface</strong> Allows systems (Linux, Hadoop, Cloudera) to query and verify users.</p><h3>Centralized Authentication Using AD</h3><p>When a company integrates <strong>AD</strong> with its <strong>Big Data ecosystem</strong>, all authentication happens through the Domain Controller.</p><p>Users are created and managed in AD, not locally on each server.</p><p>When someone logs into Cloudera Manager or runs a Hive query, their credentials are validated against AD.</p><p>The system checks which AD <strong>Group</strong> the user belongs to and assigns permissions accordingly.</p><p>The entire cluster — Linux nodes, Hadoop services, and UIs — trusts AD as the single source of identity truth.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=f1077052f8e3" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Understanding Kerberos Authentication in Hadoop Clusters]]></title>
            <link>https://medium.com/@amgedsalem1260/understanding-kerberos-authentication-in-hadoop-clusters-38fd573bddca?source=rss-c34ea99bd107------2</link>
            <guid isPermaLink="false">https://medium.com/p/38fd573bddca</guid>
            <dc:creator><![CDATA[Amgad Mohamed Salem]]></dc:creator>
            <pubDate>Sun, 05 Oct 2025 00:55:54 GMT</pubDate>
            <atom:updated>2025-10-05T00:55:54.837Z</atom:updated>
            <content:encoded><![CDATA[<p>In any large-scale data environment, dozens of services constantly communicate — NameNodes, DataNodes, ResourceManagers, Hive, Spark, and more.<br> Without a proper security system, anyone could impersonate another user or service, leading to unauthorized access or data leaks.</p><p>That’s where <strong>Kerberos</strong> steps in.</p><h3>What Is Kerberos?</h3><p><strong>Kerberos</strong> is a secure authentication protocol that verifies the identity of users and services in a network without sending passwords over the wire.<br> It works through encrypted “tickets” that prove who you are — much like an entry pass that’s verified before you enter a secure area.</p><p>Instead of storing or transmitting passwords repeatedly, Kerberos uses a system of <strong>trusted tickets</strong> that can be validated across multiple nodes in a cluster.</p><h3>Why Hadoop Needs Kerberos</h3><p>In a Hadoop ecosystem, all components talk to each other — and most of them run on separate machines.<br> Every request (HDFS access, Hive query, Spark job) must be authenticated securely.</p><p>Kerberos ensures:</p><ul><li>Every user or service is verified before accessing cluster resources.</li><li>Credentials aren’t exposed in plaintext.</li><li>Communication between nodes remains encrypted and trusted</li></ul><h3>Key Components of Kerberos</h3><p><strong>KDC (Key Distribution Center)</strong>The main server responsible for authenticating users and issuing tickets.</p><p><strong>Principal </strong>A unique identity in Kerberos, representing a user or service (e.g., hdfs/hadoop1@COMPANY.COM).</p><p><strong>Keytab File </strong>A secure file that stores encrypted credentials used by services instead of passwords.</p><p><strong>TGT (Ticket Granting Ticket) </strong>A temporary credential proving that a user is authenticated.</p><p><strong>Service Ticket </strong>A ticket that allows access to a specific service (like HDFS or Hive).</p><h3>How It Works — Simplified Flow</h3><p>A user authenticates using:</p><ul><li>kinit user@COMPANY.COM</li></ul><p>This sends an authentication request to the <strong>KDC</strong>, which validates the user and returns a <strong>TGT</strong> (Ticket Granting Ticket).</p><p>When the user tries to access a service (for example, HDFS):</p><p>The system uses the <strong>TGT</strong> to request a <strong>Service Ticket</strong> from the KDC.</p><p>The KDC verifies the request and issues a Service Ticket for that specific service.</p><p>The Service Ticket is then presented to HDFS, which verifies its validity and grants access.</p><p>This entire process happens transparently and securely — no passwords are transmitted between systems.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=38fd573bddca" width="1" height="1" alt="">]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Data Matching in Real-World Scenarios: Why Names Aren’t Enough]]></title>
            <link>https://medium.com/@amgedsalem1260/data-matching-in-real-world-scenarios-why-names-arent-enough-55e47625aebd?source=rss-c34ea99bd107------2</link>
            <guid isPermaLink="false">https://medium.com/p/55e47625aebd</guid>
            <category><![CDATA[data-matching]]></category>
            <dc:creator><![CDATA[Amgad Mohamed Salem]]></dc:creator>
            <pubDate>Sat, 20 Sep 2025 11:32:17 GMT</pubDate>
            <atom:updated>2025-09-20T11:33:49.499Z</atom:updated>
            <content:encoded><![CDATA[<h3>Introduction</h3><p>If you’ve ever worked with data from multiple sources, you know that one of the biggest headaches is figuring out which records refer to the same person. In theory, data matching sounds simple: just identify and merge records that belong to the same individual. But in practice? It’s a whole different story.</p><p>Let me walk you through why this is such a challenge — and how we tackle it in the real world.</p><h3>The Ideal World vs. Reality</h3><p>Ideally, every dataset would have a unique primary key — like a national ID or Social Security Number. If that were the case, matching records would be a breeze. Just join on the ID, and you’re done.</p><p>But let’s be honest: especially when dealing with legacy data or government records, this is rarely the case. Most of the time, the only field you can count on being present is the person’s name.</p><p>And here’s where things get tricky.</p><h3>The Problem with Names</h3><p>Names are rarely written the same way twice.</p><p>Think about it:</p><ul><li>Typos happen (“Mohamed” vs “Mohammad”)</li><li>People use nicknames or initials</li><li>Sometimes there are extra spaces, or the order of names is switched</li><li>Even cultural differences in spelling can throw things off</li></ul><p>If you rely only on exact matching, you’ll miss a lot of true matches — and your data will be full of duplicates.</p><h3>So, What Do We Do?</h3><p>Here’s the approach we use in real-world data engineering:</p><h3>1. Try Exact Matching First</h3><p>If we find an exact match for the name between different data sources, that’s perfect! We can confidently say it’s the same person.</p><h3>2. When Exact Matching Fails: Enter Fuzzy Matching</h3><p>But what if there’s no exact match?</p><p>This is where fuzzy matching algorithms and smart business rules come in.</p><p>We use algorithms like Levenshtein distance or Jaro-Winkler to measure how similar two names are, even if they’re not identical.</p><h4>Example:</h4><p>Suppose you have these two records:</p><p>Source A : Mohamed Ahmed Ali <br>Source B Mohammad Ahmed Aly</p><p>At first glance, they look different. But a fuzzy matching algorithm can tell us that these names are very similar — likely the same person, just with a typo or alternate spelling.</p><h3>3. Supporting Fields: The More, The Merrier</h3><p>Of course, we don’t want to match just on names. To make sure we’re really matching the right person — not just similar names — we always look for supporting fields like address or date of birth if available.</p><p>For example, if both records above also share the same address or date of birth, we can be much more confident that they refer to the same individual.</p><h3>Why Does This Matter?</h3><p>This approach helps us:</p><ul><li>Remove duplicates: Clean up the data so each person appears only once.</li><li>Enrich our data: Combine information from multiple sources to get a fuller picture.</li><li>Build a single, unified view: Essential for analytics, reporting, and making smart business decisions.</li></ul><h3>A Real-World Story</h3><p>In one of my recent projects, we had to merge millions of voter records from different government databases. There was no common ID — just names, addresses, and sometimes dates of birth.</p><p>We started with exact matching but quickly realized we were missing a lot of matches due to small differences in spelling. By introducing fuzzy matching and using supporting fields, we were able to unify the data, remove duplicates, and provide much more accurate analytics for our stakeholders.</p><h3>Conclusion</h3><p>Data matching in the real world is messy, but with the right mix of algorithms, business logic, and a little creativity, you can turn chaos into clarity.</p><p>So next time you’re faced with a pile of messy data, remember: names are just the beginning. Look deeper, match smarter, and always use every bit of information you can.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=55e47625aebd" width="1" height="1" alt="">]]></content:encoded>
        </item>
    </channel>
</rss>