title: log.index (No such file or directory) and Task process exit with nonzero status of 126
body: <p>I'm stuck with this problem. I'm using Hadoop (CDHu3). I have tried every possible solution, I found by Googling.</p>
  <p>This is the issue:</p>
  <p>When I ran Hadoop example &quot;wordcount&quot;, the tasktracker's log in one slave node gave following errors:</p>
  <blockquote>
  <p>1.WARN org.apache.hadoop.mapred.DefaultTaskController: Task wrapper stderr: bash:
  /var/tmp/mapred/local/ttprivate/taskTracker/hdfs/jobcache/job_201203131751_0003/attempt_201203131751_0003_m_000006_0/taskjvm.sh:
  Permission denied</p>
  <p>2.WARN org.apache.hadoop.mapred.TaskRunner: attempt_201203131751_0003_m_000006_0 : Child Error
  java.io.IOException: Task process exit with nonzero status of 126.</p>
  <p>3.WARN org.apache.hadoop.mapred.TaskLog: Failed to retrieve stdout log for task: attempt_201203131751_0003_m_000003_0
  java.io.FileNotFoundException:
  /usr/lib/hadoop-0.20/logs/userlogs/job_201203131751_0003/attempt_201203131751_0003_m_000003_0/log.index
  (No such file or directory)</p>
  </blockquote>
  <p>I could not find similar issues in Google. I got some posts seem a little relevant and which suggest:</p>
  <ol>
  <li>The <code>ulimit</code> of Hadoop user: My <code>ulimit</code> is set large enough for this bundled example</li>
  <li>The memory used by JVM: My JVM uses only Xmx200m, too small to exceed the limit of my machine</li>
  <li>The privilege of the mapred.local.dir and logs dir: I set them by &quot;chmod 777&quot;</li>
  <li>The disk space is full: There is enough space for Hadoop in my log directory and mapred.local.dir.</li>
  </ol>
  <p>How can I solve this problem?</p>