Pig
  1. Pig
  2. PIG-3960

Compile fail against Hadoop 2.4.0 after PIG-3913

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0, 0.14.0
    • Component/s: impl
    • Labels:
      None
    • Hadoop Flags:
      Reviewed

      Description

      Error message:

          [javac] /grid/0/workspace/champlain-hdp-compile/bigtop/build/pig/rpm/BUILD/pig-0.13.0.2.2.0.0/shims/src/hadoop23/org/apache/pig/backend/hadoop/executionengine/shims/HadoopShims.java:122: exception java.lang.InterruptedException is never thrown in body of corresponding try statement
          [javac]         } catch (InterruptedException ir) {
          [javac]           ^
          [javac] /grid/0/workspace/champlain-hdp-compile/bigtop/build/pig/rpm/BUILD/pig-0.13.0.2.2.0.0/shims/src/hadoop23/org/apache/pig/backend/hadoop/executionengine/shims/HadoopShims.java:199: exception java.lang.InterruptedException is never thrown in body of corresponding try statement
          [javac]         } catch (InterruptedException ir) {
          [javac]           ^
          [javac] /grid/0/workspace/champlain-hdp-compile/bigtop/build/pig/rpm/BUILD/pig-0.13.0.2.2.0.0/shims/src/hadoop23/org/apache/pig/backend/hadoop/executionengine/shims/HadoopShims.java:210: exception java.lang.InterruptedException is never thrown in body of corresponding try statement
          [javac]         } catch (InterruptedException ir) {
      

      This is due to the method signature change of Hadoop, such as Job.getCounters(), no longer throw InterruptedException.

        Activity

        Hide
        Daniel Dai added a comment -

        Trivial fix.

        Show
        Daniel Dai added a comment - Trivial fix.
        Hide
        Rohini Palaniswamy added a comment -

        +1

        Show
        Rohini Palaniswamy added a comment - +1
        Hide
        Daniel Dai added a comment -

        Patch committed to trunk and 0.13 branch. Thanks Rohini for review!

        Show
        Daniel Dai added a comment - Patch committed to trunk and 0.13 branch. Thanks Rohini for review!

          People

          • Assignee:
            Daniel Dai
            Reporter:
            Daniel Dai
          • Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development