[
https://issues.apache.org/jira/browse/PIG-2760?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13396016#comment-13396016
]
Cheolsoo Park commented on PIG-2760:
------------------------------------
This is a regression of PIG-2623:
{code}
- File f = new File(path);
+ File f = FileLocalizer.fetchFile(pigContext.getProperties(),
path).file;
{code}
where fetchFile() converts a relative path to absolute path.
In fact, converting a relative path to an absolute path isn't an issue, but the
leading "/" makes registered files not found. That is fixed at PIG-2745.
Thanks!
> resources added with a relative path are added to the JobXXXX jar file under
> their absolute path
> ------------------------------------------------------------------------------------------------
>
> Key: PIG-2760
> URL: https://issues.apache.org/jira/browse/PIG-2760
> Project: Pig
> Issue Type: Bug
> Affects Versions: 0.10.0
> Reporter: Mathias Herberts
>
> When registering a local resource using a relative path, the resource is
> added to the JobXXXX jar under its absolute path.
> If a pig script contains the following:
> REGISTER etc/foo;
> and is executed from a directory /PATH/TO/DIR, the JobXXXX jar file will
> contain the following:
> /PATH/TO/DIR/etc/foo
> instead of
> etc/foo
> which was the previous behavior
--
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