Software Development

How does Data Locality in Hadoop improve performance in high-speed distributed computing?

CH Asked by Christopher Reed · 03-02-2024
0 upvotes 9,678 views 0 comments
The question

I keep hearing that "Data Locality" is the primary reason why Hadoop is more efficient than traditional storage systems. Can someone explain the technical process of how YARN and HDFS coordinate to move the code to the data rather than moving the data across the network? I want to understand the impact this has on network bandwidth in 2025.

 

3 answers

0
BA
Answered on 05-02-2024

Data Locality is fundamental to the "Shared Nothing" architecture of Hadoop. When you submit a job, the YARN Resource Manager consults the NameNode to find the physical location (IP address) of the DataNodes holding the required blocks. YARN then attempts to schedule the TaskAttempt on the same node where the data resides—this is called "Node Local." If that node is busy, it tries to schedule it on a node in the same rack, known as "Rack Local." By avoiding the "Data Motion" across the Top-of-Rack switches, you save massive amounts of network bandwidth, which is often the most expensive and slowest resource in a Big Data cluster. 

0
RO
Answered on 07-02-2024

In a cloud environment like AWS or Azure, where compute and storage are often separated (like using EMR with S3), is the concept of Data Locality still relevant, or does high-speed networking make this architectural principle obsolete for modern cloud-native developers? 

MI 08-02-2024

Robert, that’s the million-dollar question. In the cloud, we often trade "Data Locality" for "Elasticity." While S3 doesn't offer true HDFS-style locality, we use local NVMe caching and high-throughput 100Gbps links to bridge the gap. However, for extreme low-latency processing, a co-located HDFS cluster still beats a remote object store every single time in terms of raw throughput.

0
NA
Answered on 10-02-2024

Data Locality is the only reason MapReduce scales to petabytes. Without it, your network switches would literally melt under the pressure of the data shuffle phase. 

CH 11-02-2024

Nancy is spot on. Even with Spark, we still rely on the underlying HDFS locality to ensure that our initial RDD partitions are loaded as efficiently as possible from the disk.

Share your thoughts

Your email address will not be published. Required fields are marked (*)

Professional Counselling Session

Still have questions?
Schedule a free counselling session

Our experts are ready to help you with any questions about courses, admissions, or career paths. Get personalized guidance from industry professionals.

Request a Call Back

Search Online

We Accept

We Accept

Follow Us

"PMI®", "PMBOK®", "PMP®", "CAPM®" and "PMI-ACP®" are registered marks of the Project Management Institute, Inc. | "CSM", "CST" are Registered Trade Marks of The Scrum Alliance, USA. | COBIT® is a trademark of ISACA® registered in the United States and other countries.

Book Free Session