[
https://issues.apache.org/jira/browse/YARN-9717?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Szilard Nemeth reassigned YARN-9717:
------------------------------------
Assignee: Peter Bacsko (was: Szilard Nemeth)
> Add more logging to container-executor about issues with directory creation
> or permissions
> ------------------------------------------------------------------------------------------
>
> Key: YARN-9717
> URL: https://issues.apache.org/jira/browse/YARN-9717
> Project: Hadoop YARN
> Issue Type: Improvement
> Reporter: Szilard Nemeth
> Assignee: Peter Bacsko
> Priority: Major
>
> During some downstream testing we bumped into some problems with the
> container executor where an extra logging would be quite helpful when local
> files and directories could not be created (container-executor.c:1810).
> The most important log line could be the following:
> There's a function called create_container_directories in
> container-executor.c.
> We should place a log line like this:
> Before we're calling:
> We have:
> {code:java}
> if (mkdirs(container_dir, perms) == 0) {
> result = 0;
> }
> {code}
> We could add an else statement and add the following log, if creating the
> directory was not successful:
> {code:java}
> fprintf(LOGFILE, "Failed to create directory: %s, user: %s", container_dir,
> user);
> {code}
> This way, CE at least prints the directory itself if we have any permission
> issue while trying to create a subdirectory or file under it.
> If we want to be very precise, some logging into the mkdirs function could
> also be added as well.
--
This message was sent by Atlassian JIRA
(v7.6.14#76016)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]