/** * Creates a new local Alluxio master with an isolated work directory and port. * * @return an instance of Alluxio master */ public static LocalAlluxioMaster create() throws IOException { String workDirectory = uniquePath(); FileUtils.deletePathRecursively(workDirectory); ServerConfiguration.set(PropertyKey.WORK_DIR, workDirectory); return create(workDirectory, null, null); }
/** * Creates a new local Alluxio master with an isolated work directory and port. * * @return an instance of Alluxio master */ public static LocalAlluxioMaster create() throws IOException { String workDirectory = uniquePath(); FileUtils.deletePathRecursively(workDirectory); Configuration.set(PropertyKey.WORK_DIR, workDirectory); return create(workDirectory); }