Search This Blog

Enabling and disabling ACLs in HDFS

ACLs commands setfacl and getfacl provide advanced permission management in HDFS. We will learn how to enable/disable ACLs in HDFS using Apache Ambari.

ACLs are disabled by default . We need to modify/add ACLs property to enable ACLs in HDFS.


Search hdfs config for dfs.namenode.acls.enabled property in Ambari , you get no results if property not defined yet.

goto HDFS  -------- Configs  --------- enter dfs.namenode.acls.enabled in filter box


We need to add  ACL property dfs.namenode.acls.enabled if not present already.

goto hdfs  ---->  configs  ------> Advanced ------- > custom hdfs-site ---------->  Add property -----> enter dfs.namenode.acls.enabled=true   ---- Click Add


Click Save button and name latest configuration for example acl property added.


Restart  services those show restart symbol.

The following picture shows restart symbol for HDFS, YARN and Mapreduce2 services.


Search property like in step 1 and confirm property is added.


If property is already there just change property value from false to true to enable ACLs in HDFS.


If ACLs already enabled , You can disable by setting property dfs.namenode.acls.enabled to false using same above steps.

No comments:

Post a Comment