hadoop-common-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Ted Yu <yuzhih...@gmail.com>
Subject AccessControlException when calling copyFromLocalFile()
Date Wed, 02 Jun 2010 18:56:40 GMT
Hi,
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 Namenode.
I want to get opinion on how I can programmatically get pass the above
exception - by specifying user as hadoop, maybe ?

Thanks

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message