在hadoop集群启用权限控制后,发现job运行日志的ui访问不了, User [dr.who] is not authorized to view the logs for application
原因
Resource Manager UI的默认用户dr.who权限不正确
解决
如果集群使用Ambari管理的话,在HDFS > Configurations > Custom core-site > Add Property
hadoop.http.staticuser.user=yarn
美图欣赏: