SlideShare ist ein Scribd-Unternehmen logo
1 von 19
H2O on Hadoop
[ H2O – The Open Source In-Memory
Prediction Engine for Big Data ]

Tom Kraljevic
Outline

H2O as a Standalone HDFS client
H2O on Hadoop
Configuration settings
Stuff we learned
Questions
Using H2O as an HDFS client

Why
I want to do run a Generalized Linear Model, and my data lives in
HDFS.

What
Use H2O standalone.

Why
Let’s also use the CPUs and Memory of my Hadoop cluster!

What
Run H2O on Hadoop.
H2O Standalone Deployment Using HDFS

java -jar h2o.jar

java -jar h2o.jar
H2O on Hadoop Deployment
H2O on Hadoop Deployment
H2O on Hadoop Deployment
Standalone Mode Command-Line Invocation

unzip

java -jar
H2O on Hadoop Client Invocation
tomk@mr-0xb1:~/h2o-2.1.0.1144/hadoop$ hadoop

jar h2odriver_cdh4.jar water.hadoop.h2odriver
mapperXmx 30g -nodes 3 -output hdfsOutDir
Determining driver host interface for mapper->driver callback...
[Possible callback IP address: 192.168.1.161]
[Possible callback IP address: 127.0.0.1]
Using mapper->driver callback IP address and port: 192.168.1.161:60576
(You can override these with -driverif and -driverport.)
Driver program compiled with MapReduce V1 (Classic)
13/12/12 13:25:29 WARN conf.Configuration: mapred.map.child.java.opts is deprecated. Instead, use mapreduce.map.java.opts
Memory Settings:
mapred.child.java.opts:
-Xms30g -Xmx30g
mapred.map.child.java.opts: -Xms30g -Xmx30g
Extra memory percent:
10
mapreduce.map.memory.mb: 33792
Job name 'H2O_49792' submitted
JobTracker job ID is 'job_1386713862878_0002'
Waiting for H2O cluster to come up...
H2O node 192.168.1.163:54321 requested flatfile
H2O node 192.168.1.161:54323 requested flatfile
H2O node 192.168.1.162:54339 requested flatfile
Sending flatfiles to nodes...
[Sending flatfile to node 192.168.1.163:54321]
[Sending flatfile to node 192.168.1.161:54323]
[Sending flatfile to node 192.168.1.162:54339]
H2O node 192.168.1.161:54323 reports H2O cluster size 1
H2O node 192.168.1.163:54321 reports H2O cluster size 1
H2O node 192.168.1.162:54339 reports H2O cluster size 1
H2O node 192.168.1.162:54339 reports H2O cluster size 3
H2O node 192.168.1.163:54321 reports H2O cluster size 3
H2O node 192.168.1.161:54323 reports H2O cluster size 3
H2O cluster (3 nodes) is up
(Note: Use the -disown option to exit the driver after cluster formation)
(Press Ctrl-C to kill the cluster)
Blocking until the H2O cluster shuts down...

-libjars ../h2o.jar -
H2O is not the typical Hadoop MapReduce job

• Long-lived Hadoop mapper tasks that take up CPUs and memory
• No Hadoop reduce tasks
• No mapper task retry (user needs to restart H2O cloud on failure)
• No HDFS “input file” to the Hadoop map phase
•

Null splits define number of Hadoop map tasks

• No HDFS “output files” produced by the Hadoop job.
• Multithreaded

• Big Java heap (e.g. 128 GB)
• Mappers talk to each other
•

Mappers need to be run at the same time
Hadoop
Configuration
Client-side (Driver) Hadoop Configuration

mapreduce.job.ubertask.enable

false

[ mapreduceMapMemoryMb = Xmx + 10% fudge factor; ]
mapreduce.map.memory.mb

mapreduceMapMemoryMb

[ mapChildJavaOpts = "-Xms" + mapperXmx + " -Xmx" + mapperXmx; ]
mapred.child.java.opts

mapChildJavaOpts

mapred.map.child.java.opts

mapChildJavaOpts

mapreduce.map.speculative

false

mapred.map.tasks.speculative.execution

false

mapred.map.max.attempts

1

