In the Cloudera Manager configuration (CM->YARN->Configuration), add the property mapreduce.cluster.administrators to the following safety valves listed below and include the list of administrators who should have access to view MapReduce Job history and logs. This list can be defined as the list of userids and groups that need access. The list of userids and group names should be separated by a whitespace character.
YARN Service MapReduce Advanced Configuration Snippet (Safety Valve)
MapReduce Client Advanced Configuration Snippet (Safety Valve) for mapred-site.xml
Sample entry to add in Safety valve:
If Cloudera Manager is not used, please add the yarn.admin.acls property to yarn-site.xml in the Resource Manager, and the mapreduce.cluster.administrators property to the Job History server's mapred-site.xml file.