[ 
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)

Reply via email to