[
https://issues.apache.org/jira/browse/YARN-5373?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15375988#comment-15375988
]
Haibo Chen commented on YARN-5373:
----------------------------------
As per offline discussion with Daniel, the cause is that in a secure cluster,
the node manager that executes container launch code runs as a user that has no
permission to read/execute the local wildcard directory that is downloaded as a
resource by the remote user. Thus, directory.listFiles() return null.
> NPE introduced by YARN-4958 (The file localization process should allow...)
> ---------------------------------------------------------------------------
>
> Key: YARN-5373
> URL: https://issues.apache.org/jira/browse/YARN-5373
> Project: Hadoop YARN
> Issue Type: Bug
> Components: nodemanager
> Affects Versions: 2.9.0
> Reporter: Haibo Chen
> Assignee: Haibo Chen
>
> YARN-4958 added support for wildcards in file localization. It introduces a
> NPE
> at
> {code:java}
> for (File wildLink : directory.listFiles()) {
> sb.symlink(new Path(wildLink.toString()), new Path(wildLink.getName()));
> }
> {code}
> When directory.listFiles returns null (only happens in a secure cluster), NPE
> will cause the container fail to launch.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]