You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Dmitriy V. Ryaboy (Commented) (JIRA)" <ji...@apache.org> on 2012/01/02 02:31:30 UTC

[jira] [Commented] (PIG-2453) Fetching schema can be very slow for multi-thousand LOADs

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

Dmitriy V. Ryaboy commented on PIG-2453:
----------------------------------------

One proposed solution is to only check for .pig_schema files on a per-directory level instead of per-file. We can also probably do fewer NN calls by caching all found schema files and not checking metaFilePath.exists() redundantly.
                
> Fetching schema can be very slow for multi-thousand LOADs
> ---------------------------------------------------------
>
>                 Key: PIG-2453
>                 URL: https://issues.apache.org/jira/browse/PIG-2453
>             Project: Pig
>          Issue Type: Bug
>            Reporter: Dmitriy V. Ryaboy
>            Assignee: Dmitriy V. Ryaboy
>
> When a user tries to load resources with thousands of files using PigStorage, we spend an inordinate amount of time looking for schema files. This is because we check for a schema file per loaded file.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira