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

Parallel clause is not honored in local mode

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 0.14.0
    • impl
    • None

    Description

      I want to debug my custom partitioner in local mode. But it's not possible with Pig because:

      1. MR does not invoke partitioner if # of reducers is equal to 1.
        https://issues.apache.org/jira/browse/MAPREDUCE-1287
      2. Pig always forces a single reducers in local mode.
        LogicalPlanBuilder.java
             void setParallel(LogicalRelationalOperator op, Integer parallel) {
                 if( parallel != null ) {
                    op.setRequestedParallelism( pigContext.getExecType() == ExecType.LOCAL ? 1 : parallel );
                 }
             }
        

      After I change Pig to honor the parallel clause, my custom partitioner gets invoked in local mode.

      Attachments

        1. PIG-4079-1.patch
          0.6 kB
          Cheolsoo Park
        2. PIG-4079-2.patch
          0.7 kB
          Daniel Dai

        Issue Links

          Activity

            People

              cheolsoo Cheolsoo Park
              cheolsoo Cheolsoo Park
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: