|
[
Permlink
| « Hide
]
Owen O'Malley added a comment - 14/May/08 04:45 AM
I wonder if we should just make streaming always fail the task for non-zero exit codes.
+1 It seems reasonable for the default to be true, as I think the discussion has shown users expect it.
Making it non-optional would remove the ability to run 'grep' and similar commands without a wrapper (assuming the pattern is not in every input split). Perhaps that's ok; we could just document a hint to wrap such commands in a shell script that always exits 0. Here is patch doing the following:
1. Makes default value for stream.non.zero.exit.is.failure as true . Thus by default, streaming tasks exiting with non-zero exit status are considered to be failed tasks. 2. Adds the documentation to streaming.xml. I think you should document the fact that people have to wrap the command in some cases as Rick pointed out.
Actually the patch uploaded has the configuration property stream.non.zero.exit.is.failure value as true.
If we want 'streaming always fail the task for non-zero exit codes', we can just remove the configuration property and document to wrap commands as Rick pointed. But doesn't this make applications incompatible from 0.17 to 0.18 ? Shouldnt we deprecate the configuration property for 0.18? I think making the configuration property stream.non.zero.exit.is.failure value as true makes sense. -1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383731/patch-3379.txt against trunk revision 666056. +1 @author. The patch does not contain any @author tags. -1 tests included. The patch doesn't appear to include any new or modified tests. +1 javadoc. The javadoc tool did not generate any warning messages. +1 javac. The applied patch does not increase the total number of javac compiler warnings. +1 findbugs. The patch does not introduce any new Findbugs warnings. +1 release audit. The applied patch does not increase the total number of release audit warnings. +1 core tests. The patch passed core unit tests. +1 contrib tests. The patch passed contrib unit tests. Test results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2630/testReport/ This message is automatically generated. I just committed this. Thanks, Amareshwari!
Integrated in Hadoop-trunk #520 (See http://hudson.zones.apache.org/hudson/job/Hadoop-trunk/520/
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||