<ahref="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduce_Compatibility_Hadoop1_Hadoop2.html">Compatibilty between Hadoop 1.x and Hadoop 2.x</a>
<ahref="http://maven.apache.org/"title="Built by Maven"class="poweredBy">
<imgalt="Built by Maven"src="./images/logos/maven-feather.png"/>
</a>
</div>
</div>
<divid="bodyColumn">
<divid="contentBox">
<!-- Licensed under the Apache License, Version 2.0 (the "License"); --><!-- you may not use this file except in compliance with the License. --><!-- You may obtain a copy of the License at --><!-- --><!-- http://www.apache.org/licenses/LICENSE-2.0 --><!-- --><!-- Unless required by applicable law or agreed to in writing, software --><!-- distributed under the License is distributed on an "AS IS" BASIS, --><!-- WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. --><!-- See the License for the specific language governing permissions and --><!-- limitations under the License. See accompanying LICENSE file. --><divclass="section">
<p>Yarn has an option parsing framework that employs parsing generic options as well as running classes.</p>
<tableborder="1"class="bodyTable">
<trclass="a">
<thalign="left">COMMAND_OPTIONS</th>
<thalign="left">Description</th></tr>
<trclass="b">
<tdalign="left">--config confdir</td>
<tdalign="left">Overwrites the default Configuration directory. Default is $<aname="HADOOP_PREFIX">HADOOP_PREFIX</a>/conf.</td></tr>
<trclass="a">
<tdalign="left">COMMAND COMMAND_OPTIONS</td>
<tdalign="left">Various commands with their options are described in the following sections. The commands have been grouped into <ahref="#User_Commands">User Commands</a> and <ahref="#Administration_Commands">Administration Commands</a>.</td></tr></table></div>
<divclass="section">
<h3><aname="User_Commands">User Commands</a></h3>
<p>Commands useful for users of a Hadoop cluster.</p>
<divclass="section">
<h4>jar<aname="jar"></a></h4>
<p>Runs a jar file. Users can bundle their Yarn code in a jar file and execute it using this command.</p>
<div>
<pre> Usage: yarn jar <jar> [mainClass] args...</pre></div></div>
<tdalign="left">Reload the queues' acls, states and scheduler specific properties. ResourceManager will reload the mapred-queues configuration file.</td></tr>
<trclass="a">
<tdalign="left">-refreshNodes</td>
<tdalign="left">Refresh the hosts information at the ResourceManager.</td></tr>
<tdalign="left">Prints the log level of the daemon running at <i>host:port</i>. This command internally connects to http://<i>host:port</i>/logLevel?log=<i>name</i></td></tr>
<tdalign="left">Sets the log level of the daemon running at <i>host:port</i>. This command internally connects to http://<i>host:port</i>/logLevel?log=<i>name</i></td></tr></table></div></div></div>