Hadoop cannot access /logs/. in secure mode

2019-06-13 17:30发布

问题:

I am using hadoop-2.6.0 and enabled security with kerberos. All working fine. But i am unable to access the logs files from browser. It shows

Problem accessing /logs/. Reason:

User babu is unauthorized to access this page.

I tried with all users but no luck.

Can anyone help me how to authorize any user to access log files?

回答1:

You shouldn't access the logs directly in the FS, access is restricted to the NM user and the yarn group. Use the log-aggregation service to retrieve/view logs. See Simplifying user-logs management and access in YARN.