Set hdfs dir permission for hdfsSnapshotSpec