Pig
  1. Pig
  2. PIG-3801

Auto local mode does not call storeSchema

    Details

    • Type: Bug Bug
    • Status: Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 0.13.0
    • Component/s: None
    • Labels:
      None

      Description

      https://github.com/apache/pig/blob/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java#L481

      Pig code explicitly runs PigOutputCommitter.storeCleanup for local jobs. We also need to add this for auto-local jobs.

      To repro this problem, run-
      > a = load '2.txt' as (a0:chararray, a1:int);
      > store a into 'a' using PigStorage(',','-schema');

      This creates .pig_schema file in pig -x local mode, but does not create .pig_schema file in auto-local mode.

      1. PIG-3801.patch
        6 kB
        Aniket Mokashi

        Activity

        Aniket Mokashi created issue -
        Aniket Mokashi made changes -
        Field Original Value New Value
        Attachment PIG-3801.patch [ 12633503 ]
        Aniket Mokashi made changes -
        Description https://github.com/apache/pig/blob/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java#L481

        Pig code explicitly runs PigOutputCommitter.storeCleanup for local jobs. We also need to add this for auto-local jobs.
        https://github.com/apache/pig/blob/trunk/src/org/apache/pig/backend/hadoop/executionengine/mapReduceLayer/MapReduceLauncher.java#L481

        Pig code explicitly runs PigOutputCommitter.storeCleanup for local jobs. We also need to add this for auto-local jobs.

        To repro this problem, run-
        > a = load '2.txt' as (a0:chararray, a1:int);
        > store a into 'a' using PigStorage(',','-schema');

        This creates .pig_schema file in pig -x local mode, but does not create .pig_schema file in auto-local mode.
        Aniket Mokashi made changes -
        Status Open [ 1 ] Patch Available [ 10002 ]
        Aniket Mokashi made changes -
        Status Patch Available [ 10002 ] Resolved [ 5 ]
        Resolution Fixed [ 1 ]
        Aniket Mokashi made changes -
        Fix Version/s 0.13.0 [ 12324971 ]
        Daniel Dai made changes -
        Status Resolved [ 5 ] Closed [ 6 ]

          People

          • Assignee:
            Aniket Mokashi
            Reporter:
            Aniket Mokashi
          • Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Development