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


            久久91亚洲人成电影网站| 国内精品伊人久久久久777| 精品久久香蕉国产线看观看亚洲| www.久久热.com| 久久精品桃花综合| 久久91综合国产91久久精品| 久久se这里只有精品| 亚洲中文字幕无码一久久区| 亚洲综合婷婷久久| 久久精品一本到99热免费| 国产成人精品久久一区二区三区| 久久成人精品| 色综合色天天久久婷婷基地| 2019久久久高清456| 精品久久久久久无码中文野结衣| 一本色道久久88精品综合| 久久久国产精品| 成人精品一区二区久久久| 性色欲网站人妻丰满中文久久不卡 | 国产人久久人人人人爽| 久久伊人色| 久久久久亚洲AV无码去区首| 99久久精品国产麻豆| 久久精品国产99久久无毒不卡| 亚洲国产精品无码久久久久久曰 | 国内精品久久久久影院薰衣草 | 久久婷婷成人综合色综合| 色婷婷综合久久久久中文字幕 | 综合久久一区二区三区| 九九久久精品无码专区| 久久噜噜电影你懂的| 99久久99久久久精品齐齐| 久久久国产精品亚洲一区| 亚洲精品乱码久久久久久按摩 | 国产精品伊人久久伊人电影| 色偷偷88888欧美精品久久久| 国产69精品久久久久APP下载| 伊人热热久久原色播放www| 人妻系列无码专区久久五月天| 久久久亚洲精品蜜桃臀| 亚洲精品无码专区久久同性男|