@Override public void initConfiguration() throws IOException { setAlluxioWorkDirectory(); setHostname(); for (Map.Entry<PropertyKey, String> entry : ConfigurationTestUtils .testConfigurationDefaults(ServerConfiguration.global(), mHostname, mWorkDirectory) .entrySet()) { ServerConfiguration.set(entry.getKey(), entry.getValue()); } ServerConfiguration.set(PropertyKey.MASTER_RPC_PORT, 0); ServerConfiguration.set(PropertyKey.TEST_MODE, true); ServerConfiguration.set(PropertyKey.MASTER_WEB_PORT, 0); ServerConfiguration.set(PropertyKey.PROXY_WEB_PORT, 0); ServerConfiguration.set(PropertyKey.WORKER_RPC_PORT, 0); ServerConfiguration.set(PropertyKey.WORKER_WEB_PORT, 0); }