hadoop-mapreduce-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Abhishek Gayakwad <a.gayak...@gmail.com>
Subject hdfs -copyToLocal file permission
Date Mon, 10 Jun 2013 11:07:24 GMT
Hi,

While copying file from hdfs file permissions are getting changed, my
assumption was that while copying permissions should be retained. Is this
behavior correct ?


[abhishek@int019 ~]$ hdfs dfs -ls
drwxr-xr-x   - abhishek abhishek          0 2013-06-06 10:14 in-dir1

[abhishek@int019 ~]$ hdfs dfs -ls in-dir1
Found 2 items
-rw-r--r--   3 abhishek abhishek          0 2013-06-06 10:10
in-dir1/_SUCCESS
*-rw-r--r-- *  3 abhishek abhishek 5000000000 2013-06-06 10:10
in-dir1/part-00001

[abhishek@int019 ~]$ hdfs dfs -copyToLocal in-dir1/part-00001
[abhishek@int019 ~]$ ll
total 4887604
*-rwxr-xr-x* 1 abhishek abhishek 5000000000 Jun 10 06:08 part-00001
[abhishek@int019 ~]$ umask
0002

f*s.permissions.umask-mode* is not set so I think it defaults to 0022

Thanks,
Abhishek

Mime
View raw message