FAQ
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").

Search Discussions

  • Edward J. Yoon at Sep 2, 2008 at 9:59 am
    Are you mean that It is possible to collect super group files in
    mapred? I think this is a good tip.

    BTW, Is there no access control matrix on HDFS?

    -Ed
    On Tue, Sep 2, 2008 at 6:23 PM, hyoung jun kim wrote:
    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").


    --
    Best regards, Edward J. Yoon
    edwardyoon@apache.org
    http://blog.udanax.org

Related Discussions

Discussion Navigation
viewthread | post
Discussion Overview
groupcommon-dev @
categorieshadoop
postedSep 2, '08 at 9:23a
activeSep 2, '08 at 9:59a
posts2
users2
websitehadoop.apache.org...
irc#hadoop

2 users in discussion

Edward J. Yoon: 1 post Hyoung jun kim: 1 post

People

Translate

site design / logo © 2022 Grokbase