2
我试图更改文件权限。该文件驻留在HDFS中,当我试图将权限设置为某个文件的777时,它只给出读写权限,而不给该文件的执行权限。如何更改hadoop文件系统中的文件权限
这是我的尝试:
[email protected]:/home/BATCH62# ll
total 56
drwxrwxrwx 2 root root 4096 2016-02-12 04:40 ./
drwxr-xr-x 16 root root 4096 2016-02-12 01:21 ../
-rwxrwxrwx 1 root root 40209 2016-03-10 19:22 processes.log*
-rwxrwxrwx 1 root root 111 2016-03-10 19:18 sample.log*
-rwxrwxrwx 1 root root 144 2016-02-12 04:32 test.log*
[email protected]:/home/BATCH62# mv test.log poc.log
[email protected]:/home/BATCH62# ll
total 56
drwxrwxrwx 2 root root 4096 2016-02-12 04:40 ./
drwxr-xr-x 16 root root 4096 2016-02-12 01:21 ../
-rwxrwxrwx 1 root root 144 2016-02-12 04:32 poc.log*
-rwxrwxrwx 1 root root 40209 2016-03-10 19:22 processes.log*
-rwxrwxrwx 1 root root 111 2016-03-10 19:18 sample.log*
[email protected]:/home/BATCH62# hadoop fs -put /hdfs61
Usage: java FsShell [-put <localsrc> ... <dst>]
[email protected]:/home/BATCH62# hadoop fs -put poc.log /hdfs61
[email protected]:/home/BATCH62# hadoop fs -ls /hdfs61
Found 5 items
-rw-rw-rw- 1 root supergroup 144 2016-02-12 04:35 /hdfs61/owner.log
-rw-r--r-- 1 root supergroup 144 2016-02-12 04:41 /hdfs61/poc.log
-rw-rw-rw- 1 root supergroup 111 2016-02-12 01:29 /hdfs61/sample.log
-rw-rw-rw- 1 root supergroup 111 2016-02-12 00:51 /hdfs61/sample_.log
-rw-r--r-- 1 root supergroup 144 2016-02-12 04:37 /hdfs61/users.log
[email protected]:/home/BATCH62# hadoop fs -chmod 777 /hdfs61/poc.log
[email protected]:/home/BATCH62# hadoop fs -ls /hdfs61
Found 5 items
-rw-rw-rw- 1 root supergroup 144 2016-02-12 04:35 /hdfs61/owner.log
-rw-rw-rw- 1 root supergroup 144 2016-02-12 04:41 /hdfs61/poc.log
-rw-rw-rw- 1 root supergroup 111 2016-02-12 01:29 /hdfs61/sample.log
-rw-rw-rw- 1 root supergroup 111 2016-02-12 00:51 /hdfs61/sample_.log
-rw-r--r-- 1 root supergroup 144 2016-02-12 04:37 /hdfs61/users.log
[email protected]:/home/BATCH62#
谁能告诉我我做错了什么???
谢谢。