title: Get yarn container log directory in mapper/reducer
body: <p>Is there an API to get the yarn log directory location in my mapper/reducer method implementation? So for example if I have the following config</p>
  
  <pre><code>yarn.nodemanager.log-dirs=/mnt/yarn/log
  </code></pre>
  
  <p>I want to access the subfolder for the container log that's written to this directory e.g.,</p>
  
  <pre><code>/mnt/yarn/log/application_1479833596065_1010/container_e06_1479833596065_1010_01_000003
  </code></pre>
  
  <p>Thanks.</p>