title: Can I set pig.temp.dir to /user/USERNAME/tmp/pig?
body: <p>Hive can be configured with </p>
  
  <pre><code>hive.exec.scratchdir=/user/${user.name}/tmp/hive
  </code></pre>
  
  <p>Can I do something similar with Pig?  I have tried modifying the pig.properties file, but nothing seems to work.</p>
  
  <pre><code>pig.temp.dir=/user/${user.name}/tmp/pig &lt;- Doesn't work
  pig.temp.dir=/user/`whoami`/tmp/pig     &lt;- Doesn't work
  pig.temp.dir=/user/${user}/tmp/pig      &lt;- Doesn't work
  pig.temp.dir=/user/${username}/tmp/pig  &lt;- Doesn't work
  </code></pre>
  
  <p>I could replace the pig command with an alias, but I am hoping to have the change enshrined in the configuration file.</p>
  
  <pre><code>pig -Dpig.temp.dir=/user/`whoami`/tmp/pig
  </code></pre>
  
  <p>Thanks!</p>
  
  <p>UPDATE: We decided to use /tmp/ for the production system.  The reason this was an issue at all is because we are running MapR which seems to try to put the temp directories into the user directory, and succeeds with Hive, but not with Pig.</p>