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

Xuefu Zhang updated PIG-4361:
-----------------------------
       Resolution: Fixed
    Fix Version/s: 0.15.0
           Status: Resolved  (was: Patch Available)

Committed to trunk. Thanks to Liyun for the contribution.

> Fix perl script problem in TestStreaming.java
> ---------------------------------------------
>
>                 Key: PIG-4361
>                 URL: https://issues.apache.org/jira/browse/PIG-4361
>             Project: Pig
>          Issue Type: Bug
>            Reporter: liyunzhang_intel
>            Assignee: liyunzhang_intel
>             Fix For: 0.15.0
>
>         Attachments: PIG-4361.patch
>
>
> TestStreaming.java  line 495
> {code}
>   // Perl script
>           String[] script =
>               new String[] {
>                             "#!/usr/bin/perl",
>                           "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
> \".$ARGV[1].\"!: $!\";",
>                           "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't 
> open \".$ARGV[2].\"!: $!\";",
>                           "while (<STDIN>) {",
>                           "  print OUTFILE \"$_\n\";",
>                           "  print STDERR \"STDERR: $_\n\";",
>                           "  print OUTFILE2 \"A,10\n\";",
>                           "}",
>                            };
> {code}
> this script has some problem when dealing with the input arguments. made some 
> modifications:
> {code}
>   // Perl script
>           String[] script =
>               new String[] {
>                             "#!/usr/bin/perl",
>                           "open(OUTFILE, \">\", $ARGV[0]) or die \"Can't open 
> \".$ARGV[0].\"!: $!\";",
>                           "open(OUTFILE2, \">\", $ARGV[1]) or die \"Can't 
> open \".$ARGV[1].\"!: $!\";",
>                           "while (<STDIN>) {",
>                           "  print OUTFILE \"$_\n\";",
>                           "  print STDERR \"STDERR: $_\n\";",
>                           "  print OUTFILE2 \"A,10\n\";",
>                           "}",
>                            };
> {code}
> The same problem happens in line 554.



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to