• <ins id="pjuwb"></ins>
    <blockquote id="pjuwb"><pre id="pjuwb"></pre></blockquote>
    <noscript id="pjuwb"></noscript>
          <sup id="pjuwb"><pre id="pjuwb"></pre></sup>
            <dd id="pjuwb"></dd>
            <abbr id="pjuwb"></abbr>
            posts - 15, comments - 10, trackbacks - 0, articles - 0

            關于map/reduce的combiner運行時機的問題

            Posted on 2012-11-06 23:52 whspecial 閱讀(938) 評論(0)  編輯 收藏 引用 所屬分類: hadoop
               map/reducecombiner到底在什么時候運行?

            在網上大多數資料中,都是說combinermap端運行,發生在map輸出數據之后,經過combiner再傳遞給reducer。但是之前在工作中出現的一個問題導致我發現原來combiner居然也會在reducer端運行,并且會多次運行。
               在網上查了之后發現,這是hadoop-0.18版本引入的新feature
               Changed policy for running combiner. The combiner may be run multiple times as the map's output is sorted and merged. Additionally, it may be run on the reduce side as data is merged. The old semantics are available in Hadoop 0.18 if the user calls: job.setCombineOnlyOnce(true)
               實際上combiner會在mapper端和reducer端分別運運行,看了下代碼,發生combine的時機在以下:
               1 mapper端的spill階段,在緩存中的記錄超過閾值時會進行combine

            if (spstart != spindex) {

                     …

            combineAndSpill(kvIter, combineInputCounter);

            }

            2 mapper端的merge階段,進行mergespill文件數目>=3時會進行combine

            if (null == combinerClass || numSpills < minSpillsForCombine) {

            Merger.writeFile(kvIter, writer, reporter);

            } else {

            combineCollector.setWriter(writer);

            combineAndSpill(kvIter, combineInputCounter);

            }

            3 reducer端,一定會進行combine


            99久久久精品免费观看国产| 亚洲人成精品久久久久| 青青国产成人久久91网| 国产午夜福利精品久久| 久久青青草原精品国产不卡| 免费精品久久天干天干| 久久亚洲高清观看| 久久天天躁狠狠躁夜夜avapp| 狠狠狠色丁香婷婷综合久久俺| 久久久综合香蕉尹人综合网| 久久九九兔免费精品6| 亚洲国产二区三区久久| 精产国品久久一二三产区区别| 久久国产高清字幕中文| 中文字幕热久久久久久久| 久久九九久精品国产免费直播| 日韩精品久久无码中文字幕| 久久国产精品视频| 久久久久国产精品| 亚洲人成精品久久久久| 亚洲国产成人精品久久久国产成人一区二区三区综 | 99精品国产在热久久无毒不卡| 94久久国产乱子伦精品免费| 亚洲AV成人无码久久精品老人| 日韩欧美亚洲综合久久影院Ds| 99久久综合狠狠综合久久| 久久精品夜夜夜夜夜久久| 国产亚洲美女精品久久久2020| 久久人人爽人人澡人人高潮AV | 成人国内精品久久久久影院VR| 欧美熟妇另类久久久久久不卡| 久久99热这里只频精品6| 久久无码精品一区二区三区| 久久国产精品偷99| 久久久精品日本一区二区三区| 亚洲成色999久久网站| 国产精品久久亚洲不卡动漫| 99久久久精品免费观看国产| 狠狠狠色丁香婷婷综合久久五月| 91视频国产91久久久| 狠狠色丁香婷婷久久综合不卡|