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

Nandor Kollar commented on PIG-4976:
------------------------------------

When I applied PIG-4976-2.patch I had the same problem as [~knoguchi], the test 
case hung. I noticed, that the test passed when I apply first PIG-4976-1.patch 
then PIG-4976-3.patch. I also noticed that when I apply just the first patch, 
the test hung, but not because of syntax error in Perl script, but because of 
NullPointerException while trying to close the OutputHandler:
Exception in thread "Thread-31" java.lang.NullPointerException
        at 
org.apache.pig.impl.streaming.OutputHandler.close(OutputHandler.java:178)
        at 
org.apache.pig.impl.streaming.ExecutableManager.killProcess(ExecutableManager.java:188)
        at 
org.apache.pig.impl.streaming.ExecutableManager.access$200(ExecutableManager.java:52)
        at 
org.apache.pig.impl.streaming.ExecutableManager$ProcessInputThread.run(ExecutableManager.java:372)
2016-09-16 13:53:03,784 ERROR [Thread-31] streaming.ExecutableManager 
(ExecutableManager.java:run(369)) - Error while reading from POStream and 
passing it to the streaming process
java.io.FileNotFoundException: foo (No such file or directory)

It looks like 'foo' should exist before executing the test? For me, it looks 
like we have two similar issues here (two test case): syntax error in script 
and writing to a file that doesn't exist.

> streaming job with store clause stuck if the script fail
> --------------------------------------------------------
>
>                 Key: PIG-4976
>                 URL: https://issues.apache.org/jira/browse/PIG-4976
>             Project: Pig
>          Issue Type: Bug
>          Components: impl
>            Reporter: Daniel Dai
>            Assignee: Daniel Dai
>             Fix For: 0.17.0
>
>         Attachments: PIG-4976-1.patch, PIG-4976-2.patch, PIG-4976-3.patch
>
>
> When investigating PIG-4972, I also notice Pig job stuck when the perl script 
> have syntax error. This happens if we have output clause in stream 
> specification (means use a file as staging). The bug exist in both Tez and 
> MR, and it is not a regression.
> Here is an example:
> {code}
> define CMD `perl kk.pl` output('foo') ship('kk.pl');
> A = load 'studenttab10k' as (name, age, gpa);
> B = foreach A generate name;
> C = stream B through CMD;
> store C into 'ooo';
> {code}
> kk.pl is any perl script contain a syntax error.



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

Reply via email to