pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Julien Le Dem (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (PIG-3801) Auto local mode does not call storeSchema
Date Mon, 10 Mar 2014 22:29:47 GMT

    [ https://issues.apache.org/jira/browse/PIG-3801?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13926350#comment-13926350
] 

Julien Le Dem commented on PIG-3801:
------------------------------------

I would use properties.getProperty(MAPREDUCE_FRAMEWORK_NAME).equals(LOCAL) to decide if it's
running locally, but otherwise this looks good to me.

> Auto local mode does not call storeSchema
> -----------------------------------------
>
>                 Key: PIG-3801
>                 URL: https://issues.apache.org/jira/browse/PIG-3801
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Aniket Mokashi
>            Assignee: Aniket Mokashi
>         Attachments: PIG-3801.patch
>
>
> 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.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message