I followed the instruction on http://docs.hortonworks.com/HDPDocuments/HDP2/HDP-18.104.22.168/bk_installing_manually_book/content/rpm-chap4-4.html to start the jobhistory server. However, the first trial failed because the HADOOP_MAPRED_HOME and HADOOP_MAPRED_LOG_DIR was not defined. After manually defined these env variables, I tried to execute:
/usr/lib/hadoop-mapreduce/sbin/mr-jobhistory-daemon.sh start historyserver –config $HADOOP_CONF_DIR
And have the following error:
nice: /Hadoop/MAPRED/bin/mapred: Permission denied
I looked into the mr-jobhistory-daemon.sh file, and checked $MAPRED_USER has full permission on every directory used in the “nohup nice … ” command line. Even run the “nice -n 0 /Hadoop/MAPRED/bin/mapred /etc/hadoop/conf –config historyserver” by using “root”, it still has the permission denied error.