SlideShare a Scribd company logo
Challenges to Error
Diagnosis in Hadoop
Ecosystems
Jim Li, Siyuan He, Liming Zhu,
Xiwei Xu, Min Fu, Len Bass, Anna
Liu, An Binh Tran

NICTA Copyright 2012

From imagination to impact
About NICTA
National ICT Australia
• Federal and state funded research
company established in 2002
• Largest ICT research resource in
Australia
• National impact is an important
success metric
• ~700 staff/students working in 5 labs
across major capital cities
• 7 university partners
• Providing R&D services, knowledge
transfer to Australian (and global) ICT
industry

NICTA technology is
in over 1 billion mobile
phones

2
NICTA Copyright 2012

From imagination to impact
Problem
• Operator invokes some process in cloud (e.g. rolling
upgrade or installation)
• 45 minutes or an hour later – the process fails
– Usually with an error message
– Possibly with a silent failure that manifests itself much
later
• Operator must then
diagnose failure
• Problem is most
complicated when
multiple components
are involved.
NICTA Copyright 2012

From imagination to impact

3
But aren’t there tools and recipes?
• Yes – but …
• Recipes for deployment tools make assumptions
about what you want.
• In many cases, these assumptions are wrong.
• In these cases, you must troubleshoot
installation problems.
• Troubleshooting is based on examination of
generated logs.

NICTA Copyright 2012

From imagination to impact

4
What are the difficulties associated with
using logs?
• The system being deployed is an ecosystem
with multiple independently developed
systems. Each component’s logging is
independently determined and not under
central control.
– Events and state deemed worthy to log
may be different from different
components
• Results in
– Sequence of events leading to failure may
be difficult to reproduce
– Missing or contradictory information in
combined logs From imagination to impact
NICTA Copyright 2012

5
Our envisioned deployment solution
• A solution will
– Execute the correct steps in a correct order
– The execution of a step will result in a correct state of the
environment

• Use a process model annotated with assertions to detect
incorrect steps or incorrect state
• The detection of an error will trigger a look up in a
repository that maps symptoms to fault trees to root
causes.

NICTA Copyright 2012

From imagination to impact

6
Rolling upgrade process model example
• Attach assertions to process
model to test state
• Use progress within process
to determine which
assertions to test.
• This approach restricts root
cause determination to
particular step in the
process.

Update Auto Scaling
Group
Sort Instances
Confirm Upgrade Spec

Remove & Deregister
Old Instance from ELB

Terminate Old
Instance

Wait for ASG to Start
New Instance

Register New Instance
with ELB

NICTA Copyright 2012

From imagination to impact

7
This paper
• Makes a contribution to the envisioned
repository
– Present 15 examples of systems/possible root causes
for Hbase/Hadoop deployment

• Provides a classification of errors into
–
–
–
–

Operational
Configuration
Software
Resource

• Identifies specific error diagnosis challenges in
multi-layer ecosystems.
NICTA Copyright 2012

From imagination to impact

8
What did we do?
• We manually deployed HBase/Hadoop on
EC2
– 5 NICTA people from 2 different groups
– 10 installations in total

• We diagnosed and recorded errors we
discovered
– With help from a Citibank person

NICTA Copyright 2012

From imagination to impact

9
Case study
Hbase Cluster on Amazon EC2

NICTA Copyright 2012

From imagination to impact

10
Sample Errors - 1
• Source – HDFS
• Logging Exception: “DataNode is Shutting Down”
• Possible Causes/diagnostics
– Instance is down/ping ssh connection
– Access permission/check authentication keys, ssh
connection
– HDFS configuration/check “conf/slaves”
– HDFS missing component/check data node settings
and directories

NICTA Copyright 2012

From imagination to impact

11
Sample errors - 2
• Source: Zookeeper
• Logging exception:
“java.net.UnknownHostException”
• Possible causes/diagnostics:
–
–
–
–
–

DSN/check DSN configuration
Network connection/check with ssh
Zookeeper configuration: zoo.cfg
Zookeeper status/processes (PID and JPS)
Cross-node configuration error/check consistency

NICTA Copyright 2012

From imagination to impact

12
Comments on Errors
• Paper has
– 15 enumerated exceptions and potential causes
– Discussion of classification of errors and samples

• Most useful to non-expert installers
• Information could potentially be found on
– Stack Overflow
– Specific source forums

