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

JobControlCompiler.getInputSizeFromLoader must handle exceptions from LoadFunc.getStatistics.

    XMLWordPrintableJSON

Details

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

    Description

      PIG-2573 made it possible for JobControlCompiler to get input size from LoadFuncs, but in some cases (i.e. InterStorage), getStatistics throws an exception:

      Caused by: java.lang.UnsupportedOperationException
              at org.apache.pig.impl.io.InterStorage.getStatistics(InterStorage.java:189)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getInputSizeFromLoader(JobControlCompiler.java:839)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getInputSize(JobControlCompiler.java:799)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.estimateNumberOfReducers(JobControlCompiler.java:777)
              at org.apache.pig.backend.hadoop.executionengine.mapReduceLayer.JobControlCompiler.getJob(JobControlCompiler.java:599)
      

      Attachments

        1. pig-2616.1.patch
          1 kB
          William W. Graham Jr
        2. pig-2616.2.patch
          2 kB
          William W. Graham Jr
        3. PIG-2616.3.patch
          0.5 kB
          William W. Graham Jr

        Activity

          People

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

            Dates

              Created:
              Updated:
              Resolved: