YARN-4603. FairScheduler should mention user requested queuename in error message when failed in queue ACL check. (Tao Jie via kasha)

(cherry picked from commit 4992398aee)
This commit is contained in:
Karthik Kambatla 2016-01-21 17:40:59 +01:00
parent 4e6fc3ca18
commit 5c2f495fcc
2 changed files with 5 additions and 1 deletions

View File

@ -43,6 +43,9 @@ Release 2.9.0 - UNRELEASED
YARN-4559. Make leader elector and zk store share the same curator client.
(Jian He via xgong)
YARN-4603. FairScheduler should mention user requested queuename in error
message when failed in queue ACL check. (Tao Jie via kasha)
OPTIMIZATIONS
BUG FIXES

View File

@ -656,7 +656,8 @@ public class FairScheduler extends
if (!queue.hasAccess(QueueACL.SUBMIT_APPLICATIONS, userUgi)
&& !queue.hasAccess(QueueACL.ADMINISTER_QUEUE, userUgi)) {
String msg = "User " + userUgi.getUserName() +
" cannot submit applications to queue " + queue.getName();
" cannot submit applications to queue " + queue.getName() +
"(requested queuename is " + queueName + ")";
LOG.info(msg);
rmContext.getDispatcher().getEventHandler()
.handle(new RMAppEvent(applicationId,