org.apache.hadoop.mapreduce.counters.LimitExceededException:

org.apache.hadoop.mapreduce.counters.LimitExceededException: Too many counters: 121 max=120(org.apache.hadoop.mapreduce.counters.LimitExceededException:计数器太多:121 max=120)
本文介绍了org.apache.hadoop.mapreduce.counters.LimitExceededException:计数器太多:121 max=120的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着跟版网的小编来一起学习吧!

问题描述

限时送ChatGPT账号..

我正在运行一个有少量计数器和多输出的 hadoop 作业(来自 oozie).

I'm running a hadoop job ( from oozie ) that has few counters, and multioutput.

我收到如下错误:org.apache.hadoop.mapreduce.counters.LimitExceededException:计数器太多:121 max=120

I get error like: org.apache.hadoop.mapreduce.counters.LimitExceededException: Too many counters: 121 max=120

然后我删除了所有具有计数器的代码,并将 mout.setCountersEnabled 设置为 false.并且还在 hadoop 配置中将最大计数器设置为 240.

Then I removed all the code that has counters, and also set mout.setCountersEnabled to false. And also set the max counters to 240 in hadoop config.

现在我仍然遇到同样的错误org.apache.hadoop.mapreduce.counters.LimitExceededException:计数器太多:241 max=240

Now I still get the same error org.apache.hadoop.mapreduce.counters.LimitExceededException: Too many counters: 241 max=240

我该如何解决这个问题?是否有任何隐藏计数器存在的可能性?我怎样才能弄清楚之前有哪些计数器超过 240 ?(在我可以打印任何东西之前,这个过程似乎已经停止了?)

How can I solve this problem? Is there any possibility that any hidden counters exists? How can I make clear what counters there before exceeds 240 ? (The process looks like stopped before I can print anything? )

谢谢,新松

推荐答案

我用下面的方法解决了这个问题:vi $HADOOP_HOME/conf/mapred-site.xml

I solved the problem use the following method: vi $HADOOP_HOME/conf/mapred-site.xml

<property>
    <name>mapreduce.job.counters.limit</name>
    <!--<value>120</value>-->
   <value>20000</value>
    <description>Limit on the number of counters allowed per job. The default value is 200.</description>
</property>

这篇关于org.apache.hadoop.mapreduce.counters.LimitExceededException:计数器太多:121 max=120的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持跟版网!

本站部分内容来源互联网,如果有图片或者内容侵犯了您的权益,请联系我们,我们会在确认后第一时间进行删除!

相关文档推荐

Sending a keyboard event from java to any application (on-screen-keyboard)(将键盘事件从 java 发送到任何应用程序(屏幕键盘))
How to make JComboBox selected item not changed when scrolling through its popuplist using keyboard(使用键盘滚动其弹出列表时如何使 JComboBox 所选项目不更改)
Capturing keystrokes without focus(在没有焦点的情况下捕获击键)
How can I position a layout right above the android on-screen keyboard?(如何将布局放置在 android 屏幕键盘的正上方?)
How to check for key being held down on startup in Java(如何检查在Java中启动时按住的键)
Android - Get keyboard key press(Android - 获取键盘按键)