![云計(jì)算-cloud l主要需求和目標(biāo)_第1頁](http://file4.renrendoc.com/view/3d4c1921f377c4044f322aacb00199a2/3d4c1921f377c4044f322aacb00199a21.gif)
![云計(jì)算-cloud l主要需求和目標(biāo)_第2頁](http://file4.renrendoc.com/view/3d4c1921f377c4044f322aacb00199a2/3d4c1921f377c4044f322aacb00199a22.gif)
![云計(jì)算-cloud l主要需求和目標(biāo)_第3頁](http://file4.renrendoc.com/view/3d4c1921f377c4044f322aacb00199a2/3d4c1921f377c4044f322aacb00199a23.gif)
![云計(jì)算-cloud l主要需求和目標(biāo)_第4頁](http://file4.renrendoc.com/view/3d4c1921f377c4044f322aacb00199a2/3d4c1921f377c4044f322aacb00199a24.gif)
![云計(jì)算-cloud l主要需求和目標(biāo)_第5頁](http://file4.renrendoc.com/view/3d4c1921f377c4044f322aacb00199a2/3d4c1921f377c4044f322aacb00199a25.gif)
下載本文檔
版權(quán)說明:本文檔由用戶提供并上傳,收益歸屬內(nèi)容提供方,若內(nèi)容存在侵權(quán),請(qǐng)進(jìn)行舉報(bào)或認(rèn)領(lǐng)
文檔簡介
副研究員博士 主要需求和目標(biāo)實(shí)現(xiàn)為程序員隱藏系統(tǒng)層細(xì)需要考慮的細(xì)節(jié)技術(shù)問題如何管理 數(shù)據(jù)?如何劃分?jǐn)?shù)據(jù)如何調(diào)度計(jì)算任務(wù)并分配map和reduce節(jié)點(diǎn)如果節(jié)點(diǎn)間需要共享或交換數(shù)據(jù)如何如何掌控節(jié)點(diǎn)的執(zhí)行完成情況?如何收集中間和最終的結(jié)果節(jié)點(diǎn)失效如何處理?如何恢復(fù)數(shù)節(jié)點(diǎn)擴(kuò)充后如何保證原有程序仍能正常運(yùn) 系統(tǒng)性能提升 TextText1:theweatheris Text2:todayisText3:goodweatheris Text4:todayhasgoodString[]text=args[0];HashTableht=newHashTable();for(i=0;i<3;++i){StringTokenizerst=newStringTokenizer(text[i]);while(st.hasMoreTokens()){Stringword=if(!ht.containsKey(word)){ht.put(word,newInteger(1));}else{intwc((Integer)ht.get(word)).intValue()+1;//計(jì)數(shù)加1ht.put(word,new}}}for(Iteratoritr=ht.KeySet().iterator();itr.hasNext();{Stringword=System.out.print(word+“:”+ }輸出:good: has:1;is: the: today: weather:
鍵值
鍵值
海量數(shù)
鍵值
初始鍵值
Barrier:AggregationBarrier:Aggregationand
中間結(jié)
計(jì)算結(jié)MapReducemap:(k1;v1)→[(k2;reduce:(k2;[v2])→[(k3;)][最終的某種形式的結(jié)果輸出[(k3;v3)]輸出:最終輸出結(jié)果[(k3;使用4個(gè)map節(jié)點(diǎn)map節(jié)點(diǎn)輸入:(text1theweatheris輸出:(the1weather1(is1(goodmap節(jié)點(diǎn)輸入:(text2todayismap節(jié)點(diǎn)map節(jié)點(diǎn)reduce節(jié)點(diǎn)輸入:(good,1),(good,1),(good,1),(good1),(good(is,1),(is,輸出(is,1),(is,輸出good:is:3weather:reduce節(jié)點(diǎn)輸入:(has,1),輸出:(has,1),(is,輸入:(the,1),today1),(today,(weather,1),(weather,1),(weather,輸出:(the,1),(today,2),weatherreduce節(jié)點(diǎn)輸入:(good,1),(good,1),(good,2)(good,(is,1),(is,輸出(is,1),(is,輸出good:is:3weather:reduce節(jié)點(diǎn)輸入:(has,1),輸出:(has,1),(is,輸入:(the,1),today1),(today,(weather,1),(weather,1),(weather,輸出:(the,1),(today,2),weatherHadoop:Mapper&ReducerHadoop:DriverHadoop:Run HadoopMapReducesplitsplitsplitsplit
partpartpartpartsplitsplitReducershas3primaryphases:shuffle,sortandHadoop:HowmanyTasksetuptakesawhile,soitisbestifthemapstakeatleastaminuteto用戶可以顯示配置Configuration.set(MRjobConfig.NUM_MAPSintbutitonlyprovidesahinttotheframework10TBofinputdata,blocksizeisYouwillendupwith80KHadoop:HowmanyThenumberofreducersforthejobissetbytheuserTherightnumberofreducesseemstobe0.95or1.75multipliedby(<no.of<no. umcontainersperWith0.95allofthereducescanlaunch yandstarttransferringmapoutputsthemapsWith1.75thefasternodeswillfinishtheirfirstroundofreducesandlaunchasecondwave ngamuchbetterjobofloadIncreasingthenumberofreducesincreasestheframeworkoverhead,butloadbalancingandlowersthecostofHadoop:PartitionercontrolsthepartitioningofthekeysoftheintermediateThetotalnumberofpartitionsisthesameasthenumberofreducetasksforthejob.Hencethiscontrolswhichofthemreducetaskstheintermediatekey(andhencetherecord)issenttoforreductionHashPartitioneristhedefaultHadoop:JobJobrepresentsaMapReducejobJobistheprimaryinterfaceforausertodescribeaMapReducejobtoHadoopframeworkforJobistypicallyusedtoHadoop:JobOptionally,JobisusedtospecifyotheradvancedfacetsofthejobsuchFilestobeputintheWhetherintermediateand/orjoboutputsaretobecompressed(andWhetherjobtaskscanbeexecutedinaspeculativeumnumberofattemptsperUserscanuseConfiguration.set(String,String)/Configuration.get(String)toset/getarbitraryparametersneededbyapplicationsCountersrepresentglobalCounterscouldbedefinedMapReduceInthemapand/orreducemethods,applicationscandefinearbitraryCounters(oftypeEnum)andupdatethemvia:Counters.incrCounter(Enum,Counters.incrCounter(String,String,ThesecountersarethengloballyaggregatedbytheHadoop:CurrentlyFileInputFormat,TextInputFormat,SequenceFileInputFormat,CombineFileInputFormat,CombineSequenceFileInputFormat,CombineTextInputFormat,CompositeInputFormat,FixedLengthInputFormat,SequenceFileAsBinaryInputFormat,Seq
溫馨提示
- 1. 本站所有資源如無特殊說明,都需要本地電腦安裝OFFICE2007和PDF閱讀器。圖紙軟件為CAD,CAXA,PROE,UG,SolidWorks等.壓縮文件請(qǐng)下載最新的WinRAR軟件解壓。
- 2. 本站的文檔不包含任何第三方提供的附件圖紙等,如果需要附件,請(qǐng)聯(lián)系上傳者。文件的所有權(quán)益歸上傳用戶所有。
- 3. 本站RAR壓縮包中若帶圖紙,網(wǎng)頁內(nèi)容里面會(huì)有圖紙預(yù)覽,若沒有圖紙預(yù)覽就沒有圖紙。
- 4. 未經(jīng)權(quán)益所有人同意不得將文件中的內(nèi)容挪作商業(yè)或盈利用途。
- 5. 人人文庫網(wǎng)僅提供信息存儲(chǔ)空間,僅對(duì)用戶上傳內(nèi)容的表現(xiàn)方式做保護(hù)處理,對(duì)用戶上傳分享的文檔內(nèi)容本身不做任何修改或編輯,并不能對(duì)任何下載內(nèi)容負(fù)責(zé)。
- 6. 下載文件中如有侵權(quán)或不適當(dāng)內(nèi)容,請(qǐng)與我們聯(lián)系,我們立即糾正。
- 7. 本站不保證下載資源的準(zhǔn)確性、安全性和完整性, 同時(shí)也不承擔(dān)用戶因使用這些下載資源對(duì)自己和他人造成任何形式的傷害或損失。
最新文檔
- 2024年三年級(jí)品社下冊(cè)《馬路不是游戲場》說課稿 山東版
- 2024-2025學(xué)年高中地理 第4章 旅游與區(qū)域的發(fā)展 第1節(jié) 旅游業(yè)的發(fā)展及其對(duì)區(qū)域的影響說課稿 中圖版選修3
- Unit 1 Growing up 單元說課稿-2024-2025學(xué)年高中英語外研版(2019)選擇性必修第二冊(cè)
- 下城區(qū)汽車租賃合同范本
- 保安獎(jiǎng)罰合同范例
- 醫(yī)用耗材寄售合同范例
- 加貿(mào)合同范本
- 專利注冊(cè)合同范本
- 人工智能購銷合同范例
- 農(nóng)膜質(zhì)保期限合同范例
- JCT796-2013 回彈儀評(píng)定燒結(jié)普通磚強(qiáng)度等級(jí)的方法
- 物業(yè)客服培訓(xùn)課件PPT模板
- 火力發(fā)電廠節(jié)能管理制度實(shí)施細(xì)則
- 2003年版勞動(dòng)合同范本
- 全名校北師大版數(shù)學(xué)五年級(jí)下冊(cè)第三單元達(dá)標(biāo)測(cè)試卷(含答案)
- 新員工入職通識(shí)考試(中軟國際)
- 四星級(jí)酒店工程樣板房裝修施工匯報(bào)
- 華為攜手深圳國際會(huì)展中心創(chuàng)建世界一流展館
- 2023版思想道德與法治專題2 領(lǐng)悟人生真諦 把握人生方向 第3講 創(chuàng)造有意義的人生
- 全過程工程咨詢服務(wù)技術(shù)方案
- GB/T 41509-2022綠色制造干式切削工藝性能評(píng)價(jià)規(guī)范
評(píng)論
0/150
提交評(píng)論