hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Konstantin Boudnik (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 18:36:53 GMT

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

Konstantin Boudnik commented on HADOOP-6869:
--------------------------------------------

bq. my requirement is creating the user define files and folders in task attempt id folder
with different kind of permissions while job is running

This reasoning sounds like an argument to move this functionality up the stack to the MR cluster
concrete implementation. But let's suppose they are useful enough and let them be in the Common.

bq. 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.

I do understand that. What I have said is that you need a generic enough method which does
most of needed functionality (i.e. create a file with specified permissions) and a wrapper
around it which creates a file with all permissions. The implementation of the latter is essentially
a call to the former with *all* permissions being passed. This is already done in this very
patch for the implementation of {{createFolder(..)}} methods. Look at your own 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