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

Start YARN/MapReduce Services


The su commands in this section use keywords to represent the Service user. For example, "hdfs" is used to represent the HDFS Service user. If you are using another name for your Service users, you need to substitute your Service user name in each of the su commands.

Application Timeline Server has changed. If you installed ATS with HDP 2.0, you need to add the following properties to yarn-site.xml to continue using ATS:


** If you are upgrading to HDP 2.1.3 or higher, use the following setting: **

** If you are upgrading to HDP 2.1.2, use the following setting: **


Add the following properties to hive-site.xml:


** If > 2GB then set it equal to 
Otherwise, set it equal to mapreduce.reduce.memory.mb ** -Xmx800m -XX:NewRatio=8
-XX:+UseNUMA -XX:+UseParallelGC

Use configuration values appropriate for your environment. For example, the value "800" in the preceding example is an example, not a requirement.

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

  1. If you are using an HA enabled system, you must upgrade the ZooKeeper service and it must be running.

  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 NodeManager on all your NodeManager hosts.

    su - yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/ start nodemanager"

    ps -ef | grep -i nodemanager

  4. To start MapReduce, run the following commands:

    su - yarn -c "/usr/hdp/current/hadoop-mapreduce-historyserver/sbin/

    start historyserver"

    ps -ef | grep -i jobhistoryserver