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

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

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

        • <bdo id='KaHbH'></bdo><ul id='KaHbH'></ul>
      2. 600 秒内无法报告状态.杀戮!在 hadoop 中报告进度

        时间:2023-09-27
        <legend id='TypZq'><style id='TypZq'><dir id='TypZq'><q id='TypZq'></q></dir></style></legend>
          <tbody id='TypZq'></tbody>

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

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

                  本文介绍了600 秒内无法报告状态.杀戮!在 hadoop 中报告进度的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

                  问题描述

                  我收到以下错误:

                  Task attempt_201304161625_0028_m_000000_0 failed to report status for 600 seconds. Killing! 
                  

                  我的地图工作.这个问题类似于 这个,这个,和 这个.但是,我不想在 hadoop 杀死不报告进度的任务之前增加默认时间,即,

                  for my Map jobs. This question is similar to this, this, and this. However, I do not want to increase the default time before hadoop kills a task that doesn't report progress, i.e.,

                  Configuration conf=new Configuration();
                  long milliSeconds = 1000*60*60;
                  conf.setLong("mapred.task.timeout", milliSeconds);
                  

                  相反,我想使用 context.progress()context.setStatus("Some Message")context.getCounter(SOME_ENUM.PROGRESS).increment(1) 或类似的东西.但是,这仍然会导致作业被终止.这是我试图报告进度的代码片段.映射器:

                  Instead, I want to periodically report progress using either context.progress(), context.setStatus("Some Message") or context.getCounter(SOME_ENUM.PROGRESS).increment(1) or something similar. However, this still causes the job to be killed. Here are the snippets of code where I am attempting to report progress. The mapper:

                  protected void map(Key key, Value value, Context context) throws IOException, InterruptedException {
                  
                      //do some things
                      Optimiser optimiser = new Optimiser();
                      optimiser.optimiseFurther(<some parameters>, context);
                      //more things
                      context.write(newKey, newValue);
                  }
                  

                  Optimiser 类中的 optimiseFurther 方法:

                  the optimiseFurther method within the Optimiser class:

                  public void optimiseFurther(<Some parameters>, TaskAttemptContext context) {
                  
                      int count = 0;
                      while(something is true) {
                          //optimise
                  
                          //try to report progress
                          context.setStatus("Progressing:" + count);
                          System.out.println("Optimise Progress:" + context.getStatus());
                          context.progress();
                          count++;
                      }
                  }
                  

                  映射器的输出显示状态正在更新:

                  The output from a mapper shows the status is being updated:

                  Optimise Progress:Progressing:0
                  Optimise Progress:Progressing:1
                  Optimise Progress:Progressing:2
                  ...
                  

                  但是,在默认时间后,作业仍会被终止.我是否以错误的方式使用上下文?为了成功报告进度,我还需要在工作设置中做些什么吗?

                  However, the job is still being killed after the default amount of time. Am I using the context in the wrong way? Is there anything else I need to do in the job setup in order to report the progress successfully?

                  推荐答案

                  这个问题与 中的一个错误有关Hadoop 0.20 不会向底层框架报告对 context.setStatus()context.progress() 的调用(设置各种计数器的调用不会工作要么).有一个可用的补丁,所以更新到新版本的 Hadoop 应该可以解决这个问题.

                  This problem is to do with a bug in Hadoop 0.20 whereby calls to context.setStatus() and context.progress() are not being reported to the underlying framework (calls to set various counters are not working either). There is a patch available, so updating to a newer version of Hadoop should fix this.

                  这篇关于600 秒内无法报告状态.杀戮!在 hadoop 中报告进度的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持html5模板网!

                  上一篇:使用 Eclipse 开发、测试和调试 Hadoop map/reduce 作业 下一篇:HDFS 文件校验和

                  相关文章

                  最新文章

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

                1. <legend id='mbBfb'><style id='mbBfb'><dir id='mbBfb'><q id='mbBfb'></q></dir></style></legend>
                  <tfoot id='mbBfb'></tfoot>

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