/** * * @param dir a local directory to be created * @return the created path * @throws java.io.IOException */ public static Path getTestDir(String dir) throws IOException { Path path = new Path(dir); FileSystem fs = FileSystem.getLocal(new Configuration()); cleanupTestDir(dir); fs.mkdirs(path); return fs.makeQualified(path); }
/** * * @param dir a local directory to be created * @return the created path * @throws java.io.IOException */ public static Path getTestDir(String dir) throws IOException { Path path = new Path(dir); FileSystem fs = FileSystem.getLocal(new Configuration()); cleanupTestDir(dir); fs.mkdirs(path); return fs.makeQualified(path); }
@AfterClass public static void tearDownClass() throws Exception { CommonTestingUtil.cleanupTestDir(rootFilePath.toUri().getPath()); }
@TearDown public void tearDown() throws IOException { CommonTestingUtil.cleanupTestDir(TEST_PATH); util.shutdownCatalogCluster(); }
@After public void tearDown() throws Exception { CommonTestingUtil.cleanupTestDir(TEST_PATH); util.shutdownCatalogCluster(); }
@After public void tearDown() throws Exception { CommonTestingUtil.cleanupTestDir(TEST_PATH); util.shutdownCatalogCluster(); }
CommonTestingUtil.cleanupTestDir(scoreLargePath.toString());