To start YARN, run commands as a YARN user. To start MapReduce, run commands as a MapReduce user.
Optional. If you have a secure cluster, you must create the following principals and keytabs for YARN before you start the YARN service:
yarn.resourcemanager.principal yarn.resourcemanager.keytab yarn.nodemanager.principal yarn.nodemanager.keytab yarn.resourcemanager.webapp.spnego-principal yarn.nodemanager.webapp.spnego-principal mapreduce.jobhistory.webapp.spnego-principal yarn.resourcemanager.webapp.spnego-keytab-file yarn.nodemanager.webapp.spnego-keytab-file mapreduce.jobhistory.webapp.spnego-keytab-file
Start the ResourceManager on your previous JobTracker host.
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
Start the NodeManager on your previous TaskTracker 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
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