• Better to have
– Consistent form for fault trees
– Known place to find them
– Standard environmental description
NICTA Copyright 2012

From imagination to impact

13
Different types of errors
• Operational errors
– Start up/shutdown errors
– Artifacts not created or created incorrectly

• Configuration errors
– Syntactic errors
– Cross system inconsistency

• Software errrors
– Compatibility errors
– Bugs in the software

• Resource errors
– Resource unavailability or exhaustion
NICTA Copyright 2012

From imagination to impact

14
Challenges to trouble shooting
from logs
• Inconsistency among logs
• Signal to noise ratio
• Uncertain correlations

NICTA Copyright 2012

From imagination to impact

15
Inconsistency among logs
• IP address is used as ID but IP addresses can
change in the cloud. For example, if an instance
is restarted.
• Inconsistent time stamps in a distributed
environment due to network latency makes
determination of a sequence of events difficult.

NICTA Copyright 2012

From imagination to impact

16
Signal to noise ratio
• Logs contain huge amount of information
• Tools exist to collect logs into a central source
–
–
–
–

Scribe
Flume
Logstash
Chukwa

• Tools that search logs need guidance to filter
information
• We propose an approach that uses a process
model to guide diagnosis (to be explained
shortly).
NICTA Copyright 2012

From imagination to impact

17
Uncertain correlation
• Between exceptions
– Connections among exceptions arising from the same
cause are difficult to detect.

• Between component states
– Dependent relations among component states not
shown in log messages and are difficult to detect.

• Between events
– Connections among distributed events are difficult to
detect.

• Between states and events
– Diagnosis depends on connecting state and events
and these may not be obvious from log messages.
NICTA Copyright 2012

From imagination to impact

18
Summary
• Deploying or updating ecosystems is an error
prone activity
• Determining root cause of an error is difficult and
time consuming
• We provided a list of 15 specific errors and their
potential root causes for Hbase/Hadoop
deployment
• We categorized types of errors and uncertainties
in error diagnosis

NICTA Copyright 2012

From imagination to impact

19

More Related Content

PDF
Architecting for the cloud elasticity security
PDF
Architecting for the cloud cloud providers
PDF
Comparing high availability solutions with percona xtradb cluster and percona...
PPTX
A load balancing model based on cloud partitioning for the public cloud. ppt
PPTX
Distributed systems and scalability rules
PPTX
LOAD BALANCING ALGORITHMS
PPTX
Cloud computing Module 2 First Part
PDF
Open west 2015 talk ben coverston
Architecting for the cloud elasticity security
Architecting for the cloud cloud providers
Comparing high availability solutions with percona xtradb cluster and percona...
A load balancing model based on cloud partitioning for the public cloud. ppt
Distributed systems and scalability rules
LOAD BALANCING ALGORITHMS
Cloud computing Module 2 First Part
Open west 2015 talk ben coverston

What's hot (20)

PDF
Webinar Slides: Tungsten Connector / Proxy – The Secret Sauce Behind Zero-Dow...
PPT
The Architect's Two Hats
PDF
Designing large scale distributed systems
PDF
Simple Solutions for Complex Problems
PPTX
Dynamo and BigTable in light of the CAP theorem
PPTX
Cloud computing
PPTX
Base paper ppt-. A load balancing model based on cloud partitioning for the ...
PPTX
load balancing in public cloud ppt
PPT
Design principles of scalable, distributed systems
PDF
The Economics of Scale: Promises and Perils of Going Distributed
PPTX
Big Data for QAs
PPTX
Optimal load balancing in cloud computing
PPT
Continuent Tungsten - Scalable Saa S Data Management
PPTX
My Dissertation 2016
PDF
Distributed Database practicals
PDF
Load Balancing in Cloud Computing Environment: A Comparative Study of Service...
PDF
Case Study - How Rackspace Query Terabytes Of Data
PDF
Why Distributed Databases?
PDF
10 Tricks to Ensure Your Oracle Coherence Cluster is Not a "Black Box" in Pro...
PPTX
Running MariaDB in multiple data centers
Webinar Slides: Tungsten Connector / Proxy – The Secret Sauce Behind Zero-Dow...
The Architect's Two Hats
Designing large scale distributed systems
Simple Solutions for Complex Problems
Dynamo and BigTable in light of the CAP theorem
Cloud computing
Base paper ppt-. A load balancing model based on cloud partitioning for the ...
load balancing in public cloud ppt
Design principles of scalable, distributed systems
The Economics of Scale: Promises and Perils of Going Distributed
Big Data for QAs
Optimal load balancing in cloud computing
Continuent Tungsten - Scalable Saa S Data Management
My Dissertation 2016
Distributed Database practicals
Load Balancing in Cloud Computing Environment: A Comparative Study of Service...
Case Study - How Rackspace Query Terabytes Of Data
Why Distributed Databases?
10 Tricks to Ensure Your Oracle Coherence Cluster is Not a "Black Box" in Pro...
Running MariaDB in multiple data centers
Ad

