hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "hyoung jun kim" <hadoop....@gmail.com>
Subject map reduce permission
Date Tue, 02 Sep 2008 09:23:09 GMT
Hi,
To get supergroup's file access mode is possible in map&reduce class.
I wrote a code like this

class MyMap implements Mapper {
  public void map(...) {
     Configuration conf = new Configuration();
     FileSystem fs = FileSystem.get(conf);
     fs.open(new Path("/user/supergroup_user/file_name");
  }
}

If no "hadoop.job.ugi" property in configuration, UserGroupInformation class
uses linux user(run shell command "whoami").

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