SlideShare une entreprise Scribd logo
1  sur  24
Télécharger pour lire hors ligne
Spracovanie veľkých dát
    Tomáš Majer

    MONOGRAM Tech. Monday 25.7.2011


Monday, July 25, 11
Čo sú veľké dáta



    ✤    Tomajová definicia

          ✤    Také dáta, ktoré: nevojdú na jeden stroj, alebo sa s nedá s nimi
               pracovať v reálnom čase na jednom stroji




Monday, July 25, 11
Prečo sú dôležité?

    ✤    Dát je stále viac a viac

    ✤    Web 2.0 - sociálny aspekt webu zabezpečuje vytváranie obrovského
         množstva použiteľných dát

    ✤    Jednoduchý príklad: Facebook

          ✤    135 bilionov správ za mesiac

          ✤    20 bilionov udalostí za deň - 200 000 za sekundu


Monday, July 25, 11
Nárast Facebooku
                                                                    Nové data za ďen (GB)

                                                             4,000



                                                            3,000


                                                           2,000


                                                       1,000

                      Marec 2008
                                Apríl 2009             0
                                          Október 2009


Monday, July 25, 11
Ako ukladať veľké dáta



    ✤    SQL  databázy  trpia  základnym  problémom  so  škálovateĺnosťou



    ✤    NoSQL - “ľahko” škálovateĺné - vhodné pre veľké dáta




Monday, July 25, 11
Monday, July 25, 11
NoSQL

    ✤    Viaceré typy

          ✤    document oriented, column oriented, graph oriented, key-value

    ✤    Vysoký výkon

    ✤    Obmedzené možnosti - oproti SQL databázam

    ✤    Neexistuje štandard pre prácu s dátami

    ✤    V praxi sa osvedčila kombinácia NoSQL s SQL


Monday, July 25, 11
Google
    MapReduce
    2004 Google vydal paper:
    MapReduce: Simplified Data
    Processing on Large Clusters




Monday, July 25, 11
Ciele
    MapReduce

    ✤    Rozložiť výpočet medzi viacero
         strojov - nodov

    ✤    Jednoduchý framework, ktorý
         zabezpečí jednoduché písanie
         takéhoto kódu

    ✤    Horizontálna škálovateľnosť




Monday, July 25, 11
Ako teda funguje MapReduce?




Monday, July 25, 11
✤    Existuje viacero nodov, ktoré môžu robiť viacero vecí

    ✤    2 základne úlohy

          ✤    Map job

                ✤     vstupný vektor <key1, value1>

                ✤     výstupný zoznam vektorov <key2, value2>

          ✤    Reduce job

                ✤     vstupný vektor <key2, <zoznam hodnot z maperov s výstupom key2>>

                ✤     výstupný zoznam vektorov <key3, value3>




Monday, July 25, 11
Jednoduchý príklad - spočítanie
    slov
        void map(String name, String document):

             // name: document name
             // document: document contents
             for each word w in document:
               EmitIntermediate(w, "1");

        void reduce(String word, Iterator partialCounts):
          // word: a word
          // partialCounts: a list of aggregated partial counts
          int sum = 0;
          for each pc in partialCounts:
            sum += ParseInt(pc);
          Emit(word, AsString(sum));



Monday, July 25, 11
Monday, July 25, 11
Jednoduché MapReduce príklady

    ✤    Distribuovaný grep

    ✤    Sčítanie návštev pre URL

          ✤    mapper <URL, 1>

          ✤    reducer <URL, celkový počet návštev>

    ✤    Graf väzieb stránok

          ✤    mapper <cieľ, zdroj>

          ✤    reducer <cieľ, zoznam zdrojov>

Monday, July 25, 11
Moje skúsenosti s MapReduce?

Monday, July 25, 11
Diplomovka


    ✤    Práca s Twitter Datasetom

          ✤    takmer 30 GB textový subor

          ✤    ďalšie pár sto megové csvcka

          ✤    implementácia viacerých Mapperov a Reducerov pre výpočet
               ohodnotenia stránok pomocou tweetov z mikroblogu




Monday, July 25, 11
Apache HADOOP

Monday, July 25, 11
✤    Open source MapReduce framework

    ✤    Napísaný v Jave

    ✤    Podporuje aj iné jazyky

    ✤    Využívajú ho dnes okrem Google-u takmer všetci
         veľký IT hráčí:

          ✤    Facebook, Twitter, LinkedIn, Adobe, Amazon, Apple,
               eBay, Hulu, IBM, Last.fm, Yahoo a strašne veľa
               ďalších

Monday, July 25, 11
Hadoop zahŕňa celý ekosystém
    Hadoop zah

    Date


Monday, July 25, 11
HDFS


    ✤    Vychádza z GFS - Google File
         Systém

    ✤    Distribuovaný file systém

    ✤    Rieši čo kde bude uložené a
         koľkokrát

    ✤    Virtuálny file systém



