Created 05-21-2021 04:15 AM
Hello all,
We are facing an issue in viewing YARN logs from Resource Manager UI. We have two HDP clusters. Cluster1 and Cluster2 have similar configurations. Cluster1 has no problem but getting the unauthorized issue from Cluster2 for viewing the YARN logs.
Cluster1 (the good one) has the below configurations.
yarn.acl.enable=true
yarn.admin.acl=yarn,user1 admingroup1,admingroup2
Cluser2 (the bad one) has the below configurations.
yarn.acl.enable=true
yarn.admin.acl=dr.who,user1,yarn admingroup2
Please note there are users in admingroup2 who want to view the YARN logs but not able to do so on Cluster2. It shows as below.
Please share if there are more things to check? Thank you for the help.
Created 05-22-2021 07:05 AM
Hi,
Could you please let us know what are the type of application logs you are viewing ? In case those are spark, the application level ACLs need to be configured separately based on the application type.
Custom spark2-defaults:
spark.history.ui.admin.acls=*
spark.ui.view.acls=*
spark.ui.view.acls.groups=*
For Mapreduce
Advanced mapred-site:
mapreduce.job.acl-view-job=*
Created on 05-26-2021 03:39 AM - edited 05-26-2021 04:18 AM
Hello @vamsi_redd
Thank you for the reply. We want to have minimal access to the Job logs, that's why we are adding only the required group. Nevertheless, we do have these settings present for MapReduce and Spark for only the users/groups that are needed.
However, we found that the issue was related to some kind of routing also we added the required users to the group (admingroup2).
mapreduce.job.acl-view-job=admingroup2
Created 05-26-2021 04:14 AM
@Sayed016 Thanks for the update, Are you able to view the logs now after adding the required group ?
Created 05-26-2021 04:21 AM
I edited my solution above a bit.
We found that the issue was related to some kind of routing from Oozie WF to YARN logs. What we wanted was to view the logs from the Oozie WF manager.
When we access the logs from the YARN RM UI it works, but we couldn't able to view the logs directly from the Oozie WF manager. We already have the correct configurations present in the MapReduce service.
Created 05-22-2021 01:51 PM
Can you compare the values of the yarn.admin.acl in the yarn-site.xml of both clusters? In my cluster its activity_analyzer, yarn this is a comma-delimited value so now you can add the user who is not allowed in your case and restart the stale config and revert.
Your user should now be able to access the logs
Happy hadooping
Created 05-22-2021 10:05 PM
@Sayed016 I can see there is no "," after Yarn username, Can you try adding"," after yarn user name as shown below
yarn.admin.acl=dr.who,user1,yarn,admingroup2
Created 05-22-2021 10:49 PM
@Scharan
As it's supposed a comma delimited user list YES and that and restart the config a nd let me know.
Created 05-24-2021 01:00 PM
Surely and any user you want to access the Yarn UI . the only condition it should be comma-delimited.
Please do that are restart the stale service and revert
Created 05-26-2021 03:43 AM
Thank you for the reply. Please note that there are groups too and the group name should be separated from the user name with space or else all will be treated as users. Source: https://docs.cloudera.com/cdp-private-cloud-base/7.1.6/yarn-security/topics/yarn-admin-acl.html