Command Line Upgrade
Also available as:
PDF
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.

[Note]Note

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. 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/yarn-daemon.sh start resourcemanager"
    
    ps -ef | grep -i resourcemanager
  3. Start the TimelineServer on your TimelineServer host.

    su - yarn -c "/usr/hdp/current/hadoop-yarn-timelineserver/sbin/yarn-daemon.sh 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/yarn-daemon.sh 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/mr-jobhistory-daemon.sh start historyserver"
    
    ps -ef | grep -i jobhistoryserver