diff --git shims/common/src/main/java/org/apache/hadoop/hive/io/HdfsUtils.java shims/common/src/main/java/org/apache/hadoop/hive/io/HdfsUtils.java index 277738f..232442c 100644 --- shims/common/src/main/java/org/apache/hadoop/hive/io/HdfsUtils.java +++ shims/common/src/main/java/org/apache/hadoop/hive/io/HdfsUtils.java @@ -150,7 +150,14 @@ static void setFullFileStatus(Configuration conf, HdfsUtils.HadoopFileStatus sou } if (aclEnabled) { if (null != aclEntries) { - fs.setAcl(target, aclEntries); + //Attempt extended Acl operations only if its enabled, but don't fail the operation regardless. + try { + fs.setAcl(target, aclEntries); + } catch (Exception e) { + LOG.info("Skipping ACL inheritance: Faied to set ACLs for path " + target + + ", but dfs.namenode.acls.enabled is set to true. "); + LOG.debug("The details are: " + e, e); + } } } else { fs.setPermission(target, sourcePerm);