3.2. Start YARN/MapReduce Services

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

  1. Start the ResourceManager on all your ResourceManager hosts.

    su $YARN_USER
    export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec
    /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh start resourcemanager
    ps -ef | grep -i resourcemanager

  2. Start the NodeManager on all your NodeManager hosts.

    su $YARN_USER
    export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec
    /usr/lib/hadoop-yarn/sbin/yarn-daemon.sh start nodemanager
    ps -ef | grep -i nodemanager
  3. To start MapReduce, run the following commands as MapReduce user:

    su $MAPREDUCE_USER
    export HADOOP_LIBEXEC_DIR=/usr/lib/hadoop/libexec
    /usr/lib/hadoop-mapreduce/sbin/mr-jobhistory-daemon.sh --config /etc/hadoop/conf start historyserver
    ps -ef | grep -i jobhistoryserver 

loading table of contents...