[ https://issues.apache.org/jira/browse/TEZ-4084?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16975391#comment-16975391 ]
Jonathan Turner Eagles commented on TEZ-4084: --------------------------------------------- Thanks [~jtolar]. +1. Committed this change to master and branch-0.9 > Tez local mode fails when distributed cache creates link with parent > -------------------------------------------------------------------- > > Key: TEZ-4084 > URL: https://issues.apache.org/jira/browse/TEZ-4084 > Project: Apache Tez > Issue Type: Improvement > Reporter: Jacob Tolar > Assignee: Jacob Tolar > Priority: Minor > Attachments: TEZ-4084.1.patch, TEZ-4084.2.patch, TEZ-4084.3.patch > > > If you configure distributed cache with 'target#parent/link' in Tez Local > Mode, the file cannot be created and the job fails: > {code:java} > java.lang.IllegalArgumentException: Invalid prefix or suffix > at java.nio.file.TempFileHelper.generatePath(TempFileHelper.java:63) > at java.nio.file.TempFileHelper.create(TempFileHelper.java:127) > at > java.nio.file.TempFileHelper.createTempDirectory(TempFileHelper.java:173) > at java.nio.file.Files.createTempDirectory(Files.java:950) > at > org.apache.tez.dag.app.launcher.TezLocalCacheManager.localize(TezLocalCacheManager.java:103) > {code} > > I propose: > # Ensure the prefix is always valid (e.g. no path separators in it) when > creating the temporary copy of the file in TezLocalCacheManager > # Update tez local mode to behave the same way as mapreduce local mode in > this scenario. Mapreduce local mode also doesn't support these types of links > (links with a parent directory specified), but if it encounters them it is a > soft failure (WARN log message) not a job failure. > > It is somewhat trickier to correctly support cache files linked with a > nonexistent parent; if that feature is required it can be done as a separate > JIRA. -- This message was sent by Atlassian Jira (v8.3.4#803005)