mapred.job.reuse.jvm.num.tasks

1
YARN Settings in CDH4

mapreduce.map.memory.mb

128 GB

mapreduce.map.java.opts.max.heap

100 GB

yarn.nodemanager.resource.memory-mb

128 GB

ResourceManager Configuration Safety Valve for yarn-site.xml
<property>
<name>yarn.scheduler.maximum-allocation-mb</name>
<value>131072</value>
</property>
Stuff We Learned

• Empty splits determine the mapper count
• Use Hadoop counters to avoid having Hadoop kill your
job (which doesn’t map anything) after 10 minutes
• Hook System.exit() to get mappers to exit properly
• YARN /etc/alternatives setting
• YARN memory settings
• YARN FIFO scheduler mapper clumping
• Hortonworks -libjars distribution unpacks the .jar file
Debugging a mapper process is an experience

• Finding the process is a challenge
• Finding the output is a challenge

• Convincing Hadoop not to delete the output on a failure is a
challenge
•

Even if your logger setup code gets a chance to run, you still have to
find the output.

• Attaching with standard JDWP debuggers is a challenge
•
•

Finding the process is (again) a challenge
Debugger doesn’t understand the mapper environment; attach didn’t
work.

• Finally resorted to POST-code style printing techniques
•

“Log” output to /tmp, bypassing everything, so I get to keep it
Possible Future Work

• Automated log collection upon failure
•

Fishing out logs from a cluster of 1000 Hadoop nodes is a great job
for a tool.

• Driver vs. host checking of Hadoop version
•

Helps avoid subtle errors

• Custom YARN Application Master
• Experiment further with I/O optimization for H2O Node
placement based on data locality

Your Contributions Welcome
Key Takeaways

• H2O is the premier platform for In-Memory Predictive
Analytics on Big Data
• Open Source Apache 2 license
• H2O mapreduce (in-memory) is not Hadoop mapreduce (HDFS)!

• H2O can read your data from HDFS
• Standalone or running on Hadoop

• Run H2O on Hadoop to use CPUs and Memory from your
existing Hadoop cluster
• Get started easily with the gear you’ve already got
H2O on Hadoop in the Wild

K-Means on a Terabyte of data (Major Insurance Co.)
Partners

K-Means on a Terabyte of data (Insurance)

Weitere ähnliche Inhalte

Was ist angesagt?

The Hadoop Ecosystem
The Hadoop EcosystemThe Hadoop Ecosystem
The Hadoop Ecosystem
J Singh
 
Seminar Presentation Hadoop
Seminar Presentation HadoopSeminar Presentation Hadoop
Seminar Presentation Hadoop
Varun Narang
 
HIVE: Data Warehousing & Analytics on Hadoop
HIVE: Data Warehousing & Analytics on HadoopHIVE: Data Warehousing & Analytics on Hadoop
HIVE: Data Warehousing & Analytics on Hadoop
Zheng Shao
 
Hadoop Administration pdf
Hadoop Administration pdfHadoop Administration pdf
Hadoop Administration pdf
Edureka!
 

Was ist angesagt? (20)

Intro To Hadoop
Intro To HadoopIntro To Hadoop
Intro To Hadoop
 
Introduction to Apache Spark Ecosystem
Introduction to Apache Spark EcosystemIntroduction to Apache Spark Ecosystem
Introduction to Apache Spark Ecosystem
 
Migrating structured data between Hadoop and RDBMS
Migrating structured data between Hadoop and RDBMSMigrating structured data between Hadoop and RDBMS
Migrating structured data between Hadoop and RDBMS
 
The Hadoop Ecosystem
The Hadoop EcosystemThe Hadoop Ecosystem
The Hadoop Ecosystem
 
Scaling up with hadoop and banyan at ITRIX-2015, College of Engineering, Guindy
Scaling up with hadoop and banyan at ITRIX-2015, College of Engineering, GuindyScaling up with hadoop and banyan at ITRIX-2015, College of Engineering, Guindy
Scaling up with hadoop and banyan at ITRIX-2015, College of Engineering, Guindy
 
