To start YARN, run commands as a YARN user. To start MapReduce, run commands as a MapReduce user.
Start the ResourceManager on all your ResourceManager hosts.
su -l yarn -c "/usr/hdp/current/hadoop-yarn-resourcemanager/sbin/yarn-daemon.sh start resourcemanager" ps -ef | grep -i resourcemanager
Start the NodeManager on all your NodeManager hosts.
su -l yarn -c "/usr/hdp/current/hadoop-yarn-nodemanager/sbin/yarn-daemon.sh start nodemanager" ps -ef | grep -i nodemanager
To start MapReduce, run the following commands:
su -l mapred -c "/usr/hdp/current/hadoop-mapreduce-historyserver/sbin/mr-jobhistory-daemon.sh start historyserver" ps -ef | grep -i jobhistoryserver