Similar to Error in hadoop (20)

PPTX
POD-Diagnosis: Error Detection and Diagnosis of Sporadic Operations on Cloud ...
PPTX
Challenges in Practicing High Frequency Releases in Cloud Environments
PPTX
The quality attribute of upgradability
PPTX
Dependable Operation - Performance Management and Capacity Planning Under Con...
PPTX
Architectural Tactics for Large Scale Systems
PPTX
SplunkLive! Austin Customer Presentation - Dell
PDF
Big data pipelines
PPT
Net essentials6e ch13
PDF
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
PDF
All In - Migrating a Genomics Pipeline from BASH/Hive to Spark (Azure Databri...
PDF
Fast and effective analysis of architecture diagrams
PDF
Siegel - keynote presentation, 18 may 2013
PPTX
Apache Kafka and the Data Mesh | Ben Stopford and Michael Noll, Confluent
PDF
Delivering Operational Intelligence at NAB with Splunk, Gartner Symposium ITX...
PPTX
The 5S Approach to Performance Tuning by Chuck Ezell
PDF
Network Automation Journey, A systems engineer NetOps perspective
PPT
Troubleshooting: A High-Value Asset For The Service-Provider Discipline
PDF
Why advanced monitoring is key for healthy
PPT
Performance Analysis of Idle Programs
PPTX
Some Oracle AWR observations
POD-Diagnosis: Error Detection and Diagnosis of Sporadic Operations on Cloud ...
Challenges in Practicing High Frequency Releases in Cloud Environments
The quality attribute of upgradability
Dependable Operation - Performance Management and Capacity Planning Under Con...
Architectural Tactics for Large Scale Systems
SplunkLive! Austin Customer Presentation - Dell
Big data pipelines
Net essentials6e ch13
Behavior-Driven Development (BDD) Testing with Apache Spark with Aaron Colcor...
All In - Migrating a Genomics Pipeline from BASH/Hive to Spark (Azure Databri...
Fast and effective analysis of architecture diagrams
Siegel - keynote presentation, 18 may 2013
Apache Kafka and the Data Mesh | Ben Stopford and Michael Noll, Confluent
Delivering Operational Intelligence at NAB with Splunk, Gartner Symposium ITX...
The 5S Approach to Performance Tuning by Chuck Ezell
Network Automation Journey, A systems engineer NetOps perspective
Troubleshooting: A High-Value Asset For The Service-Provider Discipline
Why advanced monitoring is key for healthy
Performance Analysis of Idle Programs
Some Oracle AWR observations
Ad

More from Len Bass (20)

PDF
Devops syllabus
PDF
DevOps Syllabus summer 2020
PDF
11 secure development
PDF
10 disaster recovery
PDF
9 postproduction
PDF
8 pipeline
PDF
7 configuration management
PDF
6 microservice architecture
PDF
5 infrastructure security
PPTX
4 container management
PDF
3 the cloud
PDF
1 virtual machines
PDF
2 networking
PDF
Quantum talk
PDF
Icsa2018 blockchain tutorial
PDF
Experience in teaching devops
PDF
Understanding blockchains
PDF
What is a blockchain
PDF
Dev ops and safety critical systems
PDF
My first deployment pipeline
Devops syllabus
DevOps Syllabus summer 2020
11 secure development
10 disaster recovery
9 postproduction
8 pipeline
7 configuration management
6 microservice architecture
5 infrastructure security
4 container management
3 the cloud
1 virtual machines
2 networking
Quantum talk
Icsa2018 blockchain tutorial
Experience in teaching devops
Understanding blockchains
What is a blockchain
Dev ops and safety critical systems
My first deployment pipeline

Recently uploaded (20)

PDF
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
PDF
NewMind AI Monthly Chronicles - July 2025
PDF
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
PDF
Chapter 3 Spatial Domain Image Processing.pdf
PDF
Electronic commerce courselecture one. Pdf
PDF
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
PDF
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
PDF
Network Security Unit 5.pdf for BCA BBA.
PPTX
Understanding_Digital_Forensics_Presentation.pptx
PPTX
MYSQL Presentation for SQL database connectivity
PDF
Diabetes mellitus diagnosis method based random forest with bat algorithm
PDF
NewMind AI Weekly Chronicles - August'25 Week I
PDF
Modernizing your data center with Dell and AMD
PPT
“AI and Expert System Decision Support & Business Intelligence Systems”
PDF
Mobile App Security Testing_ A Comprehensive Guide.pdf
PDF
The Rise and Fall of 3GPP – Time for a Sabbatical?
PDF
GamePlan Trading System Review: Professional Trader's Honest Take
PPTX
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
PDF
Reach Out and Touch Someone: Haptics and Empathic Computing
PPTX
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...
Shreyas Phanse Resume: Experienced Backend Engineer | Java • Spring Boot • Ka...
NewMind AI Monthly Chronicles - July 2025
GDG Cloud Iasi [PUBLIC] Florian Blaga - Unveiling the Evolution of Cybersecur...
Chapter 3 Spatial Domain Image Processing.pdf
Electronic commerce courselecture one. Pdf
solutions_manual_-_materials___processing_in_manufacturing__demargo_.pdf
7 ChatGPT Prompts to Help You Define Your Ideal Customer Profile.pdf
Network Security Unit 5.pdf for BCA BBA.
Understanding_Digital_Forensics_Presentation.pptx
MYSQL Presentation for SQL database connectivity
Diabetes mellitus diagnosis method based random forest with bat algorithm
NewMind AI Weekly Chronicles - August'25 Week I
Modernizing your data center with Dell and AMD
“AI and Expert System Decision Support & Business Intelligence Systems”
Mobile App Security Testing_ A Comprehensive Guide.pdf
The Rise and Fall of 3GPP – Time for a Sabbatical?
GamePlan Trading System Review: Professional Trader's Honest Take
Detection-First SIEM: Rule Types, Dashboards, and Threat-Informed Strategy
Reach Out and Touch Someone: Haptics and Empathic Computing
Effective Security Operations Center (SOC) A Modern, Strategic, and Threat-In...

Error in hadoop

  • 1. Challenges to Error Diagnosis in Hadoop Ecosystems Jim Li, Siyuan He, Liming Zhu, Xiwei Xu, Min Fu, Len Bass, Anna Liu, An Binh Tran NICTA Copyright 2012 From imagination to impact
  • 2. About NICTA National ICT Australia • Federal and state funded research company established in 2002 • Largest ICT research resource in Australia • National impact is an important success metric • ~700 staff/students working in 5 labs across major capital cities • 7 university partners • Providing R&D services, knowledge transfer to Australian (and global) ICT industry NICTA technology is in over 1 billion mobile phones 2 NICTA Copyright 2012 From imagination to impact
  • 3. Problem • Operator invokes some process in cloud (e.g. rolling upgrade or installation) • 45 minutes or an hour later – the process fails – Usually with an error message – Possibly with a silent failure that manifests itself much later • Operator must then diagnose failure • Problem is most complicated when multiple components are involved. NICTA Copyright 2012 From imagination to impact 3
  • 4. But aren’t there tools and recipes? • Yes – but … • Recipes for deployment tools make assumptions about what you want. • In many cases, these assumptions are wrong. • In these cases, you must troubleshoot installation problems. • Troubleshooting is based on examination of generated logs. NICTA Copyright 2012 From imagination to impact 4
  • 5. What are the difficulties associated with using logs? • The system being deployed is an ecosystem with multiple independently developed systems. Each component’s logging is independently determined and not under central control. – Events and state deemed worthy to log may be different from different components • Results in – Sequence of events leading to failure may be difficult to reproduce – Missing or contradictory information in combined logs From imagination to impact NICTA Copyright 2012 5
  • 6. Our envisioned deployment solution • A solution will – Execute the correct steps in a correct order – The execution of a step will result in a correct state of the environment • Use a process model annotated with assertions to detect incorrect steps or incorrect state • The detection of an error will trigger a look up in a repository that maps symptoms to fault trees to root causes. NICTA Copyright 2012 From imagination to impact 6
  • 7. Rolling upgrade process model example • Attach assertions to process model to test state • Use progress within process to determine which assertions to test. • This approach restricts root cause determination to particular step in the process. Update Auto Scaling Group Sort Instances Confirm Upgrade Spec Remove & Deregister Old Instance from ELB Terminate Old Instance Wait for ASG to Start New Instance Register New Instance with ELB NICTA Copyright 2012 From imagination to impact 7
  • 8. This paper • Makes a contribution to the envisioned repository – Present 15 examples of systems/possible root causes for Hbase/Hadoop deployment • Provides a classification of errors into – – – – Operational Configuration Software Resource • Identifies specific error diagnosis challenges in multi-layer ecosystems. NICTA Copyright 2012 From imagination to impact 8
  • 9. What did we do? • We manually deployed HBase/Hadoop on EC2 – 5 NICTA people from 2 different groups – 10 installations in total • We diagnosed and recorded errors we discovered – With help from a Citibank person NICTA Copyright 2012 From imagination to impact 9
  • 10. Case study Hbase Cluster on Amazon EC2 NICTA Copyright 2012 From imagination to impact 10
  • 11. Sample Errors - 1 • Source – HDFS • Logging Exception: “DataNode is Shutting Down” • Possible Causes/diagnostics – Instance is down/ping ssh connection – Access permission/check authentication keys, ssh connection – HDFS configuration/check “conf/slaves” – HDFS missing component/check data node settings and directories NICTA Copyright 2012 From imagination to impact 11
  • 12. Sample errors - 2 • Source: Zookeeper • Logging exception: “java.net.UnknownHostException” • Possible causes/diagnostics: – – – – – DSN/check DSN configuration Network connection/check with ssh Zookeeper configuration: zoo.cfg Zookeeper status/processes (PID and JPS) Cross-node configuration error/check consistency NICTA Copyright 2012 From imagination to impact 12
  • 13. Comments on Errors • Paper has – 15 enumerated exceptions and potential causes – Discussion of classification of errors and samples • Most useful to non-expert installers • Information could potentially be found on – Stack Overflow – Specific source forums • Better to have – Consistent form for fault trees – Known place to find them – Standard environmental description NICTA Copyright 2012 From imagination to impact 13
  • 14. Different types of errors • Operational errors – Start up/shutdown errors – Artifacts not created or created incorrectly • Configuration errors – Syntactic errors – Cross system inconsistency • Software errrors – Compatibility errors – Bugs in the software • Resource errors – Resource unavailability or exhaustion NICTA Copyright 2012 From imagination to impact 14
  • 15. Challenges to trouble shooting from logs • Inconsistency among logs • Signal to noise ratio • Uncertain correlations NICTA Copyright 2012 From imagination to impact 15
  • 16. Inconsistency among logs • IP address is used as ID but IP addresses can change in the cloud. For example, if an instance is restarted. • Inconsistent time stamps in a distributed environment due to network latency makes determination of a sequence of events difficult. NICTA Copyright 2012 From imagination to impact 16
  • 17. Signal to noise ratio • Logs contain huge amount of information • Tools exist to collect logs into a central source – – – – Scribe Flume Logstash Chukwa • Tools that search logs need guidance to filter information • We propose an approach that uses a process model to guide diagnosis (to be explained shortly). NICTA Copyright 2012 From imagination to impact 17
  • 18. Uncertain correlation • Between exceptions – Connections among exceptions arising from the same cause are difficult to detect. • Between component states – Dependent relations among component states not shown in log messages and are difficult to detect. • Between events – Connections among distributed events are difficult to detect. • Between states and events – Diagnosis depends on connecting state and events and these may not be obvious from log messages. NICTA Copyright 2012 From imagination to impact 18
  • 19. Summary • Deploying or updating ecosystems is an error prone activity • Determining root cause of an error is difficult and time consuming • We provided a list of 15 specific errors and their potential root causes for Hbase/Hadoop deployment • We categorized types of errors and uncertainties in error diagnosis NICTA Copyright 2012 From imagination to impact 19