It will restart the map or reduce task again on some other node manager and only if the task fails more than 4 times then it will kill the job. The default number of maximum attempts for map tasks and reduce tasks can be configured with below properties in mapred-site.xml file.
mapreduce.map.maxattempts
mapreduce.reduce.maxattempts
The default value for the above two properties is 4 only.