/** * Restarts the master(s). */ public void restartMasters() throws Exception { stopMasters(); startMasters(); }
/** * Stops the masters, formats them, and then restarts them. This is useful if a fresh state is * desired, for example when restoring from a backup. */ public void formatAndRestartMasters() throws Exception { stopMasters(); Format.format(Format.Mode.MASTER, ServerConfiguration.global()); startMasters(); }
/** * 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(); }
/** * Restarts the master(s). */ public void restartMasters() throws Exception { stopMasters(); startMasters(); }
/** * Stops the masters, formats them, and then restarts them. This is useful if a fresh state is * desired, for example when restoring from a backup. */ public void formatAndRestartMasters() throws Exception { stopMasters(); Format.format(Format.Mode.MASTER); startMasters(); }
/** * 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(); }