Uploaded image for project: 'Pig'
  1. Pig
  2. PIG-3446 Umbrella jira for Pig on Tez
  3. PIG-3893

Hash join followed by replicated join fails in Tez mode

    Details

    • Type: Sub-task
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: tez-branch
    • Fix Version/s: tez-branch
    • Component/s: tez
    • Labels:
      None

      Description

      To reproduce the issue, run this query-

      x = LOAD 'foo' AS (x:int, y:chararray);
      y = LOAD 'bar' AS (x:int, y:chararray);
      a = JOIN x BY x, y BY x;
      z = LOAD 'zoo' AS (x:int, y:chararray);
      b = JOIN a BY x::x, z BY x USING 'replicated';
      DUMP b;
      

      This fails with the following error-

                          : Container released by application, AttemptID:attempt_1397437587062_0071_1_03_000000_3 Info:Error: org.apache.pig.backend.executionengine.ExecException: ERROR 0: java.lang.ClassCastException: org.apache.tez.runtime.library.common.readers.ShuffledUnorderedKVReader cannot be cast to org.apache.tez.runtime.library.api.KeyValuesReader
                          : at org.apache.pig.backend.hadoop.executionengine.tez.POShuffleTezLoad.attachInputs(POShuffleTezLoad.java:108)
                          : at org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor.initializeInputs(PigProcessor.java:202)
                          : at org.apache.pig.backend.hadoop.executionengine.tez.PigProcessor.run(PigProcessor.java:141)
                          : at org.apache.tez.runtime.LogicalIOProcessorRuntimeTask.run(LogicalIOProcessorRuntimeTask.java:307)
                          : at org.apache.hadoop.mapred.YarnTezDagChild$5.run(YarnTezDagChild.java:562)
                          : at java.security.AccessController.doPrivileged(Native Method)
                          : at javax.security.auth.Subject.doAs(Subject.java:415)
                          : at org.apache.hadoop.security.UserGroupInformation.doAs(UserGroupInformation.java:1548)
                          : at org.apache.hadoop.mapred.YarnTezDagChild.main(YarnTezDagChild.java:551)
                          : Caused by: java.lang.ClassCastException: org.apache.tez.runtime.library.common.readers.ShuffledUnorderedKVReader cannot be cast to org.apache.tez.runtime.library.api.KeyValuesReader
                          : at org.apache.pig.backend.hadoop.executionengine.tez.POShuffleTezLoad.attachInputs(POShuffleTezLoad.java:89)
                          : ... 8 more
      

      The problem is that POLR that belongs to FRJoin is attached to POShuffleTezLoad since replicated join runs in the same vertex as in hash join.

        Attachments

          Activity

            People

            • Assignee:
              cheolsoo Cheolsoo Park
              Reporter:
              cheolsoo Cheolsoo Park
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: