hadoop体系权限
[root@com ~]# hadoop fs -mkdir /tmp/tmp_authority
[root@com ~]# hadoop fs -ls -h /tmp
Found 7 items
drwxrwxrwx - hdfs supergroup 0 2014-12-15 15:45 /tmp/.cloudera_health_monitoring_canary_files
drwxr-xr-x - yarn supergroup 0 2014-10-16 15:07 /tmp/hadoop-yarn
drwxrwxrwx - hive supergroup 0 2014-10-30 15:03 /tmp/hive-hive
drwxrwxrwx - nobody supergroup 0 2014-12-15 14:39 /tmp/hive-nobody
drwxr-xr-x - root supergroup 0 2014-12-15 15:36 /tmp/hive-root
drwxrwxrwt - mapred hadoop 0 2014-10-13 16:53 /tmp/logs
drwxr-xr-x - root supergroup 0 2014-12-15 15:45 /tmp/tmp_authority
[root@com ~]# hadoop fs -chgrp -R root /tmp/tmp_authority
[root@com ~]# hadoop fs -ls -h /tmp
Found 7 items
drwxrwxrwx - hdfs supergroup 0 2014-12-15 15:46 /tmp/.cloudera_health_monitoring_canary_files
drwxr-xr-x - yarn supergroup 0 2014-10-16 15:07 /tmp/hadoop-yarn
drwxrwxrwx - hive supergroup 0 2014-10-30 15:03 /tmp/hive-hive
drwxrwxrwx - nobody supergroup 0 2014-12-15 14:39 /tmp/hive-nobody
drwxr-xr-x - root supergroup 0 2014-12-15 15:36 /tmp/hive-root
drwxrwxrwt - mapred hadoop 0 2014-10-13 16:53 /tmp/logs
drwxr-xr-x - root root 0 2014-12-15 15:45 /tmp/tmp_authority
linux 添加组和 用户
- 创建组
groupadd query
- 新用户加入组
useradd -g query query
- 老用户加入另外一个组
usermod -a -G root query
[root@com ~]# groups query
query : query root
[root@com ~]# usermod -G query query
[root@com ~]# groups query
query : query
- 删除组