Monday, July 25, 11
HIVE


    ✤    SQL nad “NoSQL” dátami

          ✤    súbory, SQL Databázy...

    ✤    Podporuje SELECT, JOIN,
         GROUP BY..

    ✤    Vyvinul Facebook




Monday, July 25, 11
HBase


    ✤    NoSQL column oriented
         databáza

    ✤    Vychádza z Google BigTable

    ✤    podľa mňa asi najviac
         “enterprise” NoSQL




Monday, July 25, 11
Ďalšie

    ✤    Mahout - knižnica s MapReduce jobmi pre strojové učenie

    ✤    Pig - prasačiny ;-) vlastný jazyk pre ľahkú prácu s dátami

    ✤    Chuckwa - zberač logov

    ✤    ZooKeeper - drží všetko pohromade ;-) rieši zamykanie,
         synchornizáciu atď...

    ✤    Avro - serializér


Monday, July 25, 11
Záver



    ✤    Dát je veľa - distribuované výpočty sú nevyhnutnosťou

    ✤    Problematické uloženie dát - NoSQL

    ✤    Hadoop - framework s celým ekosystémom pre
         distribuované výpočty založený na MapReduce




Monday, July 25, 11

Contenu connexe

En vedette

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfmarketingartwork
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024Neil Kimberley
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)contently
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024Albert Qian
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsKurio // The Social Media Age(ncy)
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Search Engine Journal
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summarySpeakerHub
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next Tessa Mero
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentLily Ray
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best PracticesVit Horky
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project managementMindGenius
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...RachelPearson36
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Applitools
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at WorkGetSmarter
 

En vedette (20)

AI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdfAI Trends in Creative Operations 2024 by Artwork Flow.pdf
AI Trends in Creative Operations 2024 by Artwork Flow.pdf
 
Skeleton Culture Code
Skeleton Culture CodeSkeleton Culture Code
Skeleton Culture Code
 
PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024PEPSICO Presentation to CAGNY Conference Feb 2024
PEPSICO Presentation to CAGNY Conference Feb 2024
 
Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)Content Methodology: A Best Practices Report (Webinar)
Content Methodology: A Best Practices Report (Webinar)
 
How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024How to Prepare For a Successful Job Search for 2024
How to Prepare For a Successful Job Search for 2024
 
Social Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie InsightsSocial Media Marketing Trends 2024 // The Global Indie Insights
Social Media Marketing Trends 2024 // The Global Indie Insights
 
Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024Trends In Paid Search: Navigating The Digital Landscape In 2024
Trends In Paid Search: Navigating The Digital Landscape In 2024
 
5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary5 Public speaking tips from TED - Visualized summary
5 Public speaking tips from TED - Visualized summary
 
ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd ChatGPT and the Future of Work - Clark Boyd
ChatGPT and the Future of Work - Clark Boyd
 
Getting into the tech field. what next
Getting into the tech field. what next Getting into the tech field. what next
Getting into the tech field. what next
 
Google's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search IntentGoogle's Just Not That Into You: Understanding Core Updates & Search Intent
Google's Just Not That Into You: Understanding Core Updates & Search Intent
 
How to have difficult conversations
How to have difficult conversations How to have difficult conversations
How to have difficult conversations
 
Introduction to Data Science
Introduction to Data ScienceIntroduction to Data Science
Introduction to Data Science
 
Time Management & Productivity - Best Practices
Time Management & Productivity -  Best PracticesTime Management & Productivity -  Best Practices
Time Management & Productivity - Best Practices
 
The six step guide to practical project management
The six step guide to practical project managementThe six step guide to practical project management
The six step guide to practical project management
 
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
Beginners Guide to TikTok for Search - Rachel Pearson - We are Tilt __ Bright...
 
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
Unlocking the Power of ChatGPT and AI in Testing - A Real-World Look, present...
 
12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work12 Ways to Increase Your Influence at Work
12 Ways to Increase Your Influence at Work
 
ChatGPT webinar slides
ChatGPT webinar slidesChatGPT webinar slides
ChatGPT webinar slides
 
More than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike RoutesMore than Just Lines on a Map: Best Practices for U.S Bike Routes
More than Just Lines on a Map: Best Practices for U.S Bike Routes
 

