Preserving permissions during replication

During replication, you can preserve owner or user permissions, group permissions, and HDFS ACLs in source and target clusters.

You can append the DistCp command line options in any combination (u for user, g for group, p for permission, and a for ACL) to the distcp.options command to preserve the permissions during Hive replication. The other DistCp command line options that you can use are r for replication number, b for block size, c for checksum-type, x for XAttr, and t for timestamp.
You obtained superuser privileges to preserve the user and group permissions, and HDFS ACLs.
Set the DistCp command line options using the WITH clause in the REPL LOAD and REPL DUMP commands.
REPL LOAD [***database name***] FROM  [***directory name***] WITH distcp.options.puga
Owner or user permissions, group permissions, and ACLs are preserved.