This is an automated email from the ASF dual-hosted git repository. amagyar pushed a commit to branch trunk in repository https://gitbox.apache.org/repos/asf/ambari.git
The following commit(s) were added to refs/heads/trunk by this push: new 2c0687a AMBARI-25139 Yarn Capacity Scheduler Authorization issues due to AuthToLocal Rules (asnaik) (#2807) 2c0687a is described below commit 2c0687ab1cb8a4ecb35715c8b632a764003c070b Author: Akhil S Naik <asn...@hortonworks.com> AuthorDate: Thu Feb 7 15:31:20 2019 +0530 AMBARI-25139 Yarn Capacity Scheduler Authorization issues due to AuthToLocal Rules (asnaik) (#2807) * AMBARI-25139 Yarn Capacity Scheduler Authorization issues due to AuthToLocal Rules (asnaik) * AMBARI-25139 Yarn Capacity Scheduler Authorization issues due to AuthToLocal Rules (asnaik) * AMBARI-25139 Yarn Capacity Scheduler Authorization issues due to AuthToLocal Rules (asnaik) --- .../org/apache/ambari/view/capacityscheduler/ConfigurationService.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java index 6784317..5a95a62 100644 --- a/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java +++ b/contrib/views/capacity-scheduler/src/main/java/org/apache/ambari/view/capacityscheduler/ConfigurationService.java @@ -316,7 +316,7 @@ public class ConfigurationService { */ private boolean isOperator() { - String url = String.format(AMBARI_OR_CLUSTER_ADMIN_PRIVILEGE_URL, context.getUsername(), context.getCluster().getName()); + String url = String.format(AMBARI_OR_CLUSTER_ADMIN_PRIVILEGE_URL, context.getLoggedinUser(), context.getCluster().getName()); try { String response = ambariApi.readFromAmbari(url, "GET", null, null);