Introduction to the Hadoop Ecosystem (IT-Stammtisch Darmstadt Edition)
Introduction to the Hadoop Ecosystem (IT-Stammtisch Darmstadt Edition)Introduction to the Hadoop Ecosystem (IT-Stammtisch Darmstadt Edition)
Introduction to the Hadoop Ecosystem (IT-Stammtisch Darmstadt Edition)
 
Apache Spark & Hadoop
Apache Spark & HadoopApache Spark & Hadoop
Apache Spark & Hadoop
 
20131205 hadoop-hdfs-map reduce-introduction
20131205 hadoop-hdfs-map reduce-introduction20131205 hadoop-hdfs-map reduce-introduction
20131205 hadoop-hdfs-map reduce-introduction
 
Seminar Presentation Hadoop
Seminar Presentation HadoopSeminar Presentation Hadoop
Seminar Presentation Hadoop
 
Hadoop Ecosystem Overview
Hadoop Ecosystem OverviewHadoop Ecosystem Overview
Hadoop Ecosystem Overview
 
Introduction to the Hadoop EcoSystem
Introduction to the Hadoop EcoSystemIntroduction to the Hadoop EcoSystem
Introduction to the Hadoop EcoSystem
 
Karmasphere Studio for Hadoop
Karmasphere Studio for HadoopKarmasphere Studio for Hadoop
Karmasphere Studio for Hadoop
 
Introduction to Hadoop and MapReduce
Introduction to Hadoop and MapReduceIntroduction to Hadoop and MapReduce
Introduction to Hadoop and MapReduce
 
Extending Hadoop for Fun & Profit
Extending Hadoop for Fun & ProfitExtending Hadoop for Fun & Profit
Extending Hadoop for Fun & Profit
 
Boston Apache Spark User Group (the Spahk group) - Introduction to Spark - 15...
Boston Apache Spark User Group (the Spahk group) - Introduction to Spark - 15...Boston Apache Spark User Group (the Spahk group) - Introduction to Spark - 15...
Boston Apache Spark User Group (the Spahk group) - Introduction to Spark - 15...
 
Future of Data Intensive Applicaitons
Future of Data Intensive ApplicaitonsFuture of Data Intensive Applicaitons
Future of Data Intensive Applicaitons
 
HIVE: Data Warehousing & Analytics on Hadoop
HIVE: Data Warehousing & Analytics on HadoopHIVE: Data Warehousing & Analytics on Hadoop
HIVE: Data Warehousing & Analytics on Hadoop
 
Big Data Anti-Patterns: Lessons From the Front LIne
Big Data Anti-Patterns: Lessons From the Front LIneBig Data Anti-Patterns: Lessons From the Front LIne
Big Data Anti-Patterns: Lessons From the Front LIne
 
Hadoop Administration pdf
Hadoop Administration pdfHadoop Administration pdf
Hadoop Administration pdf
 
SQOOP - RDBMS to Hadoop
SQOOP - RDBMS to HadoopSQOOP - RDBMS to Hadoop
SQOOP - RDBMS to Hadoop
 

Andere mochten auch

Big Data Analytics-Open Source Toolkits
Big Data Analytics-Open Source ToolkitsBig Data Analytics-Open Source Toolkits
Big Data Analytics-Open Source Toolkits
DataWorks Summit
 

Andere mochten auch (10)

Building Random Forest at Scale
Building Random Forest at ScaleBuilding Random Forest at Scale
Building Random Forest at Scale
 
Big Data Analytics-Open Source Toolkits
Big Data Analytics-Open Source ToolkitsBig Data Analytics-Open Source Toolkits
Big Data Analytics-Open Source Toolkits
 
A Continuously Deployed Hadoop Analytics Platform?
A Continuously Deployed Hadoop Analytics Platform?A Continuously Deployed Hadoop Analytics Platform?
A Continuously Deployed Hadoop Analytics Platform?
 
Sri Ambati – CEO, 0xdata at MLconf ATL
Sri Ambati – CEO, 0xdata at MLconf ATLSri Ambati – CEO, 0xdata at MLconf ATL
Sri Ambati – CEO, 0xdata at MLconf ATL
 
