YARN-2677 registry punycoding of usernames doesn't fix all usernames to be  DNS-valid (stevel)
HDFS-7035. Make adding a new data directory to the DataNode an atomic operation and improve error handling (Lei Xu via Colin P. McCabe)
(cherry picked from commit a9331fe9b071fdcdae0c6c747d7b6b306142e671)