Peon logs are lost on task failure

Hi Guys,

I am not able to figure out why my tasks failed because druid removes the task directory once the task fails. Also, the task logs are not copied to hdfs. For successful tasks, the task logs are copied to hdfs.

From middle manager logs