Deep Water - Bringing Tensorflow, Caffe, Mxnet to H2O
Deep Water - Bringing Tensorflow, Caffe, Mxnet to H2ODeep Water - Bringing Tensorflow, Caffe, Mxnet to H2O
Deep Water - Bringing Tensorflow, Caffe, Mxnet to H2O
 
GBM in H2O with Cliff Click: H2O API
GBM in H2O with Cliff Click: H2O APIGBM in H2O with Cliff Click: H2O API
GBM in H2O with Cliff Click: H2O API
 
PayPal's Fraud Detection with Deep Learning in H2O World 2014
PayPal's Fraud Detection with Deep Learning in H2O World 2014PayPal's Fraud Detection with Deep Learning in H2O World 2014
PayPal's Fraud Detection with Deep Learning in H2O World 2014
 
Hadoop and Machine Learning
Hadoop and Machine LearningHadoop and Machine Learning
Hadoop and Machine Learning
 
The Impala Cookbook
The Impala CookbookThe Impala Cookbook
The Impala Cookbook
 
Deep Learning through Examples
Deep Learning through ExamplesDeep Learning through Examples
Deep Learning through Examples
 

Ähnlich wie H2O on Hadoop Dec 12

Playing with Hadoop (NPW2013)
Playing with Hadoop (NPW2013)Playing with Hadoop (NPW2013)
Playing with Hadoop (NPW2013)
Søren Lund
 
2 Hadoop 1.x presentation in understading .pptx
2 Hadoop 1.x presentation in understading .pptx2 Hadoop 1.x presentation in understading .pptx
2 Hadoop 1.x presentation in understading .pptx
Kishanhari3
 
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
Deanna Kosaraju
 
Apache hadoop, hdfs and map reduce Overview
Apache hadoop, hdfs and map reduce OverviewApache hadoop, hdfs and map reduce Overview
Apache hadoop, hdfs and map reduce Overview
Nisanth Simon
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)
outstanding59
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
Richard McDougall
 
Hadoop ppt on the basics and architecture
Hadoop ppt on the basics and architectureHadoop ppt on the basics and architecture
Hadoop ppt on the basics and architecture
saipriyacoool
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal Development
Chris Tankersley
 

Ähnlich wie H2O on Hadoop Dec 12 (20)

Tom Kraljevic presents H2O on Hadoop- how it works and what we've learned
Tom Kraljevic presents H2O on Hadoop- how it works and what we've learnedTom Kraljevic presents H2O on Hadoop- how it works and what we've learned
Tom Kraljevic presents H2O on Hadoop- how it works and what we've learned
 
Playing with Hadoop (NPW2013)
Playing with Hadoop (NPW2013)Playing with Hadoop (NPW2013)
Playing with Hadoop (NPW2013)
 
DC HUG Hadoop for Windows
DC HUG Hadoop for WindowsDC HUG Hadoop for Windows
DC HUG Hadoop for Windows
 
Deployment and Management of Hadoop Clusters
Deployment and Management of Hadoop ClustersDeployment and Management of Hadoop Clusters
Deployment and Management of Hadoop Clusters
 
BDM37: Hadoop in production – the war stories by Nikolaï Grigoriev, Principal...
BDM37: Hadoop in production – the war stories by Nikolaï Grigoriev, Principal...BDM37: Hadoop in production – the war stories by Nikolaï Grigoriev, Principal...
BDM37: Hadoop in production – the war stories by Nikolaï Grigoriev, Principal...
 
Big Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMRBig Data and Hadoop in Cloud - Leveraging Amazon EMR
Big Data and Hadoop in Cloud - Leveraging Amazon EMR
 
2 Hadoop 1.x presentation in understading .pptx
2 Hadoop 1.x presentation in understading .pptx2 Hadoop 1.x presentation in understading .pptx
2 Hadoop 1.x presentation in understading .pptx
 
2014 hadoop wrocław jug
2014 hadoop   wrocław jug2014 hadoop   wrocław jug
2014 hadoop wrocław jug
 
Getting started with AMD GPUs
Getting started with AMD GPUsGetting started with AMD GPUs
Getting started with AMD GPUs
 
Unit 5
Unit  5Unit  5
Unit 5
 
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
Optimal Execution Of MapReduce Jobs In Cloud - Voices 2015
 
Apache hadoop, hdfs and map reduce Overview
Apache hadoop, hdfs and map reduce OverviewApache hadoop, hdfs and map reduce Overview
Apache hadoop, hdfs and map reduce Overview
 
App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)App cap2956v2-121001194956-phpapp01 (1)
App cap2956v2-121001194956-phpapp01 (1)
 
Inside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworldInside the Hadoop Machine @ VMworld
Inside the Hadoop Machine @ VMworld
 
App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)App Cap2956v2 121001194956 Phpapp01 (1)
App Cap2956v2 121001194956 Phpapp01 (1)
 
Hadoop and Big Data
Hadoop and Big DataHadoop and Big Data
Hadoop and Big Data
 
Hadoop ppt on the basics and architecture
Hadoop ppt on the basics and architectureHadoop ppt on the basics and architecture
Hadoop ppt on the basics and architecture
 
Modernize Your Drupal Development
Modernize Your Drupal DevelopmentModernize Your Drupal Development
Modernize Your Drupal Development
 
ha_module5
ha_module5ha_module5
ha_module5
 
Power Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS CloudPower Hadoop Cluster with AWS Cloud
Power Hadoop Cluster with AWS Cloud
 

Mehr von Sri Ambati

Mehr von Sri Ambati (20)

H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo DayH2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
H2O.ai CEO/Founder: Sri Ambati Keynote at Wells Fargo Day
 
Generative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptxGenerative AI Masterclass - Model Risk Management.pptx
Generative AI Masterclass - Model Risk Management.pptx
 
AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek AI and the Future of Software Development: A Sneak Peek
AI and the Future of Software Development: A Sneak Peek
 
LLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5thLLMOps: Match report from the top of the 5th
LLMOps: Match report from the top of the 5th
 
Building, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for ProductionBuilding, Evaluating, and Optimizing your RAG App for Production
Building, Evaluating, and Optimizing your RAG App for Production
 
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
Building LLM Solutions using Open Source and Closed Source Solutions in Coher...
 
Risk Management for LLMs
Risk Management for LLMsRisk Management for LLMs
Risk Management for LLMs
 
Open-Source AI: Community is the Way
Open-Source AI: Community is the WayOpen-Source AI: Community is the Way
Open-Source AI: Community is the Way
 
Building Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2OBuilding Custom GenAI Apps at H2O
Building Custom GenAI Apps at H2O
 
Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical Applied Gen AI for the Finance Vertical
Applied Gen AI for the Finance Vertical
 
Cutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM PapersCutting Edge Tricks from LLM Papers
Cutting Edge Tricks from LLM Papers
 
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
Practitioner's Guide to LLMs: Exploring Use Cases and a Glimpse Beyond Curren...
 
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
Open Source h2oGPT with Retrieval Augmented Generation (RAG), Web Search, and...
 
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
KGM Mastering Classification and Regression with LLMs: Insights from Kaggle C...
 
LLM Interpretability
LLM Interpretability LLM Interpretability
LLM Interpretability
 
Never Reply to an Email Again
Never Reply to an Email AgainNever Reply to an Email Again
Never Reply to an Email Again
 
Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)Introducción al Aprendizaje Automatico con H2O-3 (1)
Introducción al Aprendizaje Automatico con H2O-3 (1)
 
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
From Rapid Prototypes to an end-to-end Model Deployment: an AI Hedge Fund Use...
 
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
AI Foundations Course Module 1 - Shifting to the Next Step in Your AI Transfo...
 
AI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation JourneyAI Foundations Course Module 1 - An AI Transformation Journey
AI Foundations Course Module 1 - An AI Transformation Journey
 

Kürzlich hochgeladen

Kürzlich hochgeladen (20)

Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
Apidays New York 2024 - Passkeys: Developing APIs to enable passwordless auth...
 
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWEREMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
EMPOWERMENT TECHNOLOGY GRADE 11 QUARTER 2 REVIEWER
 
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
Emergent Methods: Multi-lingual narrative tracking in the news - real-time ex...
 
MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024MINDCTI Revenue Release Quarter One 2024
MINDCTI Revenue Release Quarter One 2024
 
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
Apidays New York 2024 - Accelerating FinTech Innovation by Vasa Krishnan, Fin...
 
Vector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptxVector Search -An Introduction in Oracle Database 23ai.pptx
Vector Search -An Introduction in Oracle Database 23ai.pptx
 
AWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of TerraformAWS Community Day CPH - Three problems of Terraform
AWS Community Day CPH - Three problems of Terraform
 
Platformless Horizons for Digital Adaptability
Platformless Horizons for Digital AdaptabilityPlatformless Horizons for Digital Adaptability
Platformless Horizons for Digital Adaptability
 
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data DiscoveryTrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
TrustArc Webinar - Unlock the Power of AI-Driven Data Discovery
 
MS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectorsMS Copilot expands with MS Graph connectors
MS Copilot expands with MS Graph connectors
 
DBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor PresentationDBX First Quarter 2024 Investor Presentation
DBX First Quarter 2024 Investor Presentation
 
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, AdobeApidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
Apidays New York 2024 - Scaling API-first by Ian Reasor and Radu Cotescu, Adobe
 
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot TakeoffStrategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
Strategize a Smooth Tenant-to-tenant Migration and Copilot Takeoff
 
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 AmsterdamDEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
DEV meet-up UiPath Document Understanding May 7 2024 Amsterdam
 
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
Connector Corner: Accelerate revenue generation using UiPath API-centric busi...
 
[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf[BuildWithAI] Introduction to Gemini.pdf
[BuildWithAI] Introduction to Gemini.pdf
 
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
Biography Of Angeliki Cooney | Senior Vice President Life Sciences | Albany, ...
 
Corporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptxCorporate and higher education May webinar.pptx
Corporate and higher education May webinar.pptx
 
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdfRising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
Rising Above_ Dubai Floods and the Fortitude of Dubai International Airport.pdf
 
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ..."I see eyes in my soup": How Delivery Hero implemented the safety system for ...
"I see eyes in my soup": How Delivery Hero implemented the safety system for ...
 

H2O on Hadoop Dec 12

  • 1. H2O on Hadoop [ H2O – The Open Source In-Memory Prediction Engine for Big Data ] Tom Kraljevic
  • 2. Outline H2O as a Standalone HDFS client H2O on Hadoop Configuration settings Stuff we learned Questions
  • 3. Using H2O as an HDFS client Why I want to do run a Generalized Linear Model, and my data lives in HDFS. What Use H2O standalone. Why Let’s also use the CPUs and Memory of my Hadoop cluster! What Run H2O on Hadoop.
  • 4. H2O Standalone Deployment Using HDFS java -jar h2o.jar java -jar h2o.jar
  • 5. H2O on Hadoop Deployment
  • 6. H2O on Hadoop Deployment
  • 7. H2O on Hadoop Deployment
  • 8. Standalone Mode Command-Line Invocation unzip java -jar
  • 9. H2O on Hadoop Client Invocation tomk@mr-0xb1:~/h2o-2.1.0.1144/hadoop$ hadoop jar h2odriver_cdh4.jar water.hadoop.h2odriver mapperXmx 30g -nodes 3 -output hdfsOutDir Determining driver host interface for mapper->driver callback... [Possible callback IP address: 192.168.1.161] [Possible callback IP address: 127.0.0.1] Using mapper->driver callback IP address and port: 192.168.1.161:60576 (You can override these with -driverif and -driverport.) Driver program compiled with MapReduce V1 (Classic) 13/12/12 13:25:29 WARN conf.Configuration: mapred.map.child.java.opts is deprecated. Instead, use mapreduce.map.java.opts Memory Settings: mapred.child.java.opts: -Xms30g -Xmx30g mapred.map.child.java.opts: -Xms30g -Xmx30g Extra memory percent: 10 mapreduce.map.memory.mb: 33792 Job name 'H2O_49792' submitted JobTracker job ID is 'job_1386713862878_0002' Waiting for H2O cluster to come up... H2O node 192.168.1.163:54321 requested flatfile H2O node 192.168.1.161:54323 requested flatfile H2O node 192.168.1.162:54339 requested flatfile Sending flatfiles to nodes... [Sending flatfile to node 192.168.1.163:54321] [Sending flatfile to node 192.168.1.161:54323] [Sending flatfile to node 192.168.1.162:54339] H2O node 192.168.1.161:54323 reports H2O cluster size 1 H2O node 192.168.1.163:54321 reports H2O cluster size 1 H2O node 192.168.1.162:54339 reports H2O cluster size 1 H2O node 192.168.1.162:54339 reports H2O cluster size 3 H2O node 192.168.1.163:54321 reports H2O cluster size 3 H2O node 192.168.1.161:54323 reports H2O cluster size 3 H2O cluster (3 nodes) is up (Note: Use the -disown option to exit the driver after cluster formation) (Press Ctrl-C to kill the cluster) Blocking until the H2O cluster shuts down... -libjars ../h2o.jar -
  • 10. H2O is not the typical Hadoop MapReduce job • Long-lived Hadoop mapper tasks that take up CPUs and memory • No Hadoop reduce tasks • No mapper task retry (user needs to restart H2O cloud on failure) • No HDFS “input file” to the Hadoop map phase • Null splits define number of Hadoop map tasks • No HDFS “output files” produced by the Hadoop job. • Multithreaded • Big Java heap (e.g. 128 GB) • Mappers talk to each other • Mappers need to be run at the same time
  • 12. Client-side (Driver) Hadoop Configuration mapreduce.job.ubertask.enable false [ mapreduceMapMemoryMb = Xmx + 10% fudge factor; ] mapreduce.map.memory.mb mapreduceMapMemoryMb [ mapChildJavaOpts = "-Xms" + mapperXmx + " -Xmx" + mapperXmx; ] mapred.child.java.opts mapChildJavaOpts mapred.map.child.java.opts mapChildJavaOpts mapreduce.map.speculative false mapred.map.tasks.speculative.execution false mapred.map.max.attempts 1 mapred.job.reuse.jvm.num.tasks 1
  • 13. YARN Settings in CDH4 mapreduce.map.memory.mb 128 GB mapreduce.map.java.opts.max.heap 100 GB yarn.nodemanager.resource.memory-mb 128 GB ResourceManager Configuration Safety Valve for yarn-site.xml <property> <name>yarn.scheduler.maximum-allocation-mb</name> <value>131072</value> </property>
  • 14. Stuff We Learned • Empty splits determine the mapper count • Use Hadoop counters to avoid having Hadoop kill your job (which doesn’t map anything) after 10 minutes • Hook System.exit() to get mappers to exit properly • YARN /etc/alternatives setting • YARN memory settings • YARN FIFO scheduler mapper clumping • Hortonworks -libjars distribution unpacks the .jar file
  • 15. Debugging a mapper process is an experience • Finding the process is a challenge • Finding the output is a challenge • Convincing Hadoop not to delete the output on a failure is a challenge • Even if your logger setup code gets a chance to run, you still have to find the output. • Attaching with standard JDWP debuggers is a challenge • • Finding the process is (again) a challenge Debugger doesn’t understand the mapper environment; attach didn’t work. • Finally resorted to POST-code style printing techniques • “Log” output to /tmp, bypassing everything, so I get to keep it
  • 16. Possible Future Work • Automated log collection upon failure • Fishing out logs from a cluster of 1000 Hadoop nodes is a great job for a tool. • Driver vs. host checking of Hadoop version • Helps avoid subtle errors • Custom YARN Application Master • Experiment further with I/O optimization for H2O Node placement based on data locality Your Contributions Welcome
  • 17. Key Takeaways • H2O is the premier platform for In-Memory Predictive Analytics on Big Data • Open Source Apache 2 license • H2O mapreduce (in-memory) is not Hadoop mapreduce (HDFS)! • H2O can read your data from HDFS • Standalone or running on Hadoop • Run H2O on Hadoop to use CPUs and Memory from your existing Hadoop cluster • Get started easily with the gear you’ve already got
  • 18. H2O on Hadoop in the Wild K-Means on a Terabyte of data (Major Insurance Co.)
  • 19. Partners K-Means on a Terabyte of data (Insurance)