SlideShare a Scribd company logo
1 of 50
Download to read offline
Relational
Data
10x increase
every 5 years
VOLUME
4.3 connected
devices per adult
VELOCITY
VARIETY
85% from
new data types
Big Data
80%growth
of unstructured
data is
predicted over
the next five
years.
1.8 zettabytes
of digital data
were in use
worldwide in
2011, up 30%
from 2010.
70% of U.S.
smartphone
owners regularly
shop online via
their devices.
44% of
users (350M
people) access
Facebook via
mobile devices.
50% of
millennials use
mobile devices
to research
products.
60% of U.S.
mobile data will
be audio and
video streaming
by 2014.
Mobility
2/3 of the
world's mobile
data traffic will be
video by 2016.
33%of BI will
be consumed
via handheld
devices
by 2013.
Gaming consoles
are now used an
average of
1.5 hrs/wk
to connect to
the Internet.
1 in 4
Facebook
users add
their location
to posts
(2B/month).
500M
Tweets are
hosted on
Twitter each day
38% of
people
recommend a
brand they “like”
or follow
on a social
network.
100M
Facebook
“likes” per day.
Brands get
Big
Data
Social
Mobility Cloud
Tackling growth in the volume, velocity and variety of data
機能 RDB Big Data
データタイプ 構造化データ 非構造化データ
スキーマ 静的- 書き込み時に必要 動的 – 読み込み時
Read write パターン read/writeの繰り返し Writeは一回、Readの繰り返し
ストレージボリューム Gigabytes to terabytes Terabytes, petabytes, and
beyond
スケーラビリティ スケールアップ スケールアウト
エコノミクス 高価なハードウェアとソフト
ウェア
コモディティハードウェアと
オープンソース
(Still) Rapidly Evolving
MapReduce (Job Scheduling/Execution System)
HDFS
(Hadoop Distributed File System)
HBase (Column DB)
Pig (Data
Flow)
Hive
(Warehouse
and Data
Access)
Traditional BI Tools
Zookeeper(Coordination)
Hadoop = MapReduce + HDFS
Sqoop
Oozie
(Workflow)
Chukwa Flume
Apache
Mahout
Cassandra
Avro(Serialization)
• ビッグデータの分析・レポーティングのための統一ストレージ
• 内部アプリケーションのために複数のデータセットを格納
• クラウドにより信頼性、弾力性、低コストを実現
• ストリームデータまたは非構造化データを既存のデータベースにロード
• ロードする前にクレンジング、転送、バリデーションを実行
• 定期的にデータの可視化またはレポートの作成
• 新しいタイプのデータを検証
• 少人数によるインタラクティブな分析
• レポートの作成や外部または内部データの可視化
• 外部データソースを内部の企業データウェアハウスと統合
• スケジュールされた間隔もしくはオンデマンドでデータ更新
• 外部データによりデータウェアハウスを強化
• プラットフォーム: Traditional DWH/BI or HDInsight
• ランタイム : HDInsight in the Cloud or on-premises
• ストレージ: ASV or HDFS
• データ収集 : File upload, StreamInsight, SSIS, Custom App
• クエリー: MR, Pig, Hive, UDF or Hadoop Streaming
• データ可視化: EXCEL , Sharepoint, LINQ to Hive or Custom app
• レポーティング : SSRS, SQL Azure Reporting, Crystal Report etc.
• DWH 統合: Sqoop, SSIS, Hive ODBC, PolyBase
• 他の要素 : ZooKeeper, Oozie, HCatalog, Mahout etc.
• アップローダー
• アップローダーはライブラリーとして実装し、スクリプトやSSISから呼び
出し可能とする
• コマンドラインユーティリティを作成してインタラクティブなアップロー
ドもサポートする
• ASVへのアップロード
• データを小さいサイズへと分割して同時アップロード
• AzureのBlobサイズ
ボトルネック チューニングテクニック
大量の入力データによるストレージIO データソースの圧縮
Mapper出力ステージでスピルアウトするレコードに
よるストレージ I/O
Mapperからスピルアウトするレコードを減らす
大量のMapper出力によるネットワーク転送 Mapperの出力を圧縮
Combinerの実装
大量のReducer出力によるストレージIOまたはネット
ワーク転送
JOBの出力を圧縮
レプリケーション設定の変更
Hive – クエリー出力の圧縮
間違ったコンフィグレーションによるタスクの不足 Map, ReduceタスクまたはJob slotsの数を増やす
タスクへのメモリアロケーション不足 メモリ設定を変更
データ偏在化による特定Reducerの負荷増大 偏在化の除去
http://WAG.Codeplex.com
http://www.windowsAzure.com
http://hadoop.apache.org
http://pnp.azurewebsites.net/en-us/
// Map function - runs on all nodes
var map = function (key, value, context) {
// split the data into an array of words
var hashtags = value.split(/[^0-9a-zA-Z#]/);
//Loop through the array, creating a value of 1 for each word beginning "#"
for (var i = 0; i < hashtags.length; i++) {
if (hashtags[i].substring(0, 1) == "#") {
context.write(hashtags[i].toLowerCase(), 1);
}
}
};
//Reduce function - runs on reducer node(s)
var reduce = function (key, values, context) {
var sum = 0;
// Sum the counts of each tag found in the map function
while (values.hasNext()) {
sum += parseInt(values.next());
}
context.write(key, sum);
};
-- load tweets
Tweets = LOAD 'asv://uploads/data' AS (date, id, author, tweet);
-- split tweet into words
TweetWords = FOREACH Tweets GENERATE date, FLATTEN(TOKENIZE(tweet)) AS tag, id;
--filter words to find hashtags
Tags = FILTER TweetWords BY tag matches '#.*';
-- clean tags by removing trailing periods
CleanTags = FOREACH Tags GENERATE date, LOWER(REPLACE(tag, '¥¥.', '')) as tag, id;
-- group tweets by date and tag
GroupedTweets = GROUP CleanTags BY (date, tag);
-- count tag mentions per group
CountedTagMentions = FOREACH GroupedTweets GENERATE group, COUNT(CleanTags.id) as
mentions;
-- flatten the group to generate columns
TagMentions = FOREACH CountedTagMentions GENERATE FLATTEN(group) as (date, tag),
mentions;
-- load the top tags found by map/reduce previously
TopTags = LOAD 'asv://results/countedtags/part-r-00000' AS (toptag, totalcount:long);
-- Join tweets and top tags based on matching tag
TagMentionsAndTopTags = JOIN TagMentions BY tag, TopTags BY toptag;
-- get the date, tag, totalcount, and mentions columns
TagMentionsAndTotals = FOREACH TagMentionsAndTopTags GENERATE date, tag, totalcount,
mentions;
-- sort by date and mentions
SortedTagMentionsAndTotals = ORDER TagMentionsAndTotals BY date, mentions;
-- store the results as a file
STORE SortedTagMentionsAndTotals INTO 'asv://results/dailytagcounts';
CREATE EXTERNAL TABLE dailytwittertags
(tweetdate STRING,
tag STRING,
totalcount INT,
daycount INT)
ROW FORMAT DELIMITED
FIELDS TERMINATED BY '¥t'
STORED AS TEXTFILE LOCATION 'asv://tables/dailytagcount'

More Related Content

Recently uploaded

CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?akihisamiyanaga1
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案sugiuralab
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...博三 太田
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineerYuki Kikuchi
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)UEHARA, Tetsutaro
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfFumieNakayama
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NTT DATA Technology & Innovation
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)Hiroshi Tomioka
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfFumieNakayama
 