Spracovanie velkych dat MONOGRAM Tech Monday 27.07.2011

  • 1. Spracovanie veľkých dát Tomáš Majer MONOGRAM Tech. Monday 25.7.2011 Monday, July 25, 11
  • 2. Čo sú veľké dáta ✤ Tomajová definicia ✤ Také dáta, ktoré: nevojdú na jeden stroj, alebo sa s nedá s nimi pracovať v reálnom čase na jednom stroji Monday, July 25, 11
  • 3. Prečo sú dôležité? ✤ Dát je stále viac a viac ✤ Web 2.0 - sociálny aspekt webu zabezpečuje vytváranie obrovského množstva použiteľných dát ✤ Jednoduchý príklad: Facebook ✤ 135 bilionov správ za mesiac ✤ 20 bilionov udalostí za deň - 200 000 za sekundu Monday, July 25, 11
  • 4. Nárast Facebooku Nové data za ďen (GB) 4,000 3,000 2,000 1,000 Marec 2008 Apríl 2009 0 Október 2009 Monday, July 25, 11
  • 5. Ako ukladať veľké dáta ✤ SQL  databázy  trpia  základnym  problémom  so  škálovateĺnosťou ✤ NoSQL - “ľahko” škálovateĺné - vhodné pre veľké dáta Monday, July 25, 11
  • 7. NoSQL ✤ Viaceré typy ✤ document oriented, column oriented, graph oriented, key-value ✤ Vysoký výkon ✤ Obmedzené možnosti - oproti SQL databázam ✤ Neexistuje štandard pre prácu s dátami ✤ V praxi sa osvedčila kombinácia NoSQL s SQL Monday, July 25, 11
  • 8. Google MapReduce 2004 Google vydal paper: MapReduce: Simplified Data Processing on Large Clusters Monday, July 25, 11
  • 9. Ciele MapReduce ✤ Rozložiť výpočet medzi viacero strojov - nodov ✤ Jednoduchý framework, ktorý zabezpečí jednoduché písanie takéhoto kódu ✤ Horizontálna škálovateľnosť Monday, July 25, 11
  • 10. Ako teda funguje MapReduce? Monday, July 25, 11
  • 11. Existuje viacero nodov, ktoré môžu robiť viacero vecí ✤ 2 základne úlohy ✤ Map job ✤ vstupný vektor <key1, value1> ✤ výstupný zoznam vektorov <key2, value2> ✤ Reduce job ✤ vstupný vektor <key2, <zoznam hodnot z maperov s výstupom key2>> ✤ výstupný zoznam vektorov <key3, value3> Monday, July 25, 11
  • 12. Jednoduchý príklad - spočítanie slov void map(String name, String document): // name: document name // document: document contents for each word w in document: EmitIntermediate(w, "1"); void reduce(String word, Iterator partialCounts): // word: a word // partialCounts: a list of aggregated partial counts int sum = 0; for each pc in partialCounts: sum += ParseInt(pc); Emit(word, AsString(sum)); Monday, July 25, 11
  • 14. Jednoduché MapReduce príklady ✤ Distribuovaný grep ✤ Sčítanie návštev pre URL ✤ mapper <URL, 1> ✤ reducer <URL, celkový počet návštev> ✤ Graf väzieb stránok ✤ mapper <cieľ, zdroj> ✤ reducer <cieľ, zoznam zdrojov> Monday, July 25, 11
  • 15. Moje skúsenosti s MapReduce? Monday, July 25, 11
  • 16. Diplomovka ✤ Práca s Twitter Datasetom ✤ takmer 30 GB textový subor ✤ ďalšie pár sto megové csvcka ✤ implementácia viacerých Mapperov a Reducerov pre výpočet ohodnotenia stránok pomocou tweetov z mikroblogu Monday, July 25, 11
  • 18. Open source MapReduce framework ✤ Napísaný v Jave ✤ Podporuje aj iné jazyky ✤ Využívajú ho dnes okrem Google-u takmer všetci veľký IT hráčí: ✤ Facebook, Twitter, LinkedIn, Adobe, Amazon, Apple, eBay, Hulu, IBM, Last.fm, Yahoo a strašne veľa ďalších Monday, July 25, 11
  • 19. Hadoop zahŕňa celý ekosystém Hadoop zah Date Monday, July 25, 11
  • 20. HDFS ✤ Vychádza z GFS - Google File Systém ✤ Distribuovaný file systém ✤ Rieši čo kde bude uložené a koľkokrát ✤ Virtuálny file systém Monday, July 25, 11
  • 21. HIVE ✤ SQL nad “NoSQL” dátami ✤ súbory, SQL Databázy... ✤ Podporuje SELECT, JOIN, GROUP BY.. ✤ Vyvinul Facebook Monday, July 25, 11
  • 22. HBase ✤ NoSQL column oriented databáza ✤ Vychádza z Google BigTable ✤ podľa mňa asi najviac “enterprise” NoSQL Monday, July 25, 11
  • 23. Ďalšie ✤ Mahout - knižnica s MapReduce jobmi pre strojové učenie ✤ Pig - prasačiny ;-) vlastný jazyk pre ľahkú prácu s dátami ✤ Chuckwa - zberač logov ✤ ZooKeeper - drží všetko pohromade ;-) rieši zamykanie, synchornizáciu atď... ✤ Avro - serializér Monday, July 25, 11
  • 24. Záver ✤ Dát je veľa - distribuované výpočty sú nevyhnutnosťou ✤ Problematické uloženie dát - NoSQL ✤ Hadoop - framework s celým ekosystémom pre distribuované výpočty založený na MapReduce Monday, July 25, 11