hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Vinay Kumar Thota (JIRA)" <j...@apache.org>
Subject [jira] Commented: (HADOOP-6869) [Herriot] Implement a functionality for creating either file or folder in task attempt folder while job is running.
Date Fri, 23 Jul 2010 06:13:50 GMT

    [ https://issues.apache.org/jira/browse/HADOOP-6869?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=12891486#action_12891486
] 

Vinay Kumar Thota commented on HADOOP-6869:
-------------------------------------------

Hi Cos, I do agree with you. However my requirement is creating the user define files and
folders in task attempt id folder with different kind of permissions while job is running.
Later while cleaning up, i just wanted make sure whether all the user defined files and folders
are cleaned up or not for that job. So that I have defined the above methods for fulfilling
my requirement. As my understand, i don't think so, the FileSystem is providing the no such
straight forward methods(createNewFile and createNewFolder) like you mentioned.

In the four methods, the first method creates the files with full permission.Suppose if user
wants to give his own permissions while creating file in that case he can use the second method.Same
way for folder creation also.

bq. also you are writing some content into this file which seems to be an inadvertent side-effect.
Doesn't look like a good idea

I will remove this part in the code.



> [Herriot] Implement a functionality for creating either file or folder in task attempt
 folder while job is running.
> --------------------------------------------------------------------------------------------------------------------
>
>                 Key: HADOOP-6869
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6869
>             Project: Hadoop Common
>          Issue Type: Task
>          Components: test
>            Reporter: Vinay Kumar Thota
>            Assignee: Vinay Kumar Thota
>         Attachments: 6869-ydist-security.patch, HADOOP-6869.patch
>
>
> Functionality for creating either files or folders in task attempt folder while job is
running. The functionality covers the following methods.
> 1. public void DaemonProtocol.createFile(String path, String fileName, boolean local)
throws IOException; 
> It uses to create a file with full permissions.
> 2.   public void DaemonProtocol.createFile(String path, String fileName, FsPermission
permission, boolean local) throws IOException; 
> It uses to create a file with given permissions.
> 3.   public void DaemonProtocol.createFolder(String path, String folderName, boolean
local) throws IOException;
> It uses to create a file with full permissions.
> 4.   public void DaemonProtocol.createFolder(String path, String folderName, FsPermission
permission, boolean local) throws IOException;
> It uses to create a folder with given permissions.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message