� THE HADOOP ECOSYSTEM
Big Data, Big Story — Cheat Sheet from your NDAS622 notes
⚡ Why Hadoop? — Black Friday, One Company, One Day
No single computer can chew through this. That's the whole point of Hadoop: spread the data AND the work across many machines.
2.8M
120M
18M
2.3M
15TB
active users
clicks
searches
carts
of data / day
� The Hadoop Ecosystem — Every Tool Solves a Problem
Tool
Role
Solves...
� Flume
Streams clickstream / log data into HDFS & HBase
Collecting live web & app logs
� Sqoop
Imports structured data from MySQL etc. into HDFS
Moving relational DB data in/out
� HDFS
Distributed, fault-tolerant file storage across a cluster
Storing huge volumes of data
� YARN
"Brains" of the cluster — allocates CPU/memory to jobs
Resource management
� MapReduce
Parallel batch-processing engine
Processing massive datasets
� Hive
SQL-like querying on structured data (HiveQL)
Query data using SQL
� Pig
Scripting language for ETL on semi-structured data
Clean, transform, prep data
� HBase
NoSQL, column-oriented, real-time read/write on HDFS
Fast lookups & instant access
� ZooKeeper
Coordinates & synchronizes distributed services
Keeping the cluster in sync
� The Journey of One Click
Click
➜
Capture
➜
Log
➜
HDFS Store
➜
Process
➜
Insight!
Customer acts → event is captured → logged → stored in HDFS → cleaned & processed (MapReduce/YARN) → explored in R/Hive/Pig →
powers real business decisions.
� Story Time: How Thabo Got His Perfect Shoe Recommendation
Thabo browses Takealot for running shoes on his phone in Joburg. Here's the trip his data takes:
▸ Outside Hadoop: clicks & searches become logs; his order history sits in MySQL.
▸ In: Flume streams the logs → HDFS + HBase. Sqoop imports his MySQL order history → HDFS.
▸ Stored: HDFS holds the bulk data; HBase gives lightning-fast real-time lookups; ZooKeeper keeps it all in sync.
▸ Processed: YARN allocates resources; MapReduce (via Hive SQL + Pig scripts) crunches the numbers.
▸ Result: A collaborative-filtering model writes fresh picks to HBase — served instantly via a REST API.
▸ Orchestration: Oozie/Airflow schedules the whole daily pipeline; Ambari/Hue keep an eye on cluster health.
The payoff: "Recommended for You: Nike Pegasus 40, Adidas Ultraboost 22, Puma Velocity Nitro 2" — Thabo buys the Ultraboost. �
� What Kind of Data Gets Generated?
Every click on an app is really several different flavours of data being born at once:
Activity
Data Type
Example
Login
Structured
User ID = 102345, Login Time = 08:15 AM
Product Search
Event
"Wireless headphones" searched at 08:16 AM
Product Review
Unstructured
"Excellent sound quality!" — 5-star rating
GPS / Delivery
Spatial
Customer location: Kimberley, Northern Cape
Payment
Structured
Transaction #TX345678, R1,250 via Card
Recommendation
Graph
Customers who bought A also bought B
� How Data Actually Reaches HDFS
Whatever the source, it funnels into one place — five common on-ramps:
Logs → Flume
➜
DB → Sqoop
➜
CSV/JSON → Upload
➜
Streams → Kafka/NiFi
➜
APIs → Scripts
➜
HDFS
� YARN vs ZooKeeper — Don't Mix Them Up
� YARN — the Manager
� ZooKeeper — the Referee
Hadoop's resource manager. Schedules and allocates CPU & memory so jobs
from MapReduce, Hive, Pig, and Spark actually get to run.
A coordination service. Manages configuration, keeps distributed components
in sync, and handles leader election & failure recovery — it never processes
data itself.
� How Thabo's Recommendation Gets Made
Analyze behavior
➜
Apply ML (collab. filtering)
➜
Generate recommendation
➜
Write to HBase
➜
Serve via REST API
Bonus insight — why not real-time everything? True real-time processing is expensive & complex. Hadoop shines at batch work, so the bestpractice move is a hybrid model: precompute overnight, then lightly re-rank live.
✅ FINAL TAKEAWAY
Hadoop turns floods of raw, messy data into fast, personalized, real-world decisions — by splitting storage (HDFS/HBase), processing
(MapReduce/YARN), querying (Hive/Pig) and coordination (ZooKeeper) across a whole cluster instead of one overworked computer. Thabo
gets his perfect shoes; Takealot gets loyalty and sales. �
� References: databricks.com/glossary/hadoop-distributed-file-system-hdfs · medium.com/@kurizaril/hadoop-project