help with Azure Data Lake REST interface


  • I wrote a program that uses the ADLS REST interface to go through all of the folders and files in a data lake instance and modify their POSIX permissions to match our standard.

    I am extending the program to also modify the ADLS ACLs.

    When I query the current settings using GETACLSTATUS I get back a JSON string that is somewhat consistent with the documentation.

    I modified that JSON and sent it back using SETACL I get an error : "Invalid ACL: the user, group and other entries are required"

    I tried multiple other ACLSPEC formats like “entries” list only, individual user and group ACLs, etc and got that same error.

    How can I get the correct Acl Spec for the SETACL REST operation?

    Output from GETACLSTATUS:



    Tuesday, April 9, 2019 2:21 PM


All replies

  • found the answer:
    The acl_spec must include entries for user, group, and others for compatibility with permission bits.
    Example "user::rw-,user:hadoop:rw-,group::r--,other::r--" 
    Friday, April 12, 2019 6:28 PM
  • Hi Steve,

    Glad to know that your issue has resolved. And thanks for sharing the solution, which might be beneficial to other community members reading this thread. 

    Monday, April 15, 2019 6:07 AM