hadoop-common-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Edward J. Yoon" <edwardy...@apache.org>
Subject Re: map reduce permission
Date Tue, 02 Sep 2008 09:59:06 GMT
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 <hadoop.kim@gmail.com> 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

Mime
View raw message