[ 
https://issues.apache.org/jira/browse/TEZ-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14089548#comment-14089548
 ] 

Siddharth Seth commented on TEZ-1337:
-------------------------------------

[~airbots] - I'm not sure the patch will work as intended. Have you had a 
chance to try this after TEZ-1343 went in ?

The tasks setup a FileSystem instance to read from the specified paths. This 
ends up reading from the System "user.dir" parameter to figure out the base 
directory for the file system (when using fs.defaultFS).

fs.setWorkingDirectory(baseDir); - this call on the client will have no effect 
on the running tasks, since they run under a separate UGI - and FileSystem 
caching is not available to them.

I believe the user.dir system property needs to be updated with this new 
directory.
Also, this property should be reset back to what it was after a DAG completes 
(failure, success etc).

Also, instead of setting up the local dir in the ContainerLauncher - this can 
be setup in the client itself. The directory likely needs to be created 
up-front as well.

> Handling of local-dirs for Local Mode
> -------------------------------------
>
>                 Key: TEZ-1337
>                 URL: https://issues.apache.org/jira/browse/TEZ-1337
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Siddharth Seth
>            Assignee: Chen He
>            Priority: Blocker
>         Attachments: TEZ-1337.patch
>
>
> staging dir is being used to write intermediate data. At some point, it may 
> be worthwhile to confgure a separate work area. IAC, these should be cleaned 
> up  - at least the intermediate data after a local session executes.



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Reply via email to