Class CatalogMfsUtils

java.lang.Object
org.apache.polaris.service.catalog.CatalogMfsUtils

public class CatalogMfsUtils extends Object
  • Constructor Details

    • CatalogMfsUtils

      public CatalogMfsUtils()
  • Method Details

    • buildACEStrForUsers

      public static String buildACEStrForUsers(String users) throws IOException
      Build string with ACE to allow users access to catalog
      Parameters:
      users - - list of users that should have access to catalog
      Returns:
      ACE in string format
      Throws:
      IOException
    • changeCatalogAce

      public static void changeCatalogAce(org.apache.hadoop.maprfs.AbstractMapRFileSystem fs, String location, String users) throws IOException
      Change ACE for catalog directory
      Throws:
      IOException
    • changeCatalogDirectoryPermission

      public static void changeCatalogDirectoryPermission(String location, String users, String catalogName)
      Set ACE for users to catalog directory at MFS or set public ACE if catalog-users property is unset