• <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 閱讀(930) 評論(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


            久久九九亚洲精品| 97久久国产露脸精品国产| 国产一区二区三区久久| 伊人久久综在合线亚洲2019| 久久国产精品免费| 一本色道久久综合| 欧美久久精品一级c片片| 中文字幕精品久久| 品成人欧美大片久久国产欧美...| 女同久久| 99久久精品国产综合一区| 久久久久亚洲AV片无码下载蜜桃| 国产精品久久久久影院色| 免费精品国产日韩热久久| 一本一道久久精品综合| 无码精品久久久久久人妻中字| 精品国产热久久久福利| 99久久国产热无码精品免费| 亚洲国产成人精品女人久久久 | 久久综合丁香激情久久| 久久精品国产亚洲AV久| 国产精品亚洲综合专区片高清久久久| 欧美伊人久久大香线蕉综合 | 久久久久久午夜成人影院| 久久国产V一级毛多内射| 久久精品人人做人人爽电影| 无码国产69精品久久久久网站| 2020国产成人久久精品| 久久久久国色AV免费看图片| 国产精品99久久久久久宅男| 久久综合综合久久狠狠狠97色88| 日韩久久久久久中文人妻| 无码任你躁久久久久久老妇App| 久久久久国产一区二区| 久久这里有精品视频| 亚洲国产成人精品女人久久久 | 亚洲女久久久噜噜噜熟女| 亚洲欧美日韩精品久久亚洲区 | 国产免费福利体检区久久| 久久精品国内一区二区三区| 免费国产99久久久香蕉|