Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3002

Pig client should handle CountersExceededException

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.12.0
    • None

    Description

      Running a pig job that uses more than 120 counters will succeed, but a grunt exception will occur when trying to output counter info to the console. This exception should be caught and handled with friendly messaging:

      org.apache.pig.backend.executionengine.ExecException: ERROR 2043: Unexpected error during execution.
              at org.apache.pig.PigServer.launchPlan(PigServer.java:1275)
              at org.apache.pig.PigServer.executeCompiledLogicalPlan(PigServer.java:1249)
              at org.apache.pig.PigServer.execute(PigServer.java:1239)
              at org.apache.pig.PigServer.executeBatch(PigServer.java:333)
              at org.apache.pig.tools.grunt.GruntParser.executeBatch(GruntParser.java:136)
              at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:197)
              at org.apache.pig.tools.grunt.GruntParser.parseStopOnError(GruntParser.java:169)
              at org.apache.pig.tools.grunt.Grunt.exec(Grunt.java:84)
              at org.apache.pig.Main.run(Main.java:604)
              at org.apache.pig.Main.main(Main.java:154)
              at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
              at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:39)
              at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:25)
              at java.lang.reflect.Method.invoke(Method.java:597)
              at org.apache.hadoop.util.RunJar.main(RunJar.java:186)
      Caused by: org.apache.hadoop.mapred.Counters$CountersExceededException: Error: Exceeded limits on number of counters - Counters=120 Limit=120
              at org.apache.hadoop.mapred.Counters$Group.getCounterForName(Counters.java:312)
              at org.apache.hadoop.mapred.Counters.findCounter(Counters.java:431)
              at org.apache.hadoop.mapred.Counters.getCounter(Counters.java:495)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.computeWarningAggregate(MapReduceLauncher.java:707)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.MapReduceLauncher.launchPig(MapReduceLauncher.java:442)
              at org.apache.pig.PigServer.launchPlan(PigServer.java:1264)
      

      Attachments

        1. PIG-3002.2.patch
          3 kB
          William W. Graham Jr
        2. PIG-3002.patch
          4 kB
          Jarek Jarcec Cecho

        Activity

          People

            jarcec Jarek Jarcec Cecho
            billgraham William W. Graham Jr
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: