public static void setFullFileStatus(Configuration conf, HdfsUtils.HadoopFileStatus sourceStatus,
      String targetGroup, FileSystem fs, Path target, boolean recursion) {
    setFullFileStatus(conf, sourceStatus, targetGroup, fs, target, recursion, recursion ? new FsShell() : null);
  }
Copy the permissions, group, and ACLs from a source {@link HadoopFileStatus} to a target {@link Path}. This method
will only log a warning if permissions cannot be set, no exception will be thrown.

@param conf the {@link Configuration} used when setting permissions and ACLs
@param sourceStatus the source {@link HadoopFileStatus} to copy permissions and ACLs from
@param targetGroup the group of the target {@link Path}, if this is set and it is equal to the source group, an
                   extra set group operation is avoided
@param fs the {@link FileSystem} that contains the target {@link Path}
@param target the {@link Path} to copy permissions, group, and ACLs to
@param recursion recursively set permissions and ACLs on the target {@link Path}
shims/common/src/main/java/org/apache/hadoop/hive/io/HdfsUtils.java