|
I've generalized this slightly to support status updates by the same mechanism. There is a (configurable) prefix that allows you to access the reporter via stderr. To increment a counter:
reporter:counter:<group>,<counter>,<amount> And to set the status: reporter:status:<message> Updated to apply to trunk following changes in
+1 overall. Here are the results of testing the latest attachment
http://issues.apache.org/jira/secure/attachment/12383210/hadoop-1328-v5.patch against trunk revision 662813. +1 @author. The patch does not contain any @author tags. +1 tests included. The patch appears to include 9 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/2549/testReport/ This message is automatically generated. I just committed this. Thanks, Tom!
|
|||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
counter:<group>,<counter>,<amount>
For example, in python you might write
sys.stderr.write("counter:counters,linecount,1\n")