blob: f23085c022f86842637ab2aca0c996583cf41317 [file] [log] [blame]
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<!--
| Generated by Apache Maven Doxia at 2021-06-15
| Rendered using Apache Maven Stylus Skin 1.5
-->
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>Apache Hadoop 3.3.1 &#x2013; YARN Commands</title>
<style type="text/css" media="all">
@import url("./css/maven-base.css");
@import url("./css/maven-theme.css");
@import url("./css/site.css");
</style>
<link rel="stylesheet" href="./css/print.css" type="text/css" media="print" />
<meta name="Date-Revision-yyyymmdd" content="20210615" />
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
</head>
<body class="composite">
<div id="banner">
<a href="http://hadoop.apache.org/" id="bannerLeft">
<img src="http://hadoop.apache.org/images/hadoop-logo.jpg" alt="" />
</a>
<a href="http://www.apache.org/" id="bannerRight">
<img src="http://www.apache.org/images/asf_logo_wide.png" alt="" />
</a>
<div class="clear">
<hr/>
</div>
</div>
<div id="breadcrumbs">
<div class="xleft">
<a href="http://www.apache.org/" class="externalLink">Apache</a>
&gt;
<a href="http://hadoop.apache.org/" class="externalLink">Hadoop</a>
&gt;
<a href="../index.html">Apache Hadoop YARN</a>
&gt;
<a href="index.html">Apache Hadoop 3.3.1</a>
&gt;
YARN Commands
</div>
<div class="xright"> <a href="http://wiki.apache.org/hadoop" class="externalLink">Wiki</a>
|
<a href="https://gitbox.apache.org/repos/asf/hadoop.git" class="externalLink">git</a>
|
<a href="http://hadoop.apache.org/" class="externalLink">Apache Hadoop</a>
&nbsp;| Last Published: 2021-06-15
&nbsp;| Version: 3.3.1
</div>
<div class="clear">
<hr/>
</div>
</div>
<div id="leftColumn">
<div id="navcolumn">
<h5>General</h5>
<ul>
<li class="none">
<a href="../../index.html">Overview</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/SingleCluster.html">Single Node Setup</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/ClusterSetup.html">Cluster Setup</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/CommandsManual.html">Commands Reference</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/FileSystemShell.html">FileSystem Shell</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/Compatibility.html">Compatibility Specification</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/DownstreamDev.html">Downstream Developer's Guide</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/AdminCompatibilityGuide.html">Admin Compatibility Guide</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/InterfaceClassification.html">Interface Classification</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/filesystem/index.html">FileSystem Specification</a>
</li>
</ul>
<h5>Common</h5>
<ul>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/CLIMiniCluster.html">CLI Mini Cluster</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/FairCallQueue.html">Fair Call Queue</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/NativeLibraries.html">Native Libraries</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/Superusers.html">Proxy User</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/RackAwareness.html">Rack Awareness</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/SecureMode.html">Secure Mode</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/ServiceLevelAuth.html">Service Level Authorization</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/HttpAuthentication.html">HTTP Authentication</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/CredentialProviderAPI.html">Credential Provider API</a>
</li>
<li class="none">
<a href="../../hadoop-kms/index.html">Hadoop KMS</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/Tracing.html">Tracing</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/UnixShellGuide.html">Unix Shell Guide</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/registry/index.html">Registry</a>
</li>
</ul>
<h5>HDFS</h5>
<ul>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsDesign.html">Architecture</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsUserGuide.html">User Guide</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSCommands.html">Commands Reference</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithQJM.html">NameNode HA With QJM</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSHighAvailabilityWithNFS.html">NameNode HA With NFS</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ObserverNameNode.html">Observer NameNode</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/Federation.html">Federation</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ViewFs.html">ViewFs</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ViewFsOverloadScheme.html">ViewFsOverloadScheme</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsSnapshots.html">Snapshots</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsEditsViewer.html">Edits Viewer</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsImageViewer.html">Image Viewer</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsPermissionsGuide.html">Permissions and HDFS</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsQuotaAdminGuide.html">Quotas and HDFS</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/LibHdfs.html">libhdfs (C API)</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/WebHDFS.html">WebHDFS (REST API)</a>
</li>
<li class="none">
<a href="../../hadoop-hdfs-httpfs/index.html">HttpFS</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ShortCircuitLocalReads.html">Short Circuit Local Reads</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/CentralizedCacheManagement.html">Centralized Cache Management</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsNfsGateway.html">NFS Gateway</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsRollingUpgrade.html">Rolling Upgrade</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ExtendedAttributes.html">Extended Attributes</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/TransparentEncryption.html">Transparent Encryption</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsMultihoming.html">Multihoming</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/ArchivalStorage.html">Storage Policies</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/MemoryStorage.html">Memory Storage Support</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/SLGUserGuide.html">Synthetic Load Generator</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSErasureCoding.html">Erasure Coding</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HDFSDiskbalancer.html">Disk Balancer</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsUpgradeDomain.html">Upgrade Domain</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsDataNodeAdminGuide.html">DataNode Admin</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs-rbf/HDFSRouterFederation.html">Router Federation</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/HdfsProvidedStorage.html">Provided Storage</a>
</li>
</ul>
<h5>MapReduce</h5>
<ul>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduceTutorial.html">Tutorial</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredCommands.html">Commands Reference</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapReduce_Compatibility_Hadoop1_Hadoop2.html">Compatibility with 1.x</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/EncryptedShuffle.html">Encrypted Shuffle</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/PluggableShuffleAndPluggableSort.html">Pluggable Shuffle/Sort</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/DistributedCacheDeploy.html">Distributed Cache Deploy</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/SharedCacheSupport.html">Support for YARN Shared Cache</a>
</li>
</ul>
<h5>MapReduce REST APIs</h5>
<ul>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/MapredAppMasterRest.html">MR Application Master</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-hs/HistoryServerRest.html">MR History Server</a>
</li>
</ul>
<h5>YARN</h5>
<ul>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/YARN.html">Architecture</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnCommands.html">Commands Reference</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/CapacityScheduler.html">Capacity Scheduler</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/FairScheduler.html">Fair Scheduler</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerRestart.html">ResourceManager Restart</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerHA.html">ResourceManager HA</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceModel.html">Resource Model</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeLabel.html">Node Labels</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeAttributes.html">Node Attributes</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/WebApplicationProxy.html">Web Application Proxy</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServer.html">Timeline Server</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html">Timeline Service V.2</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/WritingYarnApplications.html">Writing YARN Applications</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnApplicationSecurity.html">YARN Application Security</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManager.html">NodeManager</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/DockerContainers.html">Running Applications in Docker Containers</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/RuncContainers.html">Running Applications in runC Containers</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManagerCgroups.html">Using CGroups</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/SecureContainer.html">Secure Containers</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/ReservationSystem.html">Reservation System</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/GracefulDecommission.html">Graceful Decommission</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/OpportunisticContainers.html">Opportunistic Containers</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/Federation.html">YARN Federation</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/SharedCache.html">Shared Cache</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/UsingGpus.html">Using GPU</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/UsingFPGA.html">Using FPGA</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/PlacementConstraints.html">Placement Constraints</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/YarnUI2.html">YARN UI2</a>
</li>
</ul>
<h5>YARN REST APIs</h5>
<ul>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/WebServicesIntro.html">Introduction</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/ResourceManagerRest.html">Resource Manager</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/NodeManagerRest.html">Node Manager</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServer.html#Timeline_Server_REST_API_v1">Timeline Server</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/TimelineServiceV2.html#Timeline_Service_v.2_REST_API">Timeline Service V.2</a>
</li>
</ul>
<h5>YARN Service</h5>
<ul>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/Overview.html">Overview</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/QuickStart.html">QuickStart</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/Concepts.html">Concepts</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/YarnServiceAPI.html">Yarn Service API</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/ServiceDiscovery.html">Service Discovery</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-site/yarn-service/SystemServices.html">System Services</a>
</li>
</ul>
<h5>Hadoop Compatible File Systems</h5>
<ul>
<li class="none">
<a href="../../hadoop-aliyun/tools/hadoop-aliyun/index.html">Aliyun OSS</a>
</li>
<li class="none">
<a href="../../hadoop-aws/tools/hadoop-aws/index.html">Amazon S3</a>
</li>
<li class="none">
<a href="../../hadoop-azure/index.html">Azure Blob Storage</a>
</li>
<li class="none">
<a href="../../hadoop-azure-datalake/index.html">Azure Data Lake Storage</a>
</li>
<li class="none">
<a href="../../hadoop-openstack/index.html">OpenStack Swift</a>
</li>
<li class="none">
<a href="../../hadoop-cos/cloud-storage/index.html">Tencent COS</a>
</li>
</ul>
<h5>Auth</h5>
<ul>
<li class="none">
<a href="../../hadoop-auth/index.html">Overview</a>
</li>
<li class="none">
<a href="../../hadoop-auth/Examples.html">Examples</a>
</li>
<li class="none">
<a href="../../hadoop-auth/Configuration.html">Configuration</a>
</li>
<li class="none">
<a href="../../hadoop-auth/BuildingIt.html">Building</a>
</li>
</ul>
<h5>Tools</h5>
<ul>
<li class="none">
<a href="../../hadoop-streaming/HadoopStreaming.html">Hadoop Streaming</a>
</li>
<li class="none">
<a href="../../hadoop-archives/HadoopArchives.html">Hadoop Archives</a>
</li>
<li class="none">
<a href="../../hadoop-archive-logs/HadoopArchiveLogs.html">Hadoop Archive Logs</a>
</li>
<li class="none">
<a href="../../hadoop-distcp/DistCp.html">DistCp</a>
</li>
<li class="none">
<a href="../../hadoop-gridmix/GridMix.html">GridMix</a>
</li>
<li class="none">
<a href="../../hadoop-rumen/Rumen.html">Rumen</a>
</li>
<li class="none">
<a href="../../hadoop-resourceestimator/ResourceEstimator.html">Resource Estimator Service</a>
</li>
<li class="none">
<a href="../../hadoop-sls/SchedulerLoadSimulator.html">Scheduler Load Simulator</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/Benchmarking.html">Hadoop Benchmarking</a>
</li>
<li class="none">
<a href="../../hadoop-dynamometer/Dynamometer.html">Dynamometer</a>
</li>
</ul>
<h5>Reference</h5>
<ul>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/release/">Changelog and Release Notes</a>
</li>
<li class="none">
<a href="../../api/index.html">Java API docs</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/UnixShellAPI.html">Unix Shell API</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/Metrics.html">Metrics</a>
</li>
</ul>
<h5>Configuration</h5>
<ul>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/core-default.xml">core-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs/hdfs-default.xml">hdfs-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-hdfs-rbf/hdfs-rbf-default.xml">hdfs-rbf-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-mapreduce-client/hadoop-mapreduce-client-core/mapred-default.xml">mapred-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-yarn/hadoop-yarn-common/yarn-default.xml">yarn-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-kms/kms-default.html">kms-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-hdfs-httpfs/httpfs-default.html">httpfs-default.xml</a>
</li>
<li class="none">
<a href="../../hadoop-project-dist/hadoop-common/DeprecatedProperties.html">Deprecated Properties</a>
</li>
</ul>
<a href="http://maven.apache.org/" title="Built by Maven" class="poweredBy">
<img alt="Built by Maven" src="./images/logos/maven-feather.png"/>
</a>
</div>
</div>
<div id="bodyColumn">
<div id="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.
-->
<h1>YARN Commands</h1>
<ul>
<li><a href="#Overview">Overview</a></li>
<li><a href="#User_Commands">User Commands</a>
<ul>
<li><a href="#application_or_app">application or app</a></li>
<li><a href="#applicationattempt">applicationattempt</a></li>
<li><a href="#classpath">classpath</a></li>
<li><a href="#container">container</a></li>
<li><a href="#jar">jar</a></li>
<li><a href="#logs">logs</a></li>
<li><a href="#node">node</a></li>
<li><a href="#queue">queue</a></li>
<li><a href="#version">version</a></li>
<li><a href="#envvars">envvars</a></li></ul></li>
<li><a href="#Administration_Commands">Administration Commands</a>
<ul>
<li><a href="#daemonlog">daemonlog</a></li>
<li><a href="#nodemanager">nodemanager</a></li>
<li><a href="#proxyserver">proxyserver</a></li>
<li><a href="#resourcemanager">resourcemanager</a></li>
<li><a href="#rmadmin">rmadmin</a></li>
<li><a href="#schedulerconf">schedulerconf</a></li>
<li><a href="#scmadmin">scmadmin</a></li>
<li><a href="#sharedcachemanager">sharedcachemanager</a></li>
<li><a href="#timelineserver">timelineserver</a></li>
<li><a href="#registrydns">registrydns</a></li></ul></li>
<li><a href="#Files">Files</a></li></ul>
<div class="section">
<h2><a name="Overview"></a>Overview</h2>
<p>YARN commands are invoked by the bin/yarn script. Running the yarn script without any arguments prints the description for all commands.</p>
<p>Usage: <tt>yarn [SHELL_OPTIONS] COMMAND [GENERIC_OPTIONS] [SUB_COMMAND] [COMMAND_OPTIONS]</tt></p>
<p>YARN has an option parsing framework that employs parsing generic options as well as running classes.</p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> SHELL_OPTIONS </td>
<td align="left"> The common set of shell options. These are documented on the <a href="../../hadoop-project-dist/hadoop-common/CommandsManual.html#Shell_Options">Commands Manual</a> page. </td></tr>
<tr class="a">
<td align="left"> GENERIC_OPTIONS </td>
<td align="left"> The common set of options supported by multiple commands. See the Hadoop <a href="../../hadoop-project-dist/hadoop-common/CommandsManual.html#Generic_Options">Commands Manual</a> for more information. </td></tr>
<tr class="b">
<td align="left"> COMMAND COMMAND_OPTIONS </td>
<td align="left"> Various commands with their options are described in the following sections. The commands have been grouped into <a href="#User_Commands">User Commands</a> and <a href="#Administration_Commands">Administration Commands</a>. </td></tr>
</tbody>
</table></div>
<div class="section">
<h2><a name="User_Commands"></a>User Commands</h2>
<p>Commands useful for users of a Hadoop cluster.</p>
<div class="section">
<h3><a name="application_or_app"></a><tt>application</tt> or <tt>app</tt></h3>
<p>Usage: <tt>yarn application [options]</tt> Usage: <tt>yarn app [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -appId &lt;ApplicationId&gt; </td>
<td align="left"> Specify Application Id to be operated </td></tr>
<tr class="a">
<td align="left"> -appStates &lt;States&gt; </td>
<td align="left"> Works with -list to filter applications based on input comma-separated list of application states. The valid application state can be one of the following: &#xa0;ALL, NEW, NEW_SAVING, SUBMITTED, ACCEPTED, RUNNING, FINISHED, FAILED, KILLED </td></tr>
<tr class="b">
<td align="left"> -appTags &lt;Tags&gt; </td>
<td align="left"> Works with -list to filter applications based on input comma-separated list of application tags. </td></tr>
<tr class="a">
<td align="left"> -appTypes &lt;Types&gt; </td>
<td align="left"> Works with -list to filter applications based on input comma-separated list of application types. </td></tr>
<tr class="b">
<td align="left"> -changeQueue &lt;Queue Name&gt; </td>
<td align="left"> Moves application to a new queue. ApplicationId can be passed using &#x2018;appId&#x2019; option. &#x2018;movetoqueue&#x2019; command is deprecated, this new command &#x2018;changeQueue&#x2019; performs same functionality. </td></tr>
<tr class="a">
<td align="left"> -component &lt;Component Name&gt; &lt;Count&gt; </td>
<td align="left"> Works with -flex option to change the number of components/containers running for an application / long-running service. Supports absolute or relative changes, such as +1, 2, or -3. </td></tr>
<tr class="b">
<td align="left"> -components &lt;Components&gt; </td>
<td align="left"> Works with -upgrade option to trigger the upgrade of specified components of the application. Multiple components should be separated by commas. </td></tr>
<tr class="a">
<td align="left"> -decommission &lt;Application Name&gt; </td>
<td align="left"> Decommissions component instances for an application / long-running service. Requires -instances option. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="b">
<td align="left"> -destroy &lt;Application Name&gt; </td>
<td align="left"> Destroys a saved application specification and removes all application data permanently. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="a">
<td align="left"> -enableFastLaunch </td>
<td align="left"> Uploads AM dependencies to HDFS to make future launches faster. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="b">
<td align="left"> -flex &lt;Application Name or ID&gt; </td>
<td align="left"> Changes number of running containers for a component of an application / long-running service. Requires -component option. If name is provided, appType must be provided unless it is the default yarn-service. If ID is provided, the appType will be looked up. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="a">
<td align="left"> -help </td>
<td align="left"> Displays help for all commands. </td></tr>
<tr class="b">
<td align="left"> -instances &lt;Component Instances&gt; </td>
<td align="left"> Works with -upgrade option to trigger the upgrade of specified component instances of the application. Also works with -decommission option to decommission specified component instances. Multiple instances should be separated by commas. </td></tr>
<tr class="a">
<td align="left"> -kill &lt;Application ID&gt; </td>
<td align="left"> Kills the application. Set of applications can be provided separated with space </td></tr>
<tr class="b">
<td align="left"> -launch &lt;Application Name&gt; &lt;File Name&gt; </td>
<td align="left"> Launches application from specification file (saves specification and starts application). Options -updateLifetime and -changeQueue can be specified to alter the values provided in the file. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="a">
<td align="left"> -list </td>
<td align="left"> List applications. Supports optional use of -appTypes to filter applications based on application type, -appStates to filter applications based on application state and -appTags to filter applications based on application tag. </td></tr>
<tr class="b">
<td align="left"> -movetoqueue &lt;Application ID&gt; </td>
<td align="left"> Moves the application to a different queue. Deprecated command. Use &#x2018;changeQueue&#x2019; instead. </td></tr>
<tr class="a">
<td align="left"> -queue &lt;Queue Name&gt; </td>
<td align="left"> Works with the movetoqueue command to specify which queue to move an application to. </td></tr>
<tr class="b">
<td align="left"> -save &lt;Application Name&gt; &lt;File Name&gt; </td>
<td align="left"> Saves specification file for an application. Options -updateLifetime and -changeQueue can be specified to alter the values provided in the file. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="a">
<td align="left"> -start &lt;Application Name&gt; </td>
<td align="left"> Starts a previously saved application. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="b">
<td align="left"> -status &lt;ApplicationId or ApplicationName&gt; </td>
<td align="left"> Prints the status of the application. If app ID is provided, it prints the generic YARN application status. If name is provided, it prints the application specific status based on app&#x2019;s own implementation, and -appTypes option must be specified unless it is the default <tt>yarn-service</tt> type.</td></tr>
<tr class="a">
<td align="left"> -stop &lt;Application Name or ID&gt; </td>
<td align="left"> Stops application gracefully (may be started again later). If name is provided, appType must be provided unless it is the default yarn-service. If ID is provided, the appType will be looked up. Supports -appTypes option to specify which client implementation to use. </td></tr>
<tr class="b">
<td align="left"> -updateLifetime &lt;Timeout&gt; </td>
<td align="left"> Update timeout of an application from NOW. ApplicationId can be passed using &#x2018;appId&#x2019; option. Timeout value is in seconds. </td></tr>
<tr class="a">
<td align="left"> -updatePriority &lt;Priority&gt; </td>
<td align="left"> Update priority of an application. ApplicationId can be passed using &#x2018;appId&#x2019; option. </td></tr>
</tbody>
</table>
<p>Prints application(s) report/kill application/manage long running application</p></div>
<div class="section">
<h3><a name="applicationattempt"></a><tt>applicationattempt</tt></h3>
<p>Usage: <tt>yarn applicationattempt [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -help </td>
<td align="left"> Help </td></tr>
<tr class="a">
<td align="left"> -list &lt;ApplicationId&gt; </td>
<td align="left"> Lists applications attempts for the given application. </td></tr>
<tr class="b">
<td align="left"> -status &lt;Application Attempt Id&gt; </td>
<td align="left"> Prints the status of the application attempt. </td></tr>
</tbody>
</table>
<p>prints applicationattempt(s) report</p></div>
<div class="section">
<h3><a name="classpath"></a><tt>classpath</tt></h3>
<p>Usage: <tt>yarn classpath [--glob |--jar &lt;path&gt; |-h |--help]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTION </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> <tt>--glob</tt> </td>
<td align="left"> expand wildcards </td></tr>
<tr class="a">
<td align="left"> <tt>--jar</tt> <i>path</i> </td>
<td align="left"> write classpath as manifest in jar named <i>path</i> </td></tr>
<tr class="b">
<td align="left"> <tt>-h</tt>, <tt>--help</tt> </td>
<td align="left"> print help </td></tr>
</tbody>
</table>
<p>Prints the class path needed to get the Hadoop jar and the required libraries. If called without arguments, then prints the classpath set up by the command scripts, which is likely to contain wildcards in the classpath entries. Additional options print the classpath after wildcard expansion or write the classpath into the manifest of a jar file. The latter is useful in environments where wildcards cannot be used and the expanded classpath exceeds the maximum supported command line length.</p></div>
<div class="section">
<h3><a name="container"></a><tt>container</tt></h3>
<p>Usage: <tt>yarn container [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -help </td>
<td align="left"> Help </td></tr>
<tr class="a">
<td align="left"> -list &lt;Application Attempt Id&gt; </td>
<td align="left"> Lists containers for the application attempt. </td></tr>
<tr class="b">
<td align="left"> -status &lt;ContainerId&gt; </td>
<td align="left"> Prints the status of the container. </td></tr>
</tbody>
</table>
<p>prints container(s) report</p></div>
<div class="section">
<h3><a name="jar"></a><tt>jar</tt></h3>
<p>Usage: <tt>yarn jar &lt;jar&gt; [mainClass] args...</tt></p>
<p>Runs a jar file. Users can bundle their YARN code in a jar file and execute it using this command.</p></div>
<div class="section">
<h3><a name="logs"></a><tt>logs</tt></h3>
<p>Usage: <tt>yarn logs -applicationId &lt;application ID&gt; [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -applicationId &lt;application ID&gt; </td>
<td align="left"> Specifies an application id </td></tr>
<tr class="a">
<td align="left"> -appOwner &lt;AppOwner&gt; </td>
<td align="left"> AppOwner (assumed to be current user if not specified) </td></tr>
<tr class="b">
<td align="left"> -containerId &lt;ContainerId&gt; </td>
<td align="left"> ContainerId (must be specified if node address is specified) </td></tr>
<tr class="a">
<td align="left"> -help </td>
<td align="left"> Help </td></tr>
<tr class="b">
<td align="left"> -nodeAddress &lt;NodeAddress&gt; </td>
<td align="left"> NodeAddress in the format nodename:port (must be specified if container id is specified) </td></tr>
</tbody>
</table>
<p>Dump the container logs</p></div>
<div class="section">
<h3><a name="node"></a><tt>node</tt></h3>
<p>Usage: <tt>yarn node [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -all </td>
<td align="left"> Works with -list to list all nodes. </td></tr>
<tr class="a">
<td align="left"> -list </td>
<td align="left"> Lists all running nodes. Supports optional use of -states to filter nodes based on node state, and -all to list all nodes. </td></tr>
<tr class="b">
<td align="left"> -states &lt;States&gt; </td>
<td align="left"> Works with -list to filter nodes based on input comma-separated list of node states. </td></tr>
<tr class="a">
<td align="left"> -status &lt;NodeId&gt; </td>
<td align="left"> Prints the status report of the node. </td></tr>
</tbody>
</table>
<p>Prints node report(s)</p></div>
<div class="section">
<h3><a name="queue"></a><tt>queue</tt></h3>
<p>Usage: <tt>yarn queue [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -help </td>
<td align="left"> Help </td></tr>
<tr class="a">
<td align="left"> -status &lt;QueueName&gt; </td>
<td align="left"> Prints the status of the queue. </td></tr>
</tbody>
</table>
<p>Prints queue information</p></div>
<div class="section">
<h3><a name="version"></a><tt>version</tt></h3>
<p>Usage: <tt>yarn version</tt></p>
<p>Prints the Hadoop version.</p></div>
<div class="section">
<h3><a name="envvars"></a><tt>envvars</tt></h3>
<p>Usage: <tt>yarn envvars</tt></p>
<p>Display computed Hadoop environment variables.</p></div></div>
<div class="section">
<h2><a name="Administration_Commands"></a>Administration Commands</h2>
<p>Commands useful for administrators of a Hadoop cluster.</p>
<div class="section">
<h3><a name="daemonlog"></a><tt>daemonlog</tt></h3>
<p>Get/Set the log level for a Log identified by a qualified class name in the daemon dynamically. See the Hadoop <a href="../../hadoop-project-dist/hadoop-common/CommandsManual.html#daemonlog">Commands Manual</a> for more information.</p></div>
<div class="section">
<h3><a name="nodemanager"></a><tt>nodemanager</tt></h3>
<p>Usage: <tt>yarn nodemanager</tt></p>
<p>Start the NodeManager</p></div>
<div class="section">
<h3><a name="proxyserver"></a><tt>proxyserver</tt></h3>
<p>Usage: <tt>yarn proxyserver</tt></p>
<p>Start the web proxy server</p></div>
<div class="section">
<h3><a name="resourcemanager"></a><tt>resourcemanager</tt></h3>
<p>Usage: <tt>yarn resourcemanager [-format-state-store]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -format-state-store </td>
<td align="left"> Formats the RMStateStore. This will clear the RMStateStore and is useful if past applications are no longer needed. This should be run only when the ResourceManager is not running. </td></tr>
<tr class="a">
<td align="left"> -remove-application-from-state-store &lt;appId&gt; </td>
<td align="left"> Remove the application from RMStateStore. This should be run only when the ResourceManager is not running. </td></tr>
<tr class="b">
<td align="left"> -format-conf-store </td>
<td align="left"> Formats the YarnConfigurationStore. This will clear the persisted scheduler configuration under YarnConfigurationStore. This should be run only when the ResourceManager is not running. </td></tr>
<tr class="a">
<td align="left"> -convert-fs-configuration [-y|yarnsiteconfig] [-f|fsconfig] [-r|rulesconfig] [-o|output-directory] [-p|print] [-c|cluster-resource] </td>
<td align="left"> WARNING: This feature is experimental and not intended for production use! Development is still in progress so the converter should not be considered complete! <br /> Converts the specified Fair Scheduler configuration to Capacity Scheduler configuration. Requires two mandatory input files. First, the yarn-site.xml with the following format: [-y|yarnsiteconfig [&lt;Path to the yarn-site.xml file&gt;]. Secondly, the fair-scheduler.xml with the following format: [-f|fsconfig [&lt;Path to the fair-scheduler.xml file&gt;]. This config is not mandatory if there is a reference in yarn-site.xml to the fair-scheduler.xml with the property &#x2018;yarn.scheduler.fair.allocation.file&#x2019;. If both are defined, the -f option has precedence. The output directory of the config files should be specified as well, with: [-o|output-directory\ &lt;directory&gt;]. An optional rules config file could be also specified with the following format: [-r|rulesconfig &lt;Path to the conversion rules file&gt;]. The rule config file&#x2019;s format is a property file. There&#x2019;s an additional [-p|print] parameter, which is optional. If defined, the configuration will be emitted to the console instead. In its normal operation, the output files (yarn-site.xml and capacity-scheduler.xml) of this command is generated to the specified output directory. The cluster resource parameter ([-c|cluster-resource] &lt;resource&gt;]) needs to be specified if any queue has a maxResources setting with value as percentage. The format of the resource string is the same as in fair-scheduler.xml.) ] </td></tr>
</tbody>
</table>
<p>Start the ResourceManager</p></div>
<div class="section">
<h3><a name="rmadmin"></a><tt>rmadmin</tt></h3>
<p>Usage:</p>
<div>
<div>
<pre class="source"> Usage: yarn rmadmin
-refreshQueues
-refreshNodes [-g|graceful [timeout in seconds] -client|server]
-refreshNodesResources
-refreshSuperUserGroupsConfiguration
-refreshUserToGroupsMappings
-refreshAdminAcls
-refreshServiceAcl
-getGroups [username]
-addToClusterNodeLabels &lt;&quot;label1(exclusive=true),label2(exclusive=false),label3&quot;&gt;
-removeFromClusterNodeLabels &lt;label1,label2,label3&gt; (label splitted by &quot;,&quot;)
-replaceLabelsOnNode &lt;&quot;node1[:port]=label1,label2 node2[:port]=label1,label2&quot;&gt; [-failOnUnknownNodes]
-directlyAccessNodeLabelStore
-refreshClusterMaxPriority
-updateNodeResource [NodeID] [MemSize] [vCores] ([OvercommitTimeout]) or -updateNodeResource [NodeID] [ResourceTypes] ([OvercommitTimeout])
-transitionToActive [--forceactive] &lt;serviceId&gt;
-transitionToStandby &lt;serviceId&gt;
-getServiceState &lt;serviceId&gt;
-getAllServiceState
-checkHealth &lt;serviceId&gt;
-help [cmd]
</pre></div></div>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -refreshQueues </td>
<td align="left"> Reload the queues&#x2019; acls, states and scheduler specific properties. ResourceManager will reload the mapred-queues configuration file. </td></tr>
<tr class="a">
<td align="left"> -refreshNodes [-g|graceful [timeout in seconds] -client|server] </td>
<td align="left"> Refresh the hosts information at the ResourceManager. Here [-g|graceful [timeout in seconds] -client|server] is optional, if we specify the timeout then ResourceManager will wait for timeout before marking the NodeManager as decommissioned. The -client|server indicates if the timeout tracking should be handled by the client or the ResourceManager. The client-side tracking is blocking, while the server-side tracking is not. Omitting the timeout, or a timeout of -1, indicates an infinite timeout. Known Issue: the server-side tracking will immediately decommission if an RM HA failover occurs. </td></tr>
<tr class="b">
<td align="left"> -refreshNodesResources </td>
<td align="left"> Refresh resources of NodeManagers at the ResourceManager. </td></tr>
<tr class="a">
<td align="left"> -refreshSuperUserGroupsConfiguration </td>
<td align="left"> Refresh superuser proxy groups mappings. </td></tr>
<tr class="b">
<td align="left"> -refreshUserToGroupsMappings </td>
<td align="left"> Refresh user-to-groups mappings. </td></tr>
<tr class="a">
<td align="left"> -refreshAdminAcls </td>
<td align="left"> Refresh acls for administration of ResourceManager </td></tr>
<tr class="b">
<td align="left"> -refreshServiceAcl </td>
<td align="left"> Reload the service-level authorization policy file ResourceManager will reload the authorization policy file. </td></tr>
<tr class="a">
<td align="left"> -getGroups [username] </td>
<td align="left"> Get groups the specified user belongs to. </td></tr>
<tr class="b">
<td align="left"> -addToClusterNodeLabels &lt;&#x201c;label1(exclusive=true),label2(exclusive=false),label3&#x201d;&gt; </td>
<td align="left"> Add to cluster node labels. Default exclusivity is true. </td></tr>
<tr class="a">
<td align="left"> -removeFromClusterNodeLabels &lt;label1,label2,label3&gt; (label splitted by &#x201c;,&#x201d;) </td>
<td align="left"> Remove from cluster node labels. </td></tr>
<tr class="b">
<td align="left"> -replaceLabelsOnNode &lt;&#x201c;node1[:port]=label1,label2 node2[:port]=label1,label2&#x201d;&gt; [-failOnUnknownNodes]</td>
<td align="left"> Replace labels on nodes (please note that we do not support specifying multiple labels on a single host for now.) -failOnUnknownNodes is optional, when we set this option, it will fail if specified nodes are unknown.</td></tr>
<tr class="a">
<td align="left"> -directlyAccessNodeLabelStore </td>
<td align="left"> This is DEPRECATED, will be removed in future releases. Directly access node label store, with this option, all node label related operations will not connect RM. Instead, they will access/modify stored node labels directly. By default, it is false (access via RM). AND PLEASE NOTE: if you configured yarn.node-labels.fs-store.root-dir to a local directory (instead of NFS or HDFS), this option will only work when the command run on the machine where RM is running. </td></tr>
<tr class="b">
<td align="left"> -refreshClusterMaxPriority </td>
<td align="left"> Refresh cluster max priority </td></tr>
<tr class="a">
<td align="left"> -updateNodeResource [NodeID] [MemSize] [vCores] ([OvercommitTimeout]) </td>
<td align="left"> Update resource on specific node. </td></tr>
<tr class="b">
<td align="left"> -updateNodeResource [NodeID] [ResourceTypes] ([OvercommitTimeout]) </td>
<td align="left"> Update resource types on specific node. Resource Types is comma-delimited key value pairs of any resources availale at Resource Manager. For example, memory-mb=1024Mi,vcores=1,resource1=2G,resource2=4m</td></tr>
<tr class="a">
<td align="left"> -transitionToActive [&#x2013;forceactive] [&#x2013;forcemanual] &lt;serviceId&gt; </td>
<td align="left"> Transitions the service into Active state. Try to make the target active without checking that there is no active node if the &#x2013;forceactive option is used. This command can not be used if automatic failover is enabled. Though you can override this by &#x2013;forcemanual option, you need caution. This command can not be used if automatic failover is enabled.</td></tr>
<tr class="b">
<td align="left"> -transitionToStandby [&#x2013;forcemanual] &lt;serviceId&gt; </td>
<td align="left"> Transitions the service into Standby state. This command can not be used if automatic failover is enabled. Though you can override this by &#x2013;forcemanual option, you need caution. </td></tr>
<tr class="a">
<td align="left"> -getServiceState &lt;serviceId&gt; </td>
<td align="left"> Returns the state of the service. </td></tr>
<tr class="b">
<td align="left"> -getAllServiceState </td>
<td align="left"> Returns the state of all the services. </td></tr>
<tr class="a">
<td align="left"> -checkHealth &lt;serviceId&gt; </td>
<td align="left"> Requests that the service perform a health check. The RMAdmin tool will exit with a non-zero exit code if the check fails. </td></tr>
<tr class="b">
<td align="left"> -help [cmd] </td>
<td align="left"> Displays help for the given command or all commands if none is specified. </td></tr>
</tbody>
</table>
<p>Runs ResourceManager admin client</p></div>
<div class="section">
<h3><a name="schedulerconf"></a>schedulerconf</h3>
<p>Usage: <tt>yarn schedulerconf [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -add &lt;&#x201c;queuePath1:key1=val1,key2=val2;queuePath2:key3=val3&#x201d;&gt; </td>
<td align="left"> Semicolon separated values of queues to add and their queue configurations. This example adds queue &#x201c;queuePath1&#x201d; (a full path name), which has queue configurations key1=val1 and key2=val2. It also adds queue &#x201c;queuePath2&#x201d;, which has queue configuration key3=val3. </td></tr>
<tr class="a">
<td align="left"> -remove &lt;&#x201c;queuePath1;queuePath2&#x201d;&gt; </td>
<td align="left"> Semicolon separated queues to remove. This example removes queuePath1 and queuePath2 queues (full path names). <b>Note:</b> Queues must be put into <tt>STOPPED</tt> state before they are deleted. </td></tr>
<tr class="b">
<td align="left"> -update &lt;&#x201c;queuePath1:key1=val1,key2=val2;queuePath2:key3=val3&#x201d;&gt; </td>
<td align="left"> Semicolon separated values of queues whose configurations should be updated. This example sets key1=val1 and key2=val2 for queue configuration of queuePath1 (full path name), and sets key3=val3 for queue configuration of queuePath2. </td></tr>
<tr class="a">
<td align="left"> -global &lt;key1=val1,key2=val2&gt; </td>
<td align="left"> Update scheduler global configurations. This example sets key1=val1 and key2=val2 for scheduler&#x2019;s global configuration. </td></tr>
</tbody>
</table>
<p>Updates scheduler configuration. Note, this feature is in alpha phase and is subject to change.</p></div>
<div class="section">
<h3><a name="scmadmin"></a>scmadmin</h3>
<p>Usage: <tt>yarn scmadmin [options]</tt></p>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> COMMAND_OPTIONS </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> -help </td>
<td align="left"> Help </td></tr>
<tr class="a">
<td align="left"> -runCleanerTask </td>
<td align="left"> Runs the cleaner task </td></tr>
</tbody>
</table>
<p>Runs Shared Cache Manager admin client</p></div>
<div class="section">
<h3><a name="sharedcachemanager"></a>sharedcachemanager</h3>
<p>Usage: <tt>yarn sharedcachemanager</tt></p>
<p>Start the Shared Cache Manager</p></div>
<div class="section">
<h3><a name="timelineserver"></a>timelineserver</h3>
<p>Usage: <tt>yarn timelineserver</tt></p>
<p>Start the TimeLineServer</p></div>
<div class="section">
<h3><a name="registrydns"></a>registrydns</h3>
<p>Usage: <tt>yarn registrydns</tt></p>
<p>Start the RegistryDNS server</p></div></div>
<div class="section">
<h2><a name="Files"></a>Files</h2>
<table border="0" class="bodyTable">
<thead>
<tr class="a">
<th align="left"> File </th>
<th align="left"> Description </th></tr>
</thead><tbody>
<tr class="b">
<td align="left"> etc/hadoop/hadoop-env.sh </td>
<td align="left"> This file stores the global settings used by all Hadoop shell commands. </td></tr>
<tr class="a">
<td align="left"> etc/hadoop/yarn-env.sh </td>
<td align="left"> This file stores overrides used by all YARN shell commands. </td></tr>
<tr class="b">
<td align="left"> etc/hadoop/hadoop-user-functions.sh </td>
<td align="left"> This file allows for advanced users to override some shell functionality. </td></tr>
<tr class="a">
<td align="left"> ~/.hadooprc </td>
<td align="left"> This stores the personal environment for an individual user. It is processed after the <tt>hadoop-env.sh</tt>, <tt>hadoop-user-functions.sh</tt>, and <tt>yarn-env.sh</tt> files and can contain the same settings. </td></tr>
</tbody>
</table></div>
</div>
</div>
<div class="clear">
<hr/>
</div>
<div id="footer">
<div class="xright">
&#169; 2008-2021
Apache Software Foundation
- <a href="http://maven.apache.org/privacy-policy.html">Privacy Policy</a>.
Apache Maven, Maven, Apache, the Apache feather logo, and the Apache Maven project logos are trademarks of The Apache Software Foundation.
</div>
<div class="clear">
<hr/>
</div>
</div>
</body>
</html>