0
点赞
收藏
分享

微信扫一扫

hdfs权限配置场景

目的:

开启权限验证,希望可以上传文件到hdfs,但是不允许在页面上删除


方法1:

编辑hdfs-site.xml,开启权限验证,并设置web端访问用户为自定义用户,这样在web端访问时候,用户对应为user、group、other中的other,自然没有删除权限。

<property>
<name>dfs.permissions.enabled</name>
<value>true</value>
</property>
<property>
<name>hadoop.http.staticuser.user</name>
<value>user</value>
</property>

上传时候,使用命令上传,不通过web上传。

hadoop fs -copyFromLocal nohup.out /DIFFLIST/nohup.txt

方法2:

待研究hdfs权限

举报

相关推荐

0 条评论