@AfterClass
public static void tearDown() throws Exception {
WebHDFSClient webHDFSClient = new WebHDFSClient(
outboundConfigurationBuilder
.destination(testFileUrl)
.credentials(new ConnectionCredentials("hadoop", null))
.build());
Assert.assertTrue(webHDFSClient.delete(true));
webHDFSClient = new WebHDFSClient(
outboundConfigurationBuilder
.destination(String.format("http://%s:%s/webhdfs/v1/mkdirstest", host, port))
.credentials(new ConnectionCredentials("hadoop", null))
.dataTypes(OutboundDataType.EVENT) //doesn't matter in this context
.build());
Assert.assertTrue(webHDFSClient.delete(true));
}