Make CephFileSystem tell Hadoop that the owner
of all files is the current user. This provides
zero security or isolation, but allows Hadoop
to be used with its default security settings.
A future solution will need to be developed that
provides some isolation, and gives a better user
experience.
This fixes tracker issue #1663
Signed-off-by: Noah Watkins <noahwatkins@gmail.com>
status = new FileStatus(lstat.size, lstat.is_dir,
ceph.ceph_replication(abs_path.toString()), lstat.block_size,
lstat.mod_time, lstat.access_time,
- new FsPermission((short) lstat.mode), null, null,
+ new FsPermission((short) lstat.mode), System.getProperty("user.name"), null,
new Path(fs_default_name + abs_path.toString()));
} else { // fail out
throw new FileNotFoundException(