hadoop-pig-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Ankur (JIRA)" <j...@apache.org>
Subject [jira] Commented: (PIG-754) Bugs with load and store and filenames passed with -param containing periods
Date Thu, 25 Jun 2009 12:17:07 GMT

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

Ankur commented on PIG-754:
---------------------------

Verified in the latest code that fixing PIG-564 does resolve this issue. This should be marked
as duplicate of PIG-564 and closed

> Bugs with load and store and filenames passed with -param containing periods
> ----------------------------------------------------------------------------
>
>                 Key: PIG-754
>                 URL: https://issues.apache.org/jira/browse/PIG-754
>             Project: Pig
>          Issue Type: Bug
>            Reporter: David Ciemiewicz
>
> This one drove me batty.
> I have two files file and file.right.
> file:
> {code}
> WRONG!!!! 
> This is file, not file.right.
> {code}
> file.right:
> {code}
> RIGHT!!!!
> This is file.right..
> {code}
> infile.pig:
> {code}
> A = load '$infile' using PigStorage();
> dump A;
> {code}
> When I pass in file.right as the infile parameter value, the wrong file is read:
> {code}
> -bash-3.00$ pig -exectype local -param infile=file.right infile.pig
> USING: /grid/0/gs/pig/current
> 2009-04-05 23:18:36,291 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- 100% complete!
> 2009-04-05 23:18:36,292 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- Success!!
> (WRONG!!!! )
> (This is file, not file.right.)
> {code}
> However, if I pass in infile as ./file.right, the script magically works.
> {code}
> -bash-3.00$ pig -exectype local -param infile=./file.right infile.pig
> USING: /grid/0/gs/pig/current
> 2009-04-05 23:20:46,735 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- 100% complete!
> 2009-04-05 23:20:46,736 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- Success!!
> (RIGHT!!!!)
> (This is file.right.)
> {code}
> I do not have this problem if I use the file name with a period in the script itself:
> infile2.pig
> {code}
> A = load 'file.right' using PigStorage();
> dump A;
> {code}
> {code}
> -bash-3.00$ pig -exectype local infile2.pig
> USING: /grid/0/gs/pig/current
> 2009-04-05 23:22:47,022 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- 100% complete!
> 2009-04-05 23:22:47,023 [main] INFO  org.apache.pig.backend.local.executionengine.LocalPigLauncher
- Success!!
> (RIGHT!!!!)
> (This is file.right.)
> {code}
> I also experience similar problems when I try to pass in param outfile in a store statement.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message