[
https://issues.apache.org/jira/browse/TEZ-1337?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14090545#comment-14090545
]
Siddharth Seth commented on TEZ-1337:
-------------------------------------
Thinking some more on this; there's several different directories involved.
The working directory for the AM/tasks : Having to reset user.dir is primarily
because this is setup to be a DAG specific directory, which contains the
applicationId. Also this directory is set in the middle of DAG submission - so
if data is generated (with a relative path) before the DAG is submitted, this
data will not be accessible. Creating a separate jira for this, and uploading a
patch.
The local directory for AM/tasks: This is the scratch area that tasks rely
upon. This is what would end up being configurable via this jira, instead of
relying on the staging directory.
The log directory for AM/tasks: Similar to the previous one, we can just setup
a separate directory under the local mode workspace.
The staging directory continues to be used as is, and can serve as a fallback
if the local-mode specific work-dir is not specified.
In terms of modifying the working directory for AM/tasks based on configuration
- I'm not sure how useful this will be, considering it'll only happen after a
TezClient instance is created, by which time any Input for the DAG may already
have been generated to an alternate path.
> 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)