Hadoop Explained: How Big Data Is Stored and Processed

Hadoop explained in plain terms means understanding the framework that lets ordinary computers, working together, store and process data far too large for any single machine. The central question is how a dataset of petabytes can be searched, counted, and analysed at all, and the answer is to split the data into pieces, spread them across many machines, and send the work to the data instead of the data to the work.

Hadoop is an open-source framework for distributed storage and processing of very large datasets, created by Doug Cutting and Mike Cafarella and first released in 2006. It grew out of ideas published by Google, and it became the foundation of the big data industry, running in banks, retailers, telecoms, and research labs around the world.

The idea is simple: use many cheap machines instead of one expensive one. Hadoop stores files across a cluster, copies each piece several times for safety, and processes the data in parallel, so that adding more machines makes the system bigger and faster in a straight line. This article explains what Hadoop is, how it works, and where it is used.

Key takeaways

  • Hadoop stores and processes huge datasets across many ordinary machines.
  • Files are split into blocks and copied to several machines for safety.
  • MapReduce sends the work to the data, instead of moving the data.
  • It scales by adding machines, not by buying bigger ones.
  • It is the foundation of the big data industry and its ecosystem.

What Hadoop is

Hadoop is a set of tools, not a single program. Its two core parts are HDFS, the Hadoop Distributed File System, which stores the data, and MapReduce, the programming model that processes it, and around them sits an ecosystem of tools for querying, streaming, and managing data, including Hive, Pig, Spark, and HBase.

HDFS stores files by splitting them into blocks, usually 128 megabytes each, and copying each block to three different machines. If one machine fails, the data is still available from the copies, and the system notices the failure and makes a new copy automatically, so that the cluster heals itself without anyone intervening.

A cluster has two kinds of machine. The NameNode keeps a record of where every block lives, and the DataNodes store the blocks and serve them when asked. There is usually one active NameNode, with a standby for safety, and hundreds or thousands of DataNodes, which is how a cluster can hold petabytes. Our guide to big data explains the problem Hadoop was built to solve, and our guide to distributed systems explains the ideas that make a cluster of machines behave as one.

How Hadoop works

Storing a file in HDFS starts with the client asking the NameNode where to put the blocks. The client then writes each block directly to a DataNode, which copies it to two more machines, and the NameNode records the locations. Reading works the other way round: the client asks the NameNode where the blocks are, and reads them in parallel from the nearest copies.

Processing uses MapReduce, which has two stages. In the map stage, the job is split into many small tasks, and each task runs on the machine that already holds the data it needs, producing intermediate results. In the reduce stage, those results are grouped by key and combined into the final answer.

A classic example is counting words in a huge collection of documents. Each mapper reads its own documents and counts the words it sees, and each reducer adds up the counts for one word from all the mappers, so that a job that would take days on one machine finishes in minutes on a cluster.

YARN, which stands for Yet Another Resource Negotiator, manages the cluster’s resources. It decides which jobs run on which machines, how much memory and processor time each gets, and what happens when a job fails, which lets many users and jobs share one cluster safely.

Hadoop also handles failure as a normal event. If a task crashes, YARN runs it again on another machine, and if a DataNode disappears, HDFS recreates its blocks from the surviving copies. The system is built on the assumption that hardware fails, and it keeps working anyway.

A laptop on a dark desk with its screen showing a glowing green cluster of servers sharing blocks of data
A laptop showing a glowing green cluster of servers sharing blocks of data shows how Hadoop works: many ordinary machines, one huge dataset.

Comparing Hadoop with other data systems

Hadoop is one of several ways to handle large data, and each suits a different need. A traditional database is faster for structured queries on smaller data, a cloud data warehouse scales without managing servers, and Spark processes data in memory, but each has its own trade-offs.

The table below sets out the main contrasts between the leading approaches.

Aspect Hadoop Traditional database Cloud data warehouse
Data size Petabytes, any format Terabytes, structured Petabytes, managed
Hardware Many cheap machines One powerful server Cloud, no servers to run
Speed Batch, minutes to hours Fast, seconds Fast, minutes
Cost model Own hardware, staff to run it Licence and hardware Pay for what you use
Best for Huge, messy, batch data Transactions, reports Analytics without operations

The practical result is that Hadoop is the right choice for enormous, unstructured datasets processed in batches on hardware you control, while a traditional database suits transactions and a cloud warehouse suits analytics without the burden of running a cluster.

Where Hadoop is used

Telecoms use Hadoop to analyse call records and network logs. A single operator generates billions of records a day, and Hadoop jobs count them, look for fraud, and work out which customers are likely to leave, all on data far too large for a normal database.

Retailers use Hadoop to understand what customers buy. Loyalty cards, web clicks, and till receipts are combined in Hadoop, and the results drive recommendations, stock decisions, and pricing, which is why a large retailer can know what a customer wants before the customer does.

Banks use Hadoop for risk and fraud detection. Transactions are checked against patterns learned from years of history, and suspicious activity is flagged for review, with Hadoop doing the heavy counting that a traditional system could not finish in time.

Research uses Hadoop for genomics, astronomy, and climate modelling. A genome sequencer, a telescope, or a weather satellite produces data by the terabyte, and Hadoop clusters store it and run the analyses that turn raw readings into science.

Web companies use Hadoop to process logs and clicks. Every page view, search, and advert click is a record, and Hadoop jobs turn those records into reports, recommendations, and the training data for machine learning models.

Strengths and limits

The greatest strength of Hadoop is scale. It was designed for data that does not fit on one machine, and it grows by adding ordinary servers, which is why organisations with petabytes of data could afford it when the alternative was a single machine costing many times more.

It is also a strength that Hadoop is open and flexible. It stores any kind of data, from logs to images to tables, and its ecosystem offers tools for almost every job, which is why it became the platform that the whole big data industry grew around.

The limits are real, though. Hadoop is built for batch work, not for instant answers, and running a cluster takes skilled staff, which is why many organisations have moved their batch work to cloud warehouses or to Spark, which runs on Hadoop’s storage but processes data in memory.

Hadoop checklist

  • Start with the question, not the data, so you know what to keep.
  • Use three copies of each block, and test recovery from a failed node.
  • Keep the NameNode safe, with a standby and regular backups.
  • Partition data by date or key, so jobs read only what they need.
  • Use a columnar format for analytics, to speed up queries.
  • Monitor the cluster, since a slow node slows every job.
  • Plan capacity, because storage and compute grow together.
  • Consider Spark for jobs that need speed, and keep HDFS for storage.
  • Clean up old data, or the cluster fills with data nobody uses.

Frequently asked questions

What is Hadoop in simple terms?

Hadoop is a framework that stores huge amounts of data across many ordinary computers and processes it in parallel. It splits files into blocks, copies them for safety, and sends small jobs to the machines that hold the data.

What is the difference between Hadoop and Spark?

Hadoop is the older framework, with its own storage and batch processing, while Spark is a faster processing engine that often runs on Hadoop’s storage. Many clusters use both: HDFS to store the data, Spark to process it.

What is HDFS?

It is the Hadoop Distributed File System, the storage part of Hadoop. It splits files into blocks, copies each block to several machines, and lets a cluster of ordinary servers hold petabytes of data.

What is MapReduce?

It is Hadoop’s way of processing data in two stages: map tasks work on their own piece of data in parallel, and reduce tasks combine the results into a final answer. It is simple, but it can handle enormous jobs.

Is Hadoop still used today?

Yes, though less than at its peak. Many organisations have moved batch analytics to the cloud or to Spark, but Hadoop clusters still run in banks, telecoms, and research, and HDFS remains a common store for big data.

Do I need Hadoop for big data?

Only if your data is too large for a single machine and you need batch processing on hardware you control. Smaller datasets are usually better served by a database or a cloud warehouse.

The bottom line

Hadoop explained in one line is this: a framework that turns a room full of ordinary computers into one machine big enough to store and process petabytes of data.

It changed how the world thinks about data, proving that scale could come from many cheap machines rather than one expensive one, and its ideas live on in every cloud warehouse and streaming system that followed it.

This article is general information about how Hadoop works, not advice about choosing a data platform for a particular organisation.

Latest articles

Scroll to Top