hadoop-common-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Harsh J (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (HADOOP-6804) allow FileSystem.copyFromLocalFile() to execute under specified username
Date Sun, 19 Jun 2011 05:25:47 GMT

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

Harsh J commented on HADOOP-6804:

No I do not think the CLI utilities have this in their code. They directly try as the user
you are running.

Since am not very clear on this one but willing to work a bit on it, could you tell me why
is this required?

> allow FileSystem.copyFromLocalFile() to execute under specified username
> ------------------------------------------------------------------------
>                 Key: HADOOP-6804
>                 URL: https://issues.apache.org/jira/browse/HADOOP-6804
>             Project: Hadoop Common
>          Issue Type: Improvement
>          Components: util
>    Affects Versions: 0.20.2
>            Reporter: Ted Yu
>            Priority: Minor
> When the user calling FileSystem.copyFromLocalFile() doesn't have permission to write
to certain hdfs path:
> Thread [main] (Suspended (exception AccessControlException))   
>     DFSClient.mkdirs(String, FsPermission) line: 905   
>     DistributedFileSystem.mkdirs(Path, FsPermission) line: 262   
>     DistributedFileSystem(FileSystem).mkdirs(Path) line: 1162   
>     FileUtil.copy(FileSystem, Path, FileSystem, Path, boolean, boolean, Configuration)
line: 194   
>     DistributedFileSystem(FileSystem).copyFromLocalFile(boolean, boolean, Path, Path)
line: 1231   
>     DistributedFileSystem(FileSystem).copyFromLocalFile(boolean, Path, Path) line: 1207
>     DistributedFileSystem(FileSystem).copyFromLocalFile(Path, Path) line: 1179   
>     GridM2mInstallation.copyInputFiles(FlowConfigurations$FlowConf) line: 380   
> Passwordless ssh has been setup for current user, tyu, on localhost and user hadoop on
> FileSystem.copyFromLocalFile() should be able to execute using a different username than
effective user on localhost so that AccessControlException can be avoided.

This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira


View raw message