[ 
https://issues.apache.org/jira/browse/HADOOP-1052?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12476750
 ] 

Doug Cutting commented on HADOOP-1052:
--------------------------------------

> Could you please guide me [ ... ]

I'm sure you can find documentation on JUnit, but the short of it is that you 
implement a class that extends JUnit's TestCase whose class name starts with 
"Test", and that is placed in the src/test tree.  Then you define methods 
within that class whose names begin with "test", and call JUnit's "assert" 
methods within these.  These will then be run by "ant test".

The TestMapRed.java is a standalone MapReduce-based test, as is 
TestFileSystem.java.  Even simpler, not MR tests are TestPath.java, etc.  Tests 
based on MiniMRCluster are TestMiniMRLocalFS.

I hope that helps.

> Map tasks not getting killed
> ----------------------------
>
>                 Key: HADOOP-1052
>                 URL: https://issues.apache.org/jira/browse/HADOOP-1052
>             Project: Hadoop
>          Issue Type: Bug
>          Components: mapred
>    Affects Versions: 0.11.2
>         Environment: Redhat, 8 node cluster
>            Reporter: Srikanth Kakani
>
> -----------Steps to reproduce---------
> 1. Create and compile a map reduce application with 
> public void map(WritableComparable key,
>                     Writable value,
>                     OutputCollector output, Reporter reporter) throws 
> IOException {
>      reporter.setStatus("Started");
>     Thread.sleep(3600000);
>     report.setStatus("Should have been killed"); 
> }
> 2. Run the task with the default hadoop configuration: 
> <property>
>   <name>mapred.task.timeout</name>
>   <value>1200000</value>
>   <description>The number of milliseconds before a task will be
>   terminated if it neither reads an input, writes an output, nor
>   updates its status string.
>   </description>
> </property>
> ----------------Result------------------
> The task does not get killed, and the job is successful
> ----------------Expected Result------------------
> The map tasks get killed and the job should fail.
> -Srikanth
>   

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.

Reply via email to