[
https://issues.apache.org/jira/browse/YARN-1681?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13888967#comment-13888967
]
Zhichun Wu commented on YARN-1681:
----------------------------------
When "banned.users" is not set, banned_users will be NULL in
container-executor.c, and "free_values(banned_users);" will be
"free_values(NULL);" and error occurs:
{code}
for(; *banned_user; ++banned_user) {
if (strcmp(*banned_user, user) == 0) {
free(user_info);
if (banned_users != (char**)DEFAULT_BANNED_USERS) {
free_values(banned_users);
}
fprintf(LOGFILE, "Requested user %s is banned\n", user);
return NULL;
}
}
{code}
> When "banned.users" is not set in LCE's container-executor.cfg, submit job
> with user in DEFAULT_BANNED_USERS will receive unclear error message
> -----------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: YARN-1681
> URL: https://issues.apache.org/jira/browse/YARN-1681
> Project: Hadoop YARN
> Issue Type: Bug
> Components: nodemanager
> Affects Versions: 2.2.0
> Reporter: Zhichun Wu
> Priority: Minor
> Labels: container
> Attachments: YARN-1681.patch
>
>
> When using LCE in a secure setup, if "banned.users" is not set in
> container-executor.cfg, submit job with user in DEFAULT_BANNED_USERS
> ("mapred", "hdfs", "bin", 0) will receive unclear error message.
> for example, if we use hdfs to submit a mr job, we may see the following the
> yarn app overview page:
> {code}
> appattempt_1391353981633_0003_000002 exited with exitCode: -1000 due to:
> Application application_1391353981633_0003 initialization failed
> (exitCode=139) with output:
> {code}
> while the prefer error message may look like:
> {code}
> appattempt_1391353981633_0003_000002 exited with exitCode: -1000 due to:
> Application application_1391353981633_0003 initialization failed
> (exitCode=139) with output: Requested user hdfs is banned
> {code}
> just a minor bug and I would like to start contributing to hadoop-common with
> it:)
--
This message was sent by Atlassian JIRA
(v6.1.5#6160)