Search in sources :

Example 6 with AfterClass

use of org.junit.AfterClass in project hadoop by apache.

the class TestHttpCookieFlag method cleanup.

@AfterClass
public static void cleanup() throws Exception {
    server.stop();
    FileUtil.fullyDelete(new File(BASEDIR));
    KeyStoreTestUtil.cleanupSSLConfig(keystoresDir, sslConfDir);
    clientSslFactory.destroy();
}
Also used : File(java.io.File) AfterClass(org.junit.AfterClass)

Example 7 with AfterClass

use of org.junit.AfterClass in project hadoop by apache.

the class TestMiniMRClientCluster method cleanup.

@AfterClass
public static void cleanup() throws IOException {
    // clean up the input and output files
    final Configuration conf = new Configuration();
    final FileSystem fs = testdir.getFileSystem(conf);
    if (fs.exists(testdir)) {
        fs.delete(testdir, true);
    }
    // stopping the mini cluster
    mrCluster.stop();
}
Also used : YarnConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration) Configuration(org.apache.hadoop.conf.Configuration) FileSystem(org.apache.hadoop.fs.FileSystem) AfterClass(org.junit.AfterClass)

Example 8 with AfterClass

use of org.junit.AfterClass in project hadoop by apache.

the class TestAdlSupportedCharsetInPath method testReport.

@AfterClass
public static void testReport() throws IOException, URISyntaxException {
    if (!AdlStorageConfiguration.isContractTestEnabled()) {
        return;
    }
    FileSystem fs = AdlStorageConfiguration.createStorageConnector();
    fs.delete(new Path(TEST_ROOT), true);
}
Also used : Path(org.apache.hadoop.fs.Path) FileSystem(org.apache.hadoop.fs.FileSystem) AfterClass(org.junit.AfterClass)

Example 9 with AfterClass

use of org.junit.AfterClass in project hadoop by apache.

the class TestAHSWebServices method tearDownClass.

@AfterClass
public static void tearDownClass() throws Exception {
    if (historyClientService != null) {
        historyClientService.stop();
    }
    fs.delete(new Path(remoteLogRootDir), true);
    fs.delete(new Path(rootLogDir), true);
}
Also used : Path(org.apache.hadoop.fs.Path) AfterClass(org.junit.AfterClass)

Example 10 with AfterClass

use of org.junit.AfterClass in project hadoop by apache.

the class TestClientRMTokens method tearDown.

@AfterClass
public static void tearDown() {
    Configuration conf = new Configuration();
    conf.setBoolean(CommonConfigurationKeys.HADOOP_SECURITY_TOKEN_SERVICE_USE_IP, false);
    SecurityUtil.setConfiguration(conf);
}
Also used : Configuration(org.apache.hadoop.conf.Configuration) YarnConfiguration(org.apache.hadoop.yarn.conf.YarnConfiguration) AfterClass(org.junit.AfterClass)

Aggregations

AfterClass (org.junit.AfterClass)202 File (java.io.File)76 DalHints (com.ctrip.platform.dal.dao.DalHints)23 Path (org.apache.hadoop.fs.Path)14 FileSystem (org.apache.hadoop.fs.FileSystem)13 HashMap (java.util.HashMap)12 IOException (java.io.IOException)10 ModelNode (org.jboss.dmr.ModelNode)8 StatementParameters (com.ctrip.platform.dal.dao.StatementParameters)7 ScenarioConfiguration (org.apache.hadoop.mapred.nativetask.testutil.ScenarioConfiguration)7 FileOutputStream (java.io.FileOutputStream)6 RelationManager (edu.uci.ics.textdb.storage.RelationManager)5 ClientException (edu.umass.cs.gnscommon.exceptions.client.ClientException)5 Configuration (org.apache.hadoop.conf.Configuration)5 HttpSolrClient (org.apache.solr.client.solrj.impl.HttpSolrClient)5 Method (java.lang.reflect.Method)4 SQLException (java.sql.SQLException)4 Statement (java.sql.Statement)4 LoggerContext (org.apache.logging.log4j.core.LoggerContext)4 GuidEntry (edu.umass.cs.gnsclient.client.util.GuidEntry)3