You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@pig.apache.org by "Vinit Parakh (JIRA)" <ji...@apache.org> on 2017/03/22 19:50:41 UTC

[jira] [Resolved] (PIG-5193) Pig Streaming does not untar cached files

     [ https://issues.apache.org/jira/browse/PIG-5193?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Vinit Parakh resolved PIG-5193.
-------------------------------
    Resolution: Fixed

> Pig Streaming does not untar cached files
> -----------------------------------------
>
>                 Key: PIG-5193
>                 URL: https://issues.apache.org/jira/browse/PIG-5193
>             Project: Pig
>          Issue Type: Bug
>    Affects Versions: 0.12.0
>            Reporter: Vinit Parakh
>
> Pig Streaming does not seem to untar files passed through cache(). Is this an expected behavior. I 
> This is my code : 
> DEFINE streamCLF1 `/usr/local/bin/python2.7 mapper2.py $OUTPUT '$DEVICE1' $LATEST_WEEKLY_PROFILE_DT` input(stdin using PigStreaming('\u0001')) ship('mapper2.py') cache('$OUTPUT/models/models.tar.gz#models');
> In my python udf, when I print the contents of the current directory, I can see the jar file. But I get the following error when trying to access the symlink(models). 
> Traceback (most recent call last):
>   File "mapper2.py", line 7, in <module>
>     sys.stderr.write('****' + repr(os.listdir('./models'))+'\n')
> OSError: [Errno 20] Not a directory: './models'



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)