Archives of Support Questions (Read Only)

This is an archived board for historical reference. Information and links may no longer be available or relevant
Announcements
This board is archived and read-only for historical reference. To ask a new question, please post a new topic on the appropriate active board.

Pig -x tez_local: counters.LimitExceedsException

avatar
Rising Star

Hi,

How to increase the counter limit for a pig session. -Dmapreduce.job.counters.limit is what I saw for a session. Should I use this before involing pig session in cmd? Could you provide complete command please. Many Thanks!!!

1 ACCEPTED SOLUTION

avatar
Master Guru

What's your max counter now, what does the error message say? You can try to increase tez.counters.max, Tez default is 2000, but in the latest version of Ambari it's set to 10000. Also, make sure you are using Pig-0.15 packaged in one of the latest versions of HDP. In Pig-0.14 tez_local mode was unstable. So, you can change tez.counters.max in Ambari or set it per Pig run:

pig -D tez.counters.max=10000 -x tez_local

By the way, what happens if you run your command in Tez mode, on a cluster?

View solution in original post

1 REPLY 1

avatar
Master Guru

What's your max counter now, what does the error message say? You can try to increase tez.counters.max, Tez default is 2000, but in the latest version of Ambari it's set to 10000. Also, make sure you are using Pig-0.15 packaged in one of the latest versions of HDP. In Pig-0.14 tez_local mode was unstable. So, you can change tez.counters.max in Ambari or set it per Pig run:

pig -D tez.counters.max=10000 -x tez_local

By the way, what happens if you run your command in Tez mode, on a cluster?