svn merge -c 1586079 from trunk for HDFS-6209. TestValidateConfigurationSettings should use random ports.