HDFS-5595: WIP 5