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

Hitesh Shah commented on TEZ-290:
---------------------------------

[~jeagles] We noticed that hive uses a scratch dir with less restrictive 
permissions and this end up causing a bit of confusion when we modified their 
scratch dir's permission. The main question is as to who owns the staging dir? 
Is it the user or the framework?

One option might be to throw an error when the directory is already present and 
its permissions are not secure enough - would that work instead of overriding 
the perms specified by a user?  



> TezClientUtils::ensureStagingDirExists()  needs cleaning up
> -----------------------------------------------------------
>
>                 Key: TEZ-290
>                 URL: https://issues.apache.org/jira/browse/TEZ-290
>             Project: Apache Tez
>          Issue Type: Sub-task
>            Reporter: Hitesh Shah
>            Assignee: Jonathan Eagles
>         Attachments: TEZ-290-v1.patch
>
>
> API is meant to validate and/or create the staging dir. Returns a filesystem 
> object. Requires a very fixed permission value for the dir if dir already 
> created. Should allow more permissive values as long as there is read/write 
> access.
>   



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

Reply via email to