Command Line Upgrade
Also available as:
loading table of contents...

Start YARN/MapReduce Services

To start YARN, run commands as a YARN user. To start MapReduce, run commands as a MapReduce user.


The su commands in this section use "yarn" to represent the YARN Service user and mapreduce to represent the MAPREDUCE Service user. If you are using another name for these Service users, you need to substitute your Service user name for "yarn" or "mapreduce" in each of the su commands.

  1. If you have a highly available HDFS cluster configuration, manually clear the ResourceManager state store.

    su - yarn -c "yarn resourcemanager -format-state-store"
  2. Start the ResourceManager on all your ResourceManager hosts.

    su - yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/ start resourcemanager" 
    ps -ef | grep -i resourcemanager
  3. Start the TimelineServer on your TimlineServer host.

    su - yarn -c "/usr/hdp/current/hadoop-yarn-tinelineserver/sbin/ start timelineserver"
    ps -ef | grep -i timelineserver
  4. Start the NodeManager on all your NodeManager hosts.

    su - yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/ start nodemanager"
    ps -ef | grep -i nodemanager
  5. To start MapReduce, run the following commands:

    su - mapreduce -c "/usr/hdp/current/hadoop-mapreduce-historyserver/sbin/ start historyserver"
    ps -ef | grep -i jobhistoryserver