In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-26 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article is about how to use the Yarn command in Hadoop. The editor thinks it is very practical, so share it with you as a reference and follow the editor to have a look.
Summary:
All yarn commands are invoked in the bin/yarn script. Run the yarn script command without any parameters and print out the description of all the commands.
Usage: yarn [--config confdir] COMMAND
Yarn uses a parsing framework that parses common options and running classes.
COMMAND_OPTIONS
Description
-- config confdir
Override the default configuration directory. Default is ${HADOOP_PREFIX} / conf.
COMMAND
COMMAND_OPTIONS
The options for the various commands are described in the following sections. It is divided into user commands and administrative commands.
User commands:
Jar
Run a JAR file. Users can bind their Yarn code to a JAR file and use this command to execute it.
Usage: yarn jar [mainClass] args...
Application
Application management command
Usage: yarn application
COMMAND_OPTIONS
Description
-list
List applications from RM.
-appStates States
Used with-list to filter a comma-separated list of application states based on input. The status of a valid application can be one of the following: ALL, NEW, NEW_SAVING, SUBMITTED, ACCEPTED, RUNNING, FINISHED, FAILED, KILLED
-appTypes Types
Used with-list to filter application types based on input in a comma-separated list
-status ApplicationId
Print the status of the application
-kill ApplicationId
Kill the application
Node
Print node report
Usage: yarn node
COMMAND_OPTIONS
Description
-list
Lists all running nodes.
-states States
Used with-list to filter the list of nodes based on input comma-separated node states.
-all
Used with-list to list all nodes
-status NodeId
View the status report of the node.
Logs
Dump the container logs
Usage: yarn logs-applicationId
COMMAND_OPTIONS
Description
-applicationId
Specify an application id
-appOwner AppOwner
Application user (if not specified, assigned to the current user by default)
-containerId ContainerId
Container id (container id must be specified if the address of the node is specified)
-nodeAddress NodeAddress
The node address of the formatted nodename: Port, (if container id is specified, the node address must be specified)
Classpath
Prints the class path needed to get the Hadoop jar and the required libraries
Usage: yarn classpath
Administrative commands:
Resourcemanager
Start the ResourceManager
Usage: yarn resourcemanager
Nodemanager
Start the NodeManager
Usage: yarn nodemanager
Proxyserver
Start the web proxy server
Usage: yarn proxyserver
Rmadmin
Yarn rmadmin [- refreshQueues] [- refreshNodes] [- refreshUserToGroupsMapping]
[- refreshSuperUserGroupsConfiguration] [- refreshAdminAcls]
[- refreshServiceAcl] [- getGroups [username]] [- help [cmd]]
[- transitionToActive]
[- transitionToStandby]
[- getServiceState]
[- checkHealth]
Run the ResourceManager management client
Usage:
COMMAND_OPTIONS
Description
-refreshQueues
Reload queue ACL, status, and scheduling features. ResourceManager will reload mapred-qu eues's configuration file
-refreshNodes
Refresh host information through ResourceManager.
-refreshUserToGroupsMappings
Refresh the user group mapping.
-refreshSuperUserGroupsConfiguration
Refresh the superuser agent group mapping.
-refreshAdminAcls
Refresh acls management through ResourceManager
-refreshServiceAcl
Reloading the service level authorization authentication policy file ResourceManager will reload the authorization authentication policy file.
-getGroups [username]
The group to which the specified user belongs
-help [cmd]
Displays help information for a given command, or all commands if you do not specify it.
-transitionToActive
Transition service to active state
-transitionToStandby
Change the service to standby
-getServiceState
Returns the status of the service
-checkHealth
Request the service for a health check. If the check fails, the RMAdmin tool exits a non-zero exit code
Daemonlog
Get/Set the log level for each daemon.
Usage: yarn daemonlog-getlevel
Usage: yarn daemonlog-setlevel
COMMAND_OPTIONS
Description
-getlevel
Print log levels based on daemons on the
The internal connection address of this command: http:///logLevel?log=
-setlevel
Sets the log level of the daemon running at. This command internally connects to http:///logLevel?log=
Based on the daemon log level on the
The internal connection address of this command: http:///logLevel?log=
Thank you for reading! This is the end of the article on "how to use Yarn commands in Hadoop". I hope the above content can be of some help to you, so that you can learn more knowledge. if you think the article is good, you can share it for more people to see!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.