Upgrade to Pro
— share decks privately, control downloads, hide ads and more …
Speaker Deck
Sign up for free
Menu
Search
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Features
All features
Private URLs
Password Protection
Custom URLS
Scheduled publishing
Remove Branding
Restrict embedding
Deck Collections
Notes
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Explore
Featured decks
Featured speakers
Programming
Technology
Storyboards
Pricing
Search
Sign in
Sign up for free
Hadoop on Node.js
Search
Sponsored
·
Ship Features Fearlessly
Turn features on and off without deploys. Used by thousands of Ruby developers.
→
Casear Chu
August 22, 2012
Programming
150
2
Share
Embed
Copy iframe code
Copy JS code
Copy link
Start on current slide
Hadoop on Node.js
Casear Chu
August 22, 2012
More Decks by Casear Chu
See All by Casear Chu
Collie 編輯 Animation Editor
casear
0
43
ZMQ on Node.js
casear
3
330
Other Decks in Programming
See All in Programming
When benchmarks go bad - what I learned from measuring performance wrong
hollycummins
0
220
UPDATE をやめる — EF Core でマスタをバージョン管理する
panda728
PRO
0
1.2k
Long Living Tokens, Die, Die, Die! (or: The One Ring is Banned in Modern)
sylph01
0
310
パスワード再設定メールのURLについて知っておこう
uyuki234
0
160
見えないものを探る要求要件定義に必要な基本的思考 / invisible-requirement-thinking
minodriven
15
8.5k
月間100万人のサービス刷新で、 技術選定をHonoに振り切った話
yutobara
8
6.6k
AIに “答え“を書かせるのを やめてみた
___akari11
0
120
残高管理から台帳サービスへの進化
artoy
1
200
AIで開発が速くなった先で、開発チームは何を目指すか
shihochan
0
1.4k
コードレビューのボトルネックを"する側"と"される側"の両面から解消する
yub0n
2
1.6k
KiroのSpecで「五目並べ」を作ってみる
satoshi256kbyte
1
380
コードで差別化できない時代の ソフトウェアエンジニアリング / Software Engineering in an Era Where Code Doesn’t Differentiate
kishida
2
180
Featured
See All Featured
AI Search: Implications for SEO and How to Move Forward - #ShenzhenSEOConference
aleyda
1
1.4k
Digital Projects Gone Horribly Wrong (And the UX Pros Who Still Save the Day) - Dean Schuster
uxyall
1
3.4k
個人開発の失敗を避けるイケてる考え方 / tips for indie hackers
panda_program
123
22k
The Art of Delivering Value - GDevCon NA Keynote
reverentgeek
16
2.2k
Become a Pro
speakerdeck
PRO
31
6.3k
SEO for Brand Visibility & Recognition
aleyda
0
4.8k
YesSQL, Process and Tooling at Scale
rocio
174
15k
Typedesign – Prime Four
hannesfritz
42
3.2k
Are puppies a ranking factor?
jonoalderson
2
4.1k
Agile Leadership in an Agile Organization
kimpetersen
PRO
0
280
Marketing Yourself as an Engineer | Alaka | Gurzu
gurzu
0
330
A Soul's Torment
seathinner
8
3.8k
Transcript
Hadoop & Node.js Casear Chu
Analysis
SQL? OLAP ? Cube? Tabular?
BIG DATA
Big Data
• • • •
Data Process
12TB? 1HDD=75MB/sec
45Mins!!!!
1000HDDs =75MB/s*1000 =75GB/s
3Mins!!
Hadoop
Hadoop Node 2011120 (2010 66) 40%10-100 52%100-1000 Hadoop
Data 2011㾝 202 PB (2010 3.4 ) • • • • • •
Hadoop=HDFS+MapReduce
Example Google Facebook Yahoo IBM eBay
Hadoop Version 0.20 0.20.X 0.20 0.20.20X.YLegacy
Stable Security Branch 0.20.205.0 1.0.XCurrent Stable • • • • •
Role NameNode Data Node JobTracker TaskTracker • • • •
MapReduce
MapReduce • •
Code Compile
HIVE
HIVE
PIG
None
Mahout
Long Tail
Hadoop Setting
Local (Standalone) Mode Pseudo-Distributed Mode Fully-Distributed Mode
hadoop-env.sh export JAVA_HOME=”jdk path” •
core-site.xml <configuration> <property> <name>fs.default.name</name> <value>hdfs://localhost:9000</value> </property> </configuration> • • •
• • •
hdfs-site.xml <configuration> <property> <name>dfs.replication</name> <value>1</value> </property> </configuration> • • •
• • •
mapred.xml <configuration> <property> <name>mapred.job.tracker</name> <value>localhost:9001</value> </property> </configuration> • • •
• • •
None
Timothy Open Source Use Hadoop Stream API • •
Why node.js No binaries NPM Support • •
npm install timothy
Function configure dependencies setup map reduce run • • •
• • •
Word Count
require('timothy') .map(function(line){ var words = line.split(" "); for(var i=0; i<words.length;
i++) this.emit(words[i], 1); }) .reduce(function(word,counts){ this.emit(word, counts.length); }) .runLocal("~/Desktop/test_input.txt"); •
hadoop fs -put <src> <dest> hadoop fs -get <src> <dest>
None