linux+hadoop 权限管理

in 系统环境
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9

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 添加组和 用户

  1. 创建组
groupadd query
  1. 新用户加入组
useradd -g query query
  1. 老用户加入另外一个组
usermod -a -G root query
[root@com ~]# groups query
query : query root
[root@com ~]# usermod -G query query
[root@com ~]# groups query
query : query

  1. 删除组
关注公众号【好便宜】( ID:haopianyi222 ),领红包啦~
阿里云,国内最大的云服务商,注册就送数千元优惠券:https://t.cn/AiQe5A0g
腾讯云,良心云,价格优惠: https://t.cn/AieHwwKl
搬瓦工,CN2 GIA 优质线路,搭梯子、海外建站推荐: https://t.cn/AieHwfX9
扫一扫关注公众号添加购物返利助手,领红包
Comments are closed.

推荐使用阿里云服务器

超多优惠券

服务器最低一折,一年不到100!

朕已阅去看看