1. <tfoot id='cMQvn'></tfoot>

        <legend id='cMQvn'><style id='cMQvn'><dir id='cMQvn'><q id='cMQvn'></q></dir></style></legend>

        <small id='cMQvn'></small><noframes id='cMQvn'>

        <i id='cMQvn'><tr id='cMQvn'><dt id='cMQvn'><q id='cMQvn'><span id='cMQvn'><b id='cMQvn'><form id='cMQvn'><ins id='cMQvn'></ins><ul id='cMQvn'></ul><sub id='cMQvn'></sub></form><legend id='cMQvn'></legend><bdo id='cMQvn'><pre id='cMQvn'><center id='cMQvn'></center></pre></bdo></b><th id='cMQvn'></th></span></q></dt></tr></i><div id='cMQvn'><tfoot id='cMQvn'></tfoot><dl id='cMQvn'><fieldset id='cMQvn'></fieldset></dl></div>
        • <bdo id='cMQvn'></bdo><ul id='cMQvn'></ul>

        Hadoop 和 Python:禁用排序

        时间:2023-09-12

          <small id='hhrVa'></small><noframes id='hhrVa'>

          <legend id='hhrVa'><style id='hhrVa'><dir id='hhrVa'><q id='hhrVa'></q></dir></style></legend>

              <i id='hhrVa'><tr id='hhrVa'><dt id='hhrVa'><q id='hhrVa'><span id='hhrVa'><b id='hhrVa'><form id='hhrVa'><ins id='hhrVa'></ins><ul id='hhrVa'></ul><sub id='hhrVa'></sub></form><legend id='hhrVa'></legend><bdo id='hhrVa'><pre id='hhrVa'><center id='hhrVa'></center></pre></bdo></b><th id='hhrVa'></th></span></q></dt></tr></i><div id='hhrVa'><tfoot id='hhrVa'></tfoot><dl id='hhrVa'><fieldset id='hhrVa'></fieldset></dl></div>
                <tbody id='hhrVa'></tbody>
            • <tfoot id='hhrVa'></tfoot>
              • <bdo id='hhrVa'></bdo><ul id='hhrVa'></ul>
                1. 本文介绍了Hadoop 和 Python:禁用排序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我已经意识到,当使用 Python 代码运行 Hadoop 时,映射器或化简器(不确定是哪个)在 reducer.py 打印输出之前对我的输出进行排序.目前它似乎是按字母数字排序的.我想知道是否有办法完全禁用它.我想根据 ma​​pper.py 的打印顺序输出程序.我在 Java 中找到了答案,但在 Python 中没有找到答案.我需要修改 ma​​pper.py 还是命令行参数?

                  I've realized that when running Hadoop with Python code, either the mapper or reducer (not sure which) is sorting my output before it's printed out by reducer.py. Currently it seems to be sorted alphanumerically. I am wondering if there is a way to completely disable this. I would like the output of the program based off of the order in which it's printed from mapper.py. I've found answers in Java but none for Python. Would I need to modify mapper.py or perhaps the command line arguments?

                  推荐答案

                  ,如上所述 这里:

                  No, as stated here:

                  如果你的reduce任务数不为0,hadoop框架会对你的结果进行排序.没有办法解决.

                  If your number of reduce tasks is not 0, the hadoop framework will sort your results. There is no way around it.

                  这篇关于Hadoop 和 Python:禁用排序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:mapreduce 难以理解 下一篇:我应该为这项任务学习/使用 MapReduce 还是其他类

                  相关文章

                  最新文章

                  <small id='QAilN'></small><noframes id='QAilN'>

                    <i id='QAilN'><tr id='QAilN'><dt id='QAilN'><q id='QAilN'><span id='QAilN'><b id='QAilN'><form id='QAilN'><ins id='QAilN'></ins><ul id='QAilN'></ul><sub id='QAilN'></sub></form><legend id='QAilN'></legend><bdo id='QAilN'><pre id='QAilN'><center id='QAilN'></center></pre></bdo></b><th id='QAilN'></th></span></q></dt></tr></i><div id='QAilN'><tfoot id='QAilN'></tfoot><dl id='QAilN'><fieldset id='QAilN'></fieldset></dl></div>
                      <bdo id='QAilN'></bdo><ul id='QAilN'></ul>
                    <tfoot id='QAilN'></tfoot>
                    1. <legend id='QAilN'><style id='QAilN'><dir id='QAilN'><q id='QAilN'></q></dir></style></legend>