Recently uploaded (9)

CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
CTO, VPoE, テックリードなどリーダーポジションに登用したくなるのはどんな人材か?
 
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
TataPixel: 畳の異方性を利用した切り替え可能なディスプレイの提案
 
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察  ~Text-to-MusicとText-To-ImageかつImage-to-Music...
モーダル間の変換後の一致性とジャンル表を用いた解釈可能性の考察 ~Text-to-MusicとText-To-ImageかつImage-to-Music...
 
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
自分史上一番早い2024振り返り〜コロナ後、仕事は通常ペースに戻ったか〜 by IoT fullstack engineer
 
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
デジタル・フォレンジックの最新動向(2024年4月27日情洛会総会特別講演スライド)
 
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdfクラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
クラウドネイティブなサーバー仮想化基盤 - OpenShift Virtualization.pdf
 
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
NewSQLの可用性構成パターン(OCHaCafe Season 8 #4 発表資料)
 
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
業務で生成AIを活用したい人のための生成AI入門講座(社外公開版:キンドリルジャパン社内勉強会:2024年4月発表)
 
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdfAWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
AWS の OpenShift サービス (ROSA) を使った OpenShift Virtualizationの始め方.pdf
 

Featured

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by HubspotMarius Sescu
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTExpeed Software
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsPixeldarts
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthThinkNow
 
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
 

Featured (20)

2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot2024 State of Marketing Report – by Hubspot
2024 State of Marketing Report – by Hubspot
 
Everything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPTEverything You Need To Know About ChatGPT
Everything You Need To Know About ChatGPT
 
Product Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage EngineeringsProduct Design Trends in 2024 | Teenage Engineerings
Product Design Trends in 2024 | Teenage Engineerings
 
How Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental HealthHow Race, Age and Gender Shape Attitudes Towards Mental Health
How Race, Age and Gender Shape Attitudes Towards Mental Health
 
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...
 

HDInsight によるビッグ データ ソリューションの開発

  • 1.
  • 2.
  • 3.
  • 4. Relational Data 10x increase every 5 years VOLUME 4.3 connected devices per adult VELOCITY VARIETY 85% from new data types Big Data
  • 5. 80%growth of unstructured data is predicted over the next five years. 1.8 zettabytes of digital data were in use worldwide in 2011, up 30% from 2010. 70% of U.S. smartphone owners regularly shop online via their devices. 44% of users (350M people) access Facebook via mobile devices. 50% of millennials use mobile devices to research products. 60% of U.S. mobile data will be audio and video streaming by 2014. Mobility 2/3 of the world's mobile data traffic will be video by 2016. 33%of BI will be consumed via handheld devices by 2013. Gaming consoles are now used an average of 1.5 hrs/wk to connect to the Internet. 1 in 4 Facebook users add their location to posts (2B/month). 500M Tweets are hosted on Twitter each day 38% of people recommend a brand they “like” or follow on a social network. 100M Facebook “likes” per day. Brands get Big Data Social Mobility Cloud Tackling growth in the volume, velocity and variety of data
  • 6. 機能 RDB Big Data データタイプ 構造化データ 非構造化データ スキーマ 静的- 書き込み時に必要 動的 – 読み込み時 Read write パターン read/writeの繰り返し Writeは一回、Readの繰り返し ストレージボリューム Gigabytes to terabytes Terabytes, petabytes, and beyond スケーラビリティ スケールアップ スケールアウト エコノミクス 高価なハードウェアとソフト ウェア コモディティハードウェアと オープンソース
  • 7. (Still) Rapidly Evolving MapReduce (Job Scheduling/Execution System) HDFS (Hadoop Distributed File System) HBase (Column DB) Pig (Data Flow) Hive (Warehouse and Data Access) Traditional BI Tools Zookeeper(Coordination) Hadoop = MapReduce + HDFS Sqoop Oozie (Workflow) Chukwa Flume Apache Mahout Cassandra Avro(Serialization)
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21.
  • 24. • 新しいタイプのデータを検証 • 少人数によるインタラクティブな分析 • レポートの作成や外部または内部データの可視化
  • 26. • プラットフォーム: Traditional DWH/BI or HDInsight • ランタイム : HDInsight in the Cloud or on-premises • ストレージ: ASV or HDFS • データ収集 : File upload, StreamInsight, SSIS, Custom App • クエリー: MR, Pig, Hive, UDF or Hadoop Streaming • データ可視化: EXCEL , Sharepoint, LINQ to Hive or Custom app • レポーティング : SSRS, SQL Azure Reporting, Crystal Report etc. • DWH 統合: Sqoop, SSIS, Hive ODBC, PolyBase • 他の要素 : ZooKeeper, Oozie, HCatalog, Mahout etc.
  • 27.
  • 28. • アップローダー • アップローダーはライブラリーとして実装し、スクリプトやSSISから呼び 出し可能とする • コマンドラインユーティリティを作成してインタラクティブなアップロー ドもサポートする • ASVへのアップロード • データを小さいサイズへと分割して同時アップロード • AzureのBlobサイズ
  • 29.
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35. ボトルネック チューニングテクニック 大量の入力データによるストレージIO データソースの圧縮 Mapper出力ステージでスピルアウトするレコードに よるストレージ I/O Mapperからスピルアウトするレコードを減らす 大量のMapper出力によるネットワーク転送 Mapperの出力を圧縮 Combinerの実装 大量のReducer出力によるストレージIOまたはネット ワーク転送 JOBの出力を圧縮 レプリケーション設定の変更 Hive – クエリー出力の圧縮 間違ったコンフィグレーションによるタスクの不足 Map, ReduceタスクまたはJob slotsの数を増やす タスクへのメモリアロケーション不足 メモリ設定を変更 データ偏在化による特定Reducerの負荷増大 偏在化の除去
  • 36.
  • 37.
  • 39.
  • 40.
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47.
  • 48. // Map function - runs on all nodes var map = function (key, value, context) { // split the data into an array of words var hashtags = value.split(/[^0-9a-zA-Z#]/); //Loop through the array, creating a value of 1 for each word beginning "#" for (var i = 0; i < hashtags.length; i++) { if (hashtags[i].substring(0, 1) == "#") { context.write(hashtags[i].toLowerCase(), 1); } } }; //Reduce function - runs on reducer node(s) var reduce = function (key, values, context) { var sum = 0; // Sum the counts of each tag found in the map function while (values.hasNext()) { sum += parseInt(values.next()); } context.write(key, sum); };
  • 49. -- load tweets Tweets = LOAD 'asv://uploads/data' AS (date, id, author, tweet); -- split tweet into words TweetWords = FOREACH Tweets GENERATE date, FLATTEN(TOKENIZE(tweet)) AS tag, id; --filter words to find hashtags Tags = FILTER TweetWords BY tag matches '#.*'; -- clean tags by removing trailing periods CleanTags = FOREACH Tags GENERATE date, LOWER(REPLACE(tag, '¥¥.', '')) as tag, id; -- group tweets by date and tag GroupedTweets = GROUP CleanTags BY (date, tag); -- count tag mentions per group CountedTagMentions = FOREACH GroupedTweets GENERATE group, COUNT(CleanTags.id) as mentions; -- flatten the group to generate columns TagMentions = FOREACH CountedTagMentions GENERATE FLATTEN(group) as (date, tag), mentions; -- load the top tags found by map/reduce previously TopTags = LOAD 'asv://results/countedtags/part-r-00000' AS (toptag, totalcount:long); -- Join tweets and top tags based on matching tag TagMentionsAndTopTags = JOIN TagMentions BY tag, TopTags BY toptag; -- get the date, tag, totalcount, and mentions columns TagMentionsAndTotals = FOREACH TagMentionsAndTopTags GENERATE date, tag, totalcount, mentions; -- sort by date and mentions SortedTagMentionsAndTotals = ORDER TagMentionsAndTotals BY date, mentions; -- store the results as a file STORE SortedTagMentionsAndTotals INTO 'asv://results/dailytagcounts';
  • 50. CREATE EXTERNAL TABLE dailytwittertags (tweetdate STRING, tag STRING, totalcount INT, daycount INT) ROW FORMAT DELIMITED FIELDS TERMINATED BY '¥t' STORED AS TEXTFILE LOCATION 'asv://tables/dailytagcount'