• Share
  • Email
  • Embed
  • Like
  • Save
  • Private Content
An Introduction of Apache Hadoop
 

An Introduction of Apache Hadoop

on

  • 1,241 views

This slide deck that Mr. Minh Tran - KMS's Software Architect shared at "Java-Trends and Career Opportunities" seminar of Information Technology Center of HCMC University of Science.

This slide deck that Mr. Minh Tran - KMS's Software Architect shared at "Java-Trends and Career Opportunities" seminar of Information Technology Center of HCMC University of Science.

Statistics

Views

Total Views
1,241
Views on SlideShare
1,241
Embed Views
0

Actions

Likes
1
Downloads
29
Comments
0

0 Embeds 0

No embeds

Accessibility

Categories

Upload Details

Uploaded via as Adobe PDF

Usage Rights

© All Rights Reserved

Report content

Flagged as inappropriate Flag as inappropriate
Flag as inappropriate

Select your reason for flagging this presentation as inappropriate.

Cancel
  • Full Name Full Name Comment goes here.
    Are you sure you want to
    Your message goes here
    Processing…
Post Comment
Edit your comment

    An Introduction of Apache Hadoop An Introduction of Apache Hadoop Presentation Transcript

    • © 2013 KMS Technology
    • AN INTRODUCTION OFAPACHE HADOOP
    • WHO AM I?Minh TranKMS TechnologyCurrent: Software Architect at KMS TechnologyPast: Technical at Yahoo!Senior Engineer at MobiVi, Sciant, ELCAAdmin at JavaVietnam
    • OBJECTIVES• Understand what Apache Hadoop is• Understand problems Hadoop aims to solve• Explore Hadoop architecture and itsecosystem
    • AGENDA• Hadoop Overview• Haddop Architecture at a glance• Hadoop Ecosystem• A demo of using Hadoop
    • AGENDA – HADOOP OVERVIEW• Big Data & Challenges• What is Hadoop?• Hadoop Benefits• Which problem can Hadoop solve?• Hadoop Installation
    • WHY DO WE HAVE SO MUCHDATA?• Every single day– Twitter processes 340 million messages– Facebook stores 2.7 billion comments and“Likes”– Google processes about 24 petabytes of data• And every single minute– More than 200 million e-mails are sent– Foursquare processes more than 2,000check-ins
    • WHERE DOES DATA COME FROM?• Science: medical imaging, sensor data,genome sequencing, weather data,satellite feeds, etc.• Legacy: Sales data, customer behavior,product databases, accounting data, etc.• System Data: Log files, network messages,Web Analytics, intrusion detection, spamfilters• (Not all of this maps cleanly to the relational model)
    • DATA ANALYSIS CHALLENGE• Huge volumes of data• Mixed sources result in many different formats– XML– CSV– EDI– Log files– Objects– SQL– Text– JSON– Binary– etc.
    • WHAT IS HADOOP?• Scalable data storage and processing– Open source Apache project– Harnesses the power of commodity servers– Distributed and fault-tolerant• “Core” Hadoop consists of two main parts– HDFS (storage)– MapReduce (processing)
    • WHO USES HADOOP?
    • BENEFITS OF ANALYZING WITHHADOOP• Previously impossible/impracticalto do this analysis• Analysis conducted at lower cost• Analysis conducted in less time• Greater flexibility• Linear scalability
    • WHICH PROBLEM CANHADOOP SOLVE?• Nature of the data– Complex & multiple data sources– Lots of it• Nature of the analysis– Batch processing– Parallel execution– Spread data over a cluster of servers and take the computationto the data• Common Hadoop Problems:– Customer churn analysis– Recommendation engine– PoS transaction analysis– Threat analysis– Search quality– Data “sandbox”
    • HADOOP INSTALLATION1. Install a Linux machine, for e.g.: Ubuntu2. Install latest JDK3. Install Hadoop package, download athttp://hadoop.apache.org/
    • AGENDA• Hadoop Overview• Haddop Architecture at a glance• Hadoop Ecosystem• A demo of using Hadoop
    • AGENDA - HADDOP ARCHITECTUREAT A GLANCE• Hadoop Distributed File System• How MapReduce works
    • COLLOCATED STORAGEAND PROCESSING• Because 10,000 hard disks are better than one• Solution: store and process data on the same nodes– Data locality: “Bring the computation to the data”– Reduces I/O and boosts performance
    • HARD DISK LATENCY• Disk seeks are expensive• Solution: Read lots of data at once to amortize the cost
    • HDFS BLOCKS• When a file is added to HDFS, it’s split into blocks• This is a similar concept to native file systems– HDFS uses a much larger block size (64 MB), forperformance
    • ClientapplicationHadoop filesystem clientDataNode 1CDBDataNode 2ACDDataNode 3BACNameNode/tmp/file1.txtBlock ABlock BDataNode 3DataNode 2DataNode 1DataNode 3Block C DataNode 1DataNode 2DataNode 3HDFS High Level Architecture
    • HOW MAPREDUCE WORKS?
    • ANOTHER EXAMPLE ABOUTBUILDING INVERTED INDEX• Input: a number of text files• Output: a list of tuples, where each tuple is a word and a list of filesthat contain the worddoc1.txtcat sat matdoc2.txtcat sat dogInput filenamesand contentsMappersIntermediateoutputReducerscat, doc1.txtsat, doc1.txtmat, doc1.txtcat, doc2.txtsat, doc2.txtdog, doc2.txtpart-r-00000cat: doc1.txt, doc2.txtpart-r-00001sat: doc1.txt, doc2.txtdog: doc2.txtpart-r-00002mat: doc1.txtOutput filenamesand contents
    • AGENDA• Hadoop Overview• Haddop Architecture at a glance• Hadoop Ecosystem• A demo of using Hadoop
    • HADOOP ECOSYSTEM
    • AGENDA• Hadoop Overview• Haddop Architecture at a glance• Hadoop Ecosystem• A demo of using Hadoop
    • REFERENCES• Hadoop In Practice – Alex Homes• Hadoop Real World Solutions Cookbook – Jonathan R. Owens, JonLentz, Brian Femiano• Hadoop In Action – Chuck Lam• Hadoop The Definitive Guide – Tom White• MapReduce Design Patterns – Donald Miner, Adam Shook• An Introduction to Hadoop – Mark Fei• http://www.michael-noll.com/tutorials/running-hadoop-on-ubuntu-linux-single-node-cluster/• http://www.crobak.org/2011/12/getting-started-with-apache-hadoop-0-23-0/
    • © 2013 KMS TechnologyTHANK YOU