Sri Raghavendra Educational Institutions Society (R)
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
www.skit.org.in
Title: HDFS (Hadoop Distributed File System)
CO addressed: CO2
Course: Big Data Analytics
Presented by: Mr. P. Kiran Kumar
Department: ISE
2
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
HDFS (Hadoop Distributed File System)
Large File → Split into Blocks → Distributed across DataNodes
HDFS = Distributed Storage + Fault Tolerance + Scalability
3
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Main Components:
Client Application
NameNode
DataNodes
Example
Sample.txt → Block A + Block B + Block C
These blocks are distributed and replicated across DataNode A, DataNode B and DataNode C.
4
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Key Features of HDFS
Distributed Storage
Fault Tolerance
High Scalability
High Throughput
Large File Support
Data Replication
5
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
NameNode
6
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
DataNode
Heartbeat & Replication
DataNode → Heartbeat → NameNode
DataNode Failure → No Heartbeat → NameNode → Replicate Data
7
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Secondary NameNode
8
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Anatomy of File Read
File Read Operation
and reads the block.
DataNode for the next block.
Flow:
Client → NameNode → DataNode → Data
9
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
HDFS File Write
File Write Operation
Flow
Client → NameNode → DataNode 1 → DataNode 2 → DataNode 3
10
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
HDFS Replica Placement Strategy
Hadoop Default Replica Placement
Once replica locations are selected, a pipeline is created.
This strategy provides good reliability.
Replica Placement
Client → Rack 1 → Rack 2
Replica 1 → Replica 2 → Replica 3
11
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
HDFS Commands
1. List files and directories
Lists contents of the HDFS root directory.
2. List recursively
Lists all files and directories, including subdirectories.
3. Create a directory
Creates a new directory named sample in HDFS.
4. Copy local file to HDFS
Uploads a file from the local file system to HDFS.
12
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Copying Files in HDFS
1. Copy Local → HDFS
Uploads a file from the local file system to HDFS.
2. Copy HDFS → Local
Downloads a file from HDFS to the local file system.
3. Copy Local → HDFS using copyFromLocal
Copies a file from the local file system to HDFS.
13
14/08/2026
/skit.org.in
(Approved by AICTE, Accredited by NAAC, Affiliated to VTU, Karnataka)
Sri Krishna Institute of Technology
Special Features of HDFS
1. Data Replication
2. Data Pipeline
Data Pipeline
Client → DataNode 1 → DataNode 2 → DataNode 3