set applicationTags property in YARN for jobs submitted by CLI
<p>I'd like to track some related applications in YARN. They're submitted via command line, e.g.</p>

<pre><code>yarn jar hadoop-mapreduce-examples.jar pi 10 100
</code></pre>

<p>Python has a really <a href="http://python-client-for-hadoop-yarn-api.readthedocs.org/en/latest/" rel="nofollow" title="easy-to-use YARN client">easy-to-use YARN client</a> that returns the following:</p>

<pre><code>finalStatus = SUCCEEDED
id = application_1458083392566_0929
state = FINISHED
name = QuasiMonteCarlo
applicationType = MAPREDUCE
user = awoolford
applicationTags = 
[...etc...]
</code></pre>

<p>I notice there's an <code>applicationTags</code> property. This would be an ideal way to track groups of related applications. I tried setting it via <code>HADOOP_CLIENT_OPTS</code>, e.g.</p>

<pre><code>HADOOP_CLIENT_OPTS="-DapplicationTags=batch123,chunk62" hadoop jar [...etc...]
</code></pre>

<p>... but the <code>applicationTags</code> string didn't show up in YARN when I tried to retrieve them via the Python client.</p>

<p>Q) How can I submit a YARN job and populate the <code>applicationTags</code> property from the command line?</p>