It would be good to have an automated test for this as well. I understand that this will add 10+ minutes to the system tests (effectively almost doubling the run time). Maybe, we can have a separate ant target that runs the shorter running system tests, for use by developers before committing changes.

Thejas M Nair
added a comment - 03/Jul/13 23:52 It would be good to have an automated test for this as well. I understand that this will add 10+ minutes to the system tests (effectively almost doubling the run time). Maybe, we can have a separate ant target that runs the shorter running system tests, for use by developers before committing changes.

Yes, you can set it into your Job configuration object in code. If
your driver uses the Tool framework, then you can also pass a
-Dmapred.task.timeout=value CLI argument when invoking your program.
AND
'mapred.task.timeout' is deprecated configuration. You can use 'mapreduce.task.timeout' property to do the same.
You could set this configuration while submitting the Job using org.apache.hadoop.conf.Configuration.setLong(String name, long value) API from conf or JobConf.

Eugene Koifman
added a comment - 23/Jul/13 04:32 Couple of suggestions from Hadoop user list on setting timeout programmatically:
Yes, you can set it into your Job configuration object in code. If
your driver uses the Tool framework, then you can also pass a
-Dmapred.task.timeout=value CLI argument when invoking your program.
AND
'mapred.task.timeout' is deprecated configuration. You can use 'mapreduce.task.timeout' property to do the same.
You could set this configuration while submitting the Job using org.apache.hadoop.conf.Configuration.setLong(String name, long value) API from conf or JobConf.

Alan Gates
added a comment - 27/Jul/13 03:26 I'm not sure I'm running the tests properly. When I run the new test TestHeartbeat_2 it fails with:
./test_harness.pl::TestDriverCurl::checkResStatusCode INFO Check failed: status_code 200 expected, test returned <400>
Do I need to do something to set it up properly?