SlideShare a Scribd company logo
Distributed Computing with
Apache Hadoop
Technology Overview
Konstantin V. Shvachko
14 July 2011
Contents
• Why life is interesting in Distributed Computing
• Computational shift: New Data Domain
• Data is more important than Algorithms
• Hadoop as a technology
• Ecosystem of Hadoop tools
2
New Data Domain
• Simple calculations can be performed by humans
• Devices are need to process larger computations
• Large computations assume large data domain
• Domain of numbers – the only one until recently
– Crunching numbers from ancient times
– Computers served the same purpose– Computers served the same purpose
– Strict rules
• Growth of the Internet provided a new vast domain
– Word data: human generated texts
– Digital data: photo, video, sound
– Fuzzy rules. Errors & deviations are a part of study
– Started to process texts
– Barely touching digital data
3
Words vs. Numbers
• In 1997 IBM built Deep Blue supercomputer
– Playing chess game with the champion G. Kasparov
– Human race was defeated
– Strict rules for Chess
– Fast deep analyses of current state
– Still numbers
4
• In 2011 IBM built Watson computer to
play Jeopardy
– Questions and hints in human terms
– Analysis of texts from library and the
Internet
– Human champions defeated
The Library of Babel
• Jorge Luis Borges "The Library of Babel“
– Vast storage universe
– Composed of all possible manuscripts
uniformly formatted as 410-page books.
– Most are meaningless sequences of symbols
– The rest excitingly forms a complete and an
indestructible knowledge system
– Stores any text written or to be written
– Provides solutions to all problems in the world
– Just find the right book.
• Hard copy size is larger than visible universe
– a data domain worth discovering
• What is the size of the electronic version?
• Internet collection is a subset of the The Library of Babel
5
New Type of Algorithms
• Scalability is more important than efficiency
– Classic and Distributed sorting
– In place sorting updates common state
• More Hardware vs. development time
– 20% improvements in efficiency are not important
– Can ad more nodes instead
• Data is more important than algorithms
– Hard to collect data. Historical data 6 months to 1 year
• Example: Natural language processing
– Effects of training data size on classification accuracy
– Accuracy increases linearly on the size of the training data
– Machine learning algorithms converge on with increase of training data
6
Big Data
• Computations that need the power of many computers
– Large datasets: hundreds of TBs, PBs
– Or use of thousands of CPUs in parallel
– Or both
• Cluster as a computer
– Big Data management, storage and analytics
7
Big Data: Examples
• Search Webmap as of 2008 @ Y!
– Raw disk used 5 PB
– 1500 nodes
• High-energy physics LHC Collider:• High-energy physics LHC Collider:
– PBs of events
– 1 PB of data per sec, most filtered out
• 2 quadrillionth (1015) digit of πis 0
– Tsz-Wo (Nicholas) Sze
– 12 days of cluster time, 208 years of CPU time
– No data, pure CPU workload
8
Big Data: More Examples
• eHarmony
– Soul matching
• Banking• Banking
– Fraud detection
• Processing of astronomy data
– Image Stacking and Mosaicing
9
What is Hadoop
• Hadoop is an ecosystem of tools for processing
“Big Data”
• Hadoop is an open source project
The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again.
10
Hadoop: Architecture Principles
• Linear scalability: more nodes can do more work in the same time
– Linear on data size:
– Linear on compute resources:
• Move computation to data
– Minimize expensive data transfers
– Data are large, programs are small
• Reliability and Availability: Failures are common
– 1 drive fails every 3 years
• Probability of failing today 1/1000
– How many drives per day fail on 1000 node cluster with 10 drives ?
• Simple computational model
– hides complexity in efficient execution framework
• Sequential data processing (avoid random reads)
11
Hadoop Success Factors
• Apache Hadoop won the 2011 MediaGuardian Innovation Award
– Recognition for its influence on technological innovation
– Other nominees: iPad, WikiLeaks
1. Scalability
2. Open source & commodity software2. Open source & commodity software
3. Just works
12
Hadoop Family
HDFS Distributed file system
MapReduce Distributed computation
Zookeeper Distributed coordination
HBase Column storeHBase Column store
Pig Dataflow language, SQL
Hive Data warehouse, SQL
Oozie Complex job workflow
Avro Data Serialization
13
Hadoop Core
• A reliable, scalable, high performance distributed computing system
• Reliable storage layer
– The Hadoop Distributed File System (HDFS)
– With more sophisticated layers on top
• MapReduce – distributed computation framework
• Hadoop scales computation capacity, storage capacity, and I/O bandwidth• Hadoop scales computation capacity, storage capacity, and I/O bandwidth
by adding commodity servers.
• Divide-and-conquer using lots of commodity hardware
14
MapReduce
• MapReduce – distributed computation framework
– Invented by Google researchers
• Two stages of a MR job
– map: (k1; v1) → {(k2; v2)}
– reduce: (k2; {v2}) → {(k3; v3)}
• Map – a truly distributed stage• Map – a truly distributed stage
Reduce – an aggregation, may not be distributed
• Shuffle – sort and merge
– transition from Map to Reduce
– invisible to user
• Combiners & Partitioners
MapReduce Workflow
Where MapReduce cannot help
• MapReduce solves about 95% of practical problems
– Not a tool for everything
• Batch processing vs. real-time
– Throughput vs. Latency
• Simultaneous update of common state
• Inter communication between tasks of a job• Inter communication between tasks of a job
• Coordinated execution
• Use of other computational models
– MPI
– Driads
17
Hadoop Distributed File System
• The name space is a hierarchy of files and directories
• Files are divided into blocks (typically 128 MB)
• Namespace (metadata) is decoupled from data
– Lots of fast namespace operations, not slowed down by
– Data streaming
• Single NameNode keeps the entire name space in RAM• Single NameNode keeps the entire name space in RAM
• DataNodes store block replicas as files on local drives
• Blocks are replicated on 3 DataNodes for redundancy
18
HDFS Read
• To read a block, the client requests the list of replica locations from the
NameNode
• Then pulling data from a replica on one of the DataNodes
19
HDFS Write
• To write a block of a file, the client requests a list of candidate DataNodes
from the NameNode, and organizes a write pipeline.
20
Replica Location Awareness
• MapReduce schedules a task assigned to process block B to a DataNode
serving a replica of B
• Local access to data
21
Name Node
• NameNode keeps 3 types of information
– Hierarchical namespace
– Block manager: block to data-node mapping
– List of DataNodes
• The durability of the name space is maintained by a write-ahead journal and
checkpoints
– A BackupNode creates periodic checkpoints– A BackupNode creates periodic checkpoints
– A journal transaction is guaranteed to be persisted before replying to the client
– Block locations are not persisted, but rather discovered from DataNode during
startup via block reports.
22
Data Nodes
• DataNodes register with the NameNode, and provide periodic block reports
that list the block replicas on hand
• DataNodes send heartbeats to the NameNode
– Heartbeat responses give instructions for managing replicas
• If no heartbeat is received during a 10-minute interval, the node is
presumed to be lost, and the replicas hosted by that node to be unavailablepresumed to be lost, and the replicas hosted by that node to be unavailable
– NameNode schedules re-replication of lost replicas
23
Quiz:
What Is the Common Attribute?
24
Hadoop Size
• Y! cluster
– 70 million files, 80 million blocks
– 15 PB capacity
– 4000+ nodes. 24,000 clients
– 50 GB heap for NN
• Data warehouse Hadoop cluster at Facebook
– 55 million files, 80 million blocks. Estimate 200 million objects (files + blocks)– 55 million files, 80 million blocks. Estimate 200 million objects (files + blocks)
– 2000 nodes. 21 PB capacity, 30,000 clients
– 108 GB heap for NN should allow for 400 million objects
• Analytics Cluster at eBay
– 768 nodes
– Each node: 24 TB of local disk storage, 72 GB of RAM, and a 12-core CPU
– Cluster size is 18 PB.
– Runs 26,000 MapReduce tasks simultaneously
25
Limitations of the Implementation
• “HDFS Scalability: The limits to growth” USENIX ;login:
• Single master architecture: a constraining resource
• Limit to the number of namespace objects
– 100 million objects; 25 PB of data
– Block to file ratio is shrinking: 2 –> 1.5 -> 1.2
• Limits for linear performance growth• Limits for linear performance growth
– linear increase in # of workers puts a higher workload on the single NameNode
– Sinple NameNode cannot support 100,000 clients
• Hadoop MapReduce framework reached its scalability limit at 40,000 clients
– Corresponds to a 4,000-node cluster with 10 MapReduce slots
26
Benchmarks
• DFSIO
– Read: 66 MB/s
– Write: 40 MB/s
• Observed on busy cluster
– Read: 1.02 MB/s
– Write: 1.09 MB/s– Write: 1.09 MB/s
• Sort (“Very carefully tuned user application”)
Bytes
(TB)
Nodes Maps Reduces Time HDFS I/O Bytes/s
Aggregate
(GB/s)
Per Node
(MB/s)
1 1460 8000 2700 62 s 32 22.1
1000 3558 80,000 20,000 58,500 s 34.2 9.35
27
ZooKeeper
• A distributed coordination service for distributed apps
– Event coordination and notification
– Leader election
– Distributed locking
• ZooKeeper can help build HA systems
28
HBase
• Distributed table store on top of HDFS
– An implementation of Google’s BigTable
• Big table is Big Data, cannot be stored on a single node
• Tables: big, sparse, loosely structured.
– Consist of rows, having unique row keys
– Has arbitrary number of columns,
– grouped into small number of column families
– Dynamic column creation
• Table is partitioned into regions
– Horizontally across rows; vertically across column families
• HBase provides structured yet flexible access to data
• Near real-time data processing
29
HBase Functionality
• HBaseAdmin: administrative functions
– Create, delete, list tables
– Create, update, delete columns, families
– Split, compact, flush
• HTable: access table data
– Result HTable.get(Get g) // get cells of a row
– void HTable.put(Put p) // update a row– void HTable.put(Put p) // update a row
– void HTable.put(Put[] p) // batch update of rows
– void HTable.delete(Delete d) // delete cells/row
– ResultScanner getScanner(family) // scan col family
HBase Architecture
31
Pig
• A language on top of and to simplify MapReduce
• Pig speaks Pig Latin
• SQL-like language
• Pig programs are translated into a
series of MapReduce jobs
32
Hive
• Serves the same purpose as Pig
• Closely follows SQL standards
• Keeps metadata about Hive tables in MySQL DRBM
Oozie
• Workflows actions are arranged as Direct Acyclic Graph
– Multiple steps: MR, Pig, Hive, Java, data mover, ...
• Coordinator jobs (time/data driven workflow jobs)
– A workflow job is scheduled at a regular frequency
– The workflow job is started when all inputs are available
34
The Future: Next Generation MapReduce
• “Apache Hadoop: The scalability update” USENIX ;login:
• Next Generation MapReduce
– Separation of JobTracker functions
1. Job scheduling and resource allocation
• Fundamentally centralized
2. Job monitoring and job life-cycle coordination
• Delegate coordination of different jobs to other nodes
– Dynamic partitioning of cluster resources: no fixed slots
• HDFS Federation
– Independent NameNodes sharing a common pool of DataNodes
– Cluster is a family of volumes with shared block storage layer
– User sees volumes as isolated file systems
– ViewFS: the client-side mount table
– Federated approach provides a static partitioning of the federated namespace
35
The End
36
Ad

Recommended

Network layer tanenbaum
Network layer tanenbaum
Mahesh Kumar Chelimilla
 
Multithreading computer architecture
Multithreading computer architecture
Haris456
 
TCP and UDP
TCP and UDP
Ramesh Giri
 
multiprocessors and multicomputers
multiprocessors and multicomputers
Pankaj Kumar Jain
 
Data cubes
Data cubes
Mohammed
 
Shared-Memory Multiprocessors
Shared-Memory Multiprocessors
Salvatore La Bua
 
Multiplexer & Demultiplexer by Dr. Arvind Nautiyal.ppt
Multiplexer & Demultiplexer by Dr. Arvind Nautiyal.ppt
AswathAwin
 
Collision & broadcast domain
Collision & broadcast domain
NetProtocol Xpert
 
Distributed file system
Distributed file system
Anamika Singh
 
Key management
Key management
Sujata Regoti
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data mining
ZHAO Sam
 
3.2 partitioning methods
3.2 partitioning methods
Krish_ver2
 
Parallel programming model
Parallel programming model
easy notes
 
Hadoop & MapReduce
Hadoop & MapReduce
Newvewm
 
Computer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)
Abdullah al Mamun
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
Pankaj Kumar Jain
 
Message Authentication Code & HMAC
Message Authentication Code & HMAC
Krishna Gehlot
 
Chapter 4 pc
Chapter 4 pc
Hanif Durad
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
k33a
 
Cryptography & Network Security
Cryptography & Network Security
Fahad Shaikh
 
02 protocols and tcp-ip
02 protocols and tcp-ip
kashish0313
 
system interconnect architectures in ACA
system interconnect architectures in ACA
Pankaj Kumar Jain
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Datalinklayer tanenbaum
Datalinklayer tanenbaum
Mahesh Kumar Chelimilla
 
Greedy Algorithm
Greedy Algorithm
Waqar Akram
 
Hamming codes
Hamming codes
GIGI JOSEPH
 
Hadoop Operations - Best Practices from the Field
Hadoop Operations - Best Practices from the Field
DataWorks Summit
 
HDFS Design Principles
HDFS Design Principles
Konstantin V. Shvachko
 

More Related Content

What's hot (20)

Distributed file system
Distributed file system
Anamika Singh
 
Key management
Key management
Sujata Regoti
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data mining
ZHAO Sam
 
3.2 partitioning methods
3.2 partitioning methods
Krish_ver2
 
Parallel programming model
Parallel programming model
easy notes
 
Hadoop & MapReduce
Hadoop & MapReduce
Newvewm
 
Computer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
K-Nearest Neighbor(KNN)
K-Nearest Neighbor(KNN)
Abdullah al Mamun
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
Pankaj Kumar Jain
 
Message Authentication Code & HMAC
Message Authentication Code & HMAC
Krishna Gehlot
 
Chapter 4 pc
Chapter 4 pc
Hanif Durad
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
k33a
 
Cryptography & Network Security
Cryptography & Network Security
Fahad Shaikh
 
02 protocols and tcp-ip
02 protocols and tcp-ip
kashish0313
 
system interconnect architectures in ACA
system interconnect architectures in ACA
Pankaj Kumar Jain
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Datalinklayer tanenbaum
Datalinklayer tanenbaum
Mahesh Kumar Chelimilla
 
Greedy Algorithm
Greedy Algorithm
Waqar Akram
 
Hamming codes
Hamming codes
GIGI JOSEPH
 
Distributed file system
Distributed file system
Anamika Singh
 
Distance Vector & Link state Routing Algorithm
Distance Vector & Link state Routing Algorithm
MOHIT AGARWAL
 
Clustering: Large Databases in data mining
Clustering: Large Databases in data mining
ZHAO Sam
 
3.2 partitioning methods
3.2 partitioning methods
Krish_ver2
 
Parallel programming model
Parallel programming model
easy notes
 
Hadoop & MapReduce
Hadoop & MapReduce
Newvewm
 
Computer Network - Network Layer
Computer Network - Network Layer
Manoj Kumar
 
program partitioning and scheduling IN Advanced Computer Architecture
program partitioning and scheduling IN Advanced Computer Architecture
Pankaj Kumar Jain
 
Message Authentication Code & HMAC
Message Authentication Code & HMAC
Krishna Gehlot
 
Transmission Control Protocol (TCP)
Transmission Control Protocol (TCP)
k33a
 
Cryptography & Network Security
Cryptography & Network Security
Fahad Shaikh
 
02 protocols and tcp-ip
02 protocols and tcp-ip
kashish0313
 
system interconnect architectures in ACA
system interconnect architectures in ACA
Pankaj Kumar Jain
 
Issues in design_of_code_generator
Issues in design_of_code_generator
vinithapanneer
 
Greedy Algorithm
Greedy Algorithm
Waqar Akram
 

Viewers also liked (13)

Hadoop Operations - Best Practices from the Field
Hadoop Operations - Best Practices from the Field
DataWorks Summit
 
HDFS Design Principles
HDFS Design Principles
Konstantin V. Shvachko
 
Hadoop - Lessons Learned
Hadoop - Lessons Learned
tcurdt
 
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
DataWorks Summit/Hadoop Summit
 
Big data- HDFS(2nd presentation)
Big data- HDFS(2nd presentation)
Takrim Ul Islam Laskar
 
Hadoop introduction
Hadoop introduction
Subhas Kumar Ghosh
 
How to overcome mysterious problems caused by large and multi-tenancy Hadoop ...
How to overcome mysterious problems caused by large and multi-tenancy Hadoop ...
DataWorks Summit/Hadoop Summit
 
Hadoop HDFS Architeture and Design
Hadoop HDFS Architeture and Design
sudhakara st
 
Hadoop & Big Data benchmarking
Hadoop & Big Data benchmarking
Bart Vandewoestyne
 
Hadoop & HDFS for Beginners
Hadoop & HDFS for Beginners
Rahul Jain
 
Unleashing the Power of Apache Atlas with Apache Ranger
Unleashing the Power of Apache Atlas with Apache Ranger
DataWorks Summit/Hadoop Summit
 
Hadoop
Hadoop
Nishant Gandhi
 
Seminar Presentation Hadoop
Seminar Presentation Hadoop
Varun Narang
 
Hadoop Operations - Best Practices from the Field
Hadoop Operations - Best Practices from the Field
DataWorks Summit
 
Hadoop - Lessons Learned
Hadoop - Lessons Learned
tcurdt
 
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
Scaling HDFS to Manage Billions of Files with Distributed Storage Schemes
DataWorks Summit/Hadoop Summit
 
How to overcome mysterious problems caused by large and multi-tenancy Hadoop ...
How to overcome mysterious problems caused by large and multi-tenancy Hadoop ...
DataWorks Summit/Hadoop Summit
 
Hadoop HDFS Architeture and Design
Hadoop HDFS Architeture and Design
sudhakara st
 
Hadoop & Big Data benchmarking
Hadoop & Big Data benchmarking
Bart Vandewoestyne
 
Hadoop & HDFS for Beginners
Hadoop & HDFS for Beginners
Rahul Jain
 
Unleashing the Power of Apache Atlas with Apache Ranger
Unleashing the Power of Apache Atlas with Apache Ranger
DataWorks Summit/Hadoop Summit
 
Seminar Presentation Hadoop
Seminar Presentation Hadoop
Varun Narang
 
Ad

Similar to Distributed Computing with Apache Hadoop: Technology Overview (20)

Hadoop - Introduction to HDFS
Hadoop - Introduction to HDFS
Vibrant Technologies & Computers
 
Hadoop Seminar Report
Hadoop Seminar Report
Atul Kushwaha
 
Hadoop-2022.pptx
Hadoop-2022.pptx
MurindanyiSudi1
 
002 Introduction to hadoop v3
002 Introduction to hadoop v3
Dendej Sawarnkatat
 
Hadoop online-training
Hadoop online-training
Geohedrick
 
Hadoop and Mapreduce Introduction
Hadoop and Mapreduce Introduction
rajsandhu1989
 
Hadoop ppt1
Hadoop ppt1
chariorienit
 
Hadoop introduction , Why and What is Hadoop ?
Hadoop introduction , Why and What is Hadoop ?
sudhakara st
 
2. hadoop fundamentals
2. hadoop fundamentals
Lokesh Ramaswamy
 
Hadoop.pptx
Hadoop.pptx
sonukumar379092
 
Hadoop.pptx
Hadoop.pptx
arslanhaneef
 
List of Engineering Colleges in Uttarakhand
List of Engineering Colleges in Uttarakhand
Roorkee College of Engineering, Roorkee
 
Introduction to Hadoop and Big Data
Introduction to Hadoop and Big Data
Joe Alex
 
MOD-2 presentation on engineering students
MOD-2 presentation on engineering students
rishavkumar1402
 
Big Data and Hadoop
Big Data and Hadoop
Flavio Vit
 
Distributed computing poli
Distributed computing poli
ivascucristian
 
Introduction to Hadoop
Introduction to Hadoop
York University
 
Hadoop scalability
Hadoop scalability
WANdisco Plc
 
getFamiliarWithHadoop
getFamiliarWithHadoop
AmirReza Mohammadi
 
Hadoop Distributed File System
Hadoop Distributed File System
Vaibhav Jain
 
Hadoop Seminar Report
Hadoop Seminar Report
Atul Kushwaha
 
Hadoop online-training
Hadoop online-training
Geohedrick
 
Hadoop and Mapreduce Introduction
Hadoop and Mapreduce Introduction
rajsandhu1989
 
Hadoop introduction , Why and What is Hadoop ?
Hadoop introduction , Why and What is Hadoop ?
sudhakara st
 
Introduction to Hadoop and Big Data
Introduction to Hadoop and Big Data
Joe Alex
 
MOD-2 presentation on engineering students
MOD-2 presentation on engineering students
rishavkumar1402
 
Big Data and Hadoop
Big Data and Hadoop
Flavio Vit
 
Distributed computing poli
Distributed computing poli
ivascucristian
 
Hadoop scalability
Hadoop scalability
WANdisco Plc
 
Hadoop Distributed File System
Hadoop Distributed File System
Vaibhav Jain
 
Ad

Recently uploaded (20)

Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Using the SQLExecutor for Data Quality Management: aka One man's love for the...
Safe Software
 
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
" How to survive with 1 billion vectors and not sell a kidney: our low-cost c...
Fwdays
 
You are not excused! How to avoid security blind spots on the way to production
You are not excused! How to avoid security blind spots on the way to production
Michele Leroux Bustamante
 
Connecting Data and Intelligence: The Role of FME in Machine Learning
Connecting Data and Intelligence: The Role of FME in Machine Learning
Safe Software
 
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Oh, the Possibilities - Balancing Innovation and Risk with Generative AI.pdf
Priyanka Aash
 
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
A Constitutional Quagmire - Ethical Minefields of AI, Cyber, and Privacy.pdf
Priyanka Aash
 
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik - Passionate Tech Enthusiast
Raman Bhaumik
 
OpenPOWER Foundation & Open-Source Core Innovations
OpenPOWER Foundation & Open-Source Core Innovations
IBM
 
Curietech AI in action - Accelerate MuleSoft development
Curietech AI in action - Accelerate MuleSoft development
shyamraj55
 
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
CapCut Pro Crack For PC Latest Version {Fully Unlocked} 2025
pcprocore
 
AI VIDEO MAGAZINE - June 2025 - r/aivideo
AI VIDEO MAGAZINE - June 2025 - r/aivideo
1pcity Studios, Inc
 
Securing AI - There Is No Try, Only Do!.pdf
Securing AI - There Is No Try, Only Do!.pdf
Priyanka Aash
 
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC and Open Hackathons Monthly Highlights June 2025
OpenACC
 
Mastering AI Workflows with FME by Mark Döring
Mastering AI Workflows with FME by Mark Döring
Safe Software
 
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Enhance GitHub Copilot using MCP - Enterprise version.pdf
Nilesh Gule
 
Lessons Learned from Developing Secure AI Workflows.pdf
Lessons Learned from Developing Secure AI Workflows.pdf
Priyanka Aash
 
OWASP Barcelona 2025 Threat Model Library
OWASP Barcelona 2025 Threat Model Library
PetraVukmirovic
 
Python Conference Singapore - 19 Jun 2025
Python Conference Singapore - 19 Jun 2025
ninefyi
 
Securing Account Lifecycles in the Age of Deepfakes.pptx
Securing Account Lifecycles in the Age of Deepfakes.pptx
FIDO Alliance
 
Security Tips for Enterprise Azure Solutions
Security Tips for Enterprise Azure Solutions
Michele Leroux Bustamante
 

Distributed Computing with Apache Hadoop: Technology Overview

  • 1. Distributed Computing with Apache Hadoop Technology Overview Konstantin V. Shvachko 14 July 2011
  • 2. Contents • Why life is interesting in Distributed Computing • Computational shift: New Data Domain • Data is more important than Algorithms • Hadoop as a technology • Ecosystem of Hadoop tools 2
  • 3. New Data Domain • Simple calculations can be performed by humans • Devices are need to process larger computations • Large computations assume large data domain • Domain of numbers – the only one until recently – Crunching numbers from ancient times – Computers served the same purpose– Computers served the same purpose – Strict rules • Growth of the Internet provided a new vast domain – Word data: human generated texts – Digital data: photo, video, sound – Fuzzy rules. Errors & deviations are a part of study – Started to process texts – Barely touching digital data 3
  • 4. Words vs. Numbers • In 1997 IBM built Deep Blue supercomputer – Playing chess game with the champion G. Kasparov – Human race was defeated – Strict rules for Chess – Fast deep analyses of current state – Still numbers 4 • In 2011 IBM built Watson computer to play Jeopardy – Questions and hints in human terms – Analysis of texts from library and the Internet – Human champions defeated
  • 5. The Library of Babel • Jorge Luis Borges "The Library of Babel“ – Vast storage universe – Composed of all possible manuscripts uniformly formatted as 410-page books. – Most are meaningless sequences of symbols – The rest excitingly forms a complete and an indestructible knowledge system – Stores any text written or to be written – Provides solutions to all problems in the world – Just find the right book. • Hard copy size is larger than visible universe – a data domain worth discovering • What is the size of the electronic version? • Internet collection is a subset of the The Library of Babel 5
  • 6. New Type of Algorithms • Scalability is more important than efficiency – Classic and Distributed sorting – In place sorting updates common state • More Hardware vs. development time – 20% improvements in efficiency are not important – Can ad more nodes instead • Data is more important than algorithms – Hard to collect data. Historical data 6 months to 1 year • Example: Natural language processing – Effects of training data size on classification accuracy – Accuracy increases linearly on the size of the training data – Machine learning algorithms converge on with increase of training data 6
  • 7. Big Data • Computations that need the power of many computers – Large datasets: hundreds of TBs, PBs – Or use of thousands of CPUs in parallel – Or both • Cluster as a computer – Big Data management, storage and analytics 7
  • 8. Big Data: Examples • Search Webmap as of 2008 @ Y! – Raw disk used 5 PB – 1500 nodes • High-energy physics LHC Collider:• High-energy physics LHC Collider: – PBs of events – 1 PB of data per sec, most filtered out • 2 quadrillionth (1015) digit of πis 0 – Tsz-Wo (Nicholas) Sze – 12 days of cluster time, 208 years of CPU time – No data, pure CPU workload 8
  • 9. Big Data: More Examples • eHarmony – Soul matching • Banking• Banking – Fraud detection • Processing of astronomy data – Image Stacking and Mosaicing 9
  • 10. What is Hadoop • Hadoop is an ecosystem of tools for processing “Big Data” • Hadoop is an open source project The image cannot be displayed. Your computer may not have enough memory to open the image, or the image may have been corrupted. Restart your computer, and then open the file again. If the red x still appears, you may have to delete the image and then insert it again. 10
  • 11. Hadoop: Architecture Principles • Linear scalability: more nodes can do more work in the same time – Linear on data size: – Linear on compute resources: • Move computation to data – Minimize expensive data transfers – Data are large, programs are small • Reliability and Availability: Failures are common – 1 drive fails every 3 years • Probability of failing today 1/1000 – How many drives per day fail on 1000 node cluster with 10 drives ? • Simple computational model – hides complexity in efficient execution framework • Sequential data processing (avoid random reads) 11
  • 12. Hadoop Success Factors • Apache Hadoop won the 2011 MediaGuardian Innovation Award – Recognition for its influence on technological innovation – Other nominees: iPad, WikiLeaks 1. Scalability 2. Open source & commodity software2. Open source & commodity software 3. Just works 12
  • 13. Hadoop Family HDFS Distributed file system MapReduce Distributed computation Zookeeper Distributed coordination HBase Column storeHBase Column store Pig Dataflow language, SQL Hive Data warehouse, SQL Oozie Complex job workflow Avro Data Serialization 13
  • 14. Hadoop Core • A reliable, scalable, high performance distributed computing system • Reliable storage layer – The Hadoop Distributed File System (HDFS) – With more sophisticated layers on top • MapReduce – distributed computation framework • Hadoop scales computation capacity, storage capacity, and I/O bandwidth• Hadoop scales computation capacity, storage capacity, and I/O bandwidth by adding commodity servers. • Divide-and-conquer using lots of commodity hardware 14
  • 15. MapReduce • MapReduce – distributed computation framework – Invented by Google researchers • Two stages of a MR job – map: (k1; v1) → {(k2; v2)} – reduce: (k2; {v2}) → {(k3; v3)} • Map – a truly distributed stage• Map – a truly distributed stage Reduce – an aggregation, may not be distributed • Shuffle – sort and merge – transition from Map to Reduce – invisible to user • Combiners & Partitioners
  • 17. Where MapReduce cannot help • MapReduce solves about 95% of practical problems – Not a tool for everything • Batch processing vs. real-time – Throughput vs. Latency • Simultaneous update of common state • Inter communication between tasks of a job• Inter communication between tasks of a job • Coordinated execution • Use of other computational models – MPI – Driads 17
  • 18. Hadoop Distributed File System • The name space is a hierarchy of files and directories • Files are divided into blocks (typically 128 MB) • Namespace (metadata) is decoupled from data – Lots of fast namespace operations, not slowed down by – Data streaming • Single NameNode keeps the entire name space in RAM• Single NameNode keeps the entire name space in RAM • DataNodes store block replicas as files on local drives • Blocks are replicated on 3 DataNodes for redundancy 18
  • 19. HDFS Read • To read a block, the client requests the list of replica locations from the NameNode • Then pulling data from a replica on one of the DataNodes 19
  • 20. HDFS Write • To write a block of a file, the client requests a list of candidate DataNodes from the NameNode, and organizes a write pipeline. 20
  • 21. Replica Location Awareness • MapReduce schedules a task assigned to process block B to a DataNode serving a replica of B • Local access to data 21
  • 22. Name Node • NameNode keeps 3 types of information – Hierarchical namespace – Block manager: block to data-node mapping – List of DataNodes • The durability of the name space is maintained by a write-ahead journal and checkpoints – A BackupNode creates periodic checkpoints– A BackupNode creates periodic checkpoints – A journal transaction is guaranteed to be persisted before replying to the client – Block locations are not persisted, but rather discovered from DataNode during startup via block reports. 22
  • 23. Data Nodes • DataNodes register with the NameNode, and provide periodic block reports that list the block replicas on hand • DataNodes send heartbeats to the NameNode – Heartbeat responses give instructions for managing replicas • If no heartbeat is received during a 10-minute interval, the node is presumed to be lost, and the replicas hosted by that node to be unavailablepresumed to be lost, and the replicas hosted by that node to be unavailable – NameNode schedules re-replication of lost replicas 23
  • 24. Quiz: What Is the Common Attribute? 24
  • 25. Hadoop Size • Y! cluster – 70 million files, 80 million blocks – 15 PB capacity – 4000+ nodes. 24,000 clients – 50 GB heap for NN • Data warehouse Hadoop cluster at Facebook – 55 million files, 80 million blocks. Estimate 200 million objects (files + blocks)– 55 million files, 80 million blocks. Estimate 200 million objects (files + blocks) – 2000 nodes. 21 PB capacity, 30,000 clients – 108 GB heap for NN should allow for 400 million objects • Analytics Cluster at eBay – 768 nodes – Each node: 24 TB of local disk storage, 72 GB of RAM, and a 12-core CPU – Cluster size is 18 PB. – Runs 26,000 MapReduce tasks simultaneously 25
  • 26. Limitations of the Implementation • “HDFS Scalability: The limits to growth” USENIX ;login: • Single master architecture: a constraining resource • Limit to the number of namespace objects – 100 million objects; 25 PB of data – Block to file ratio is shrinking: 2 –> 1.5 -> 1.2 • Limits for linear performance growth• Limits for linear performance growth – linear increase in # of workers puts a higher workload on the single NameNode – Sinple NameNode cannot support 100,000 clients • Hadoop MapReduce framework reached its scalability limit at 40,000 clients – Corresponds to a 4,000-node cluster with 10 MapReduce slots 26
  • 27. Benchmarks • DFSIO – Read: 66 MB/s – Write: 40 MB/s • Observed on busy cluster – Read: 1.02 MB/s – Write: 1.09 MB/s– Write: 1.09 MB/s • Sort (“Very carefully tuned user application”) Bytes (TB) Nodes Maps Reduces Time HDFS I/O Bytes/s Aggregate (GB/s) Per Node (MB/s) 1 1460 8000 2700 62 s 32 22.1 1000 3558 80,000 20,000 58,500 s 34.2 9.35 27
  • 28. ZooKeeper • A distributed coordination service for distributed apps – Event coordination and notification – Leader election – Distributed locking • ZooKeeper can help build HA systems 28
  • 29. HBase • Distributed table store on top of HDFS – An implementation of Google’s BigTable • Big table is Big Data, cannot be stored on a single node • Tables: big, sparse, loosely structured. – Consist of rows, having unique row keys – Has arbitrary number of columns, – grouped into small number of column families – Dynamic column creation • Table is partitioned into regions – Horizontally across rows; vertically across column families • HBase provides structured yet flexible access to data • Near real-time data processing 29
  • 30. HBase Functionality • HBaseAdmin: administrative functions – Create, delete, list tables – Create, update, delete columns, families – Split, compact, flush • HTable: access table data – Result HTable.get(Get g) // get cells of a row – void HTable.put(Put p) // update a row– void HTable.put(Put p) // update a row – void HTable.put(Put[] p) // batch update of rows – void HTable.delete(Delete d) // delete cells/row – ResultScanner getScanner(family) // scan col family
  • 32. Pig • A language on top of and to simplify MapReduce • Pig speaks Pig Latin • SQL-like language • Pig programs are translated into a series of MapReduce jobs 32
  • 33. Hive • Serves the same purpose as Pig • Closely follows SQL standards • Keeps metadata about Hive tables in MySQL DRBM
  • 34. Oozie • Workflows actions are arranged as Direct Acyclic Graph – Multiple steps: MR, Pig, Hive, Java, data mover, ... • Coordinator jobs (time/data driven workflow jobs) – A workflow job is scheduled at a regular frequency – The workflow job is started when all inputs are available 34
  • 35. The Future: Next Generation MapReduce • “Apache Hadoop: The scalability update” USENIX ;login: • Next Generation MapReduce – Separation of JobTracker functions 1. Job scheduling and resource allocation • Fundamentally centralized 2. Job monitoring and job life-cycle coordination • Delegate coordination of different jobs to other nodes – Dynamic partitioning of cluster resources: no fixed slots • HDFS Federation – Independent NameNodes sharing a common pool of DataNodes – Cluster is a family of volumes with shared block storage layer – User sees volumes as isolated file systems – ViewFS: the client-side mount table – Federated approach provides a static partitioning of the federated namespace 35