Issue Details (XML | Word | Printable)

Key: HADOOP-3379
Type: Improvement Improvement
Status: Closed Closed
Resolution: Fixed
Priority: Blocker Blocker
Assignee: Amareshwari Sriramadasu
Reporter: Arun C Murthy
Votes: 0
Watchers: 1
Operations

If you were logged in you would be able to see more operations.
Hadoop Common

Document the "stream.non.zero.exit.status.is.failure" knob for streaming

Created: 13/May/08 03:16 PM   Updated: 08/Jul/09 05:05 PM
Return to search
Component/s: documentation
Affects Version/s: 0.17.0
Fix Version/s: 0.18.0

Time Tracking:
Not Specified

File Attachments:
  Size
Text File Licensed for inclusion in ASF works patch-3379.txt 2008-06-10 08:54 AM Amareshwari Sriramadasu 3 kB

Hadoop Flags: Incompatible change, Reviewed
Release Note: Set default value for configuration property "stream.non.zero.exit.status.is.failure" to be "true".
Resolution Date: 11/Jun/08 09:19 AM


 Description  « Hide
HADOOP-2057 added a useful feature: "stream.non.zero.exit.status.is.failure" to optionally treat non-zero exit code from streaming apps as fatal. We should document this on http://hadoop.apache.org/core/docs/current/streaming.html.

 All   Comments   Work Log   Change History   Subversion Commits      Sort Order: Ascending order - Click to sort in descending order
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.

Amareshwari Sriramadasu added a comment - 14/May/08 05:00 AM

I wonder if we should just make streaming always fail the task for non-zero exit codes.

+1


Rick Cox added a comment - 26/May/08 04:36 PM
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.


Amareshwari Sriramadasu added a comment - 10/Jun/08 08:54 AM
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.

Devaraj Das added a comment - 10/Jun/08 10:46 AM
I think you should document the fact that people have to wrap the command in some cases as Rick pointed out.

Amareshwari Sriramadasu added a comment - 10/Jun/08 11:20 AM
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?
Thoughts?

I think making the configuration property stream.non.zero.exit.is.failure value as true makes sense.


Hadoop QA added a comment - 10/Jun/08 01:49 PM
-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.
Please justify why no tests are needed for this patch.

+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/
Findbugs warnings: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2630/artifact/trunk/build/test/findbugs/newPatchFindbugsWarnings.html
Checkstyle results: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2630/artifact/trunk/build/test/checkstyle-errors.html
Console output: http://hudson.zones.apache.org/hudson/job/Hadoop-Patch/2630/console

This message is automatically generated.


Owen O'Malley added a comment - 11/Jun/08 06:27 AM
+1

Devaraj Das added a comment - 11/Jun/08 09:19 AM
I just committed this. Thanks, Amareshwari!

Hudson added a comment - 16/Jun/08 10:38 PM