HDFS Directory Replication Inheritance: Limitations and Workarounds
Is there a way to configure a non-default replication factor for a HDFS directory such that all future files and sub-directories in that directory use that specific replication factor? Currently, we are using a work around of running a daemon process to set the replication factor for all files in the required directory.
Is there a better way to do this?
while true; do
hdfs dfs -setrep -w 2 /tmp/
sleep 30
done
I see at one point there was this JIRA https://issues.apache.org/jira/browse/HDFS-199 opened but is blocked by this JIRA [https://issues.apache.org/jira/browse/HADOOP-4771]

