/** * Starts both master and a worker using the configurations in test conf respectively. */ public void start() throws Exception { // Disable HDFS client caching to avoid file system close() affecting other clients System.setProperty("fs.hdfs.impl.disable.cache", "true"); resetClientPools(); setupTest(); startMasters(); startWorkers(); startProxy(); // Reset contexts so that they pick up the updated configuration. reset(); }
/** * Stops both the alluxio and underfs service threads. */ public void stop() throws Exception { stopFS(); reset(); LoginUserTestUtils.resetLoginUser(); ServerConfiguration.reset(); }
/** * Starts both master and a worker using the configurations in test conf respectively. */ public void start() throws Exception { // Disable HDFS client caching to avoid file system close() affecting other clients System.setProperty("fs.hdfs.impl.disable.cache", "true"); resetClientPools(); setupTest(); startMasters(); // Reset the file system context to make sure the correct master RPC port is used. FileSystemContext.get().reset(Configuration.global()); startWorkers(); startProxy(); // Reset contexts so that they pick up the updated configuration. reset(); }
/** * Stops both the alluxio and underfs service threads. */ public void stop() throws Exception { stopFS(); reset(); LoginUserTestUtils.resetLoginUser(); ConfigurationTestUtils.resetConfiguration(); }