Query fails with "Counters limit exceeded" error message
Condition
After upgrading to Cloudera Base on premises, you may notice that some Hive queries fail with a "Counters limit exceeded: Too many counters: 10001 max=10000" and "Counters limit exceeded: Too many counter groups: 3001 max=3000".
Cause
This issue occurs because a lower value is specified for Apache Tez task counters
(tez.counters.max
) and counter groups
(tez.counters.max.groups
), which prevents Tez from
executing the DAG. If you are running long queries, increase the value for Tez
counters and counter groups.
It is recommended that you set the value of tez.counters.max
at
the session level and also add it to the allowlist.