private void init(Configuration conf) throws IOException { if (cluster != null) { cluster.shutdown(); } cluster = new MiniDFSCluster.Builder(conf).build(); cluster.waitClusterUp(); fileSystem = cluster.getFileSystem(); }
@Override protected void tearDown() throws Exception { cluster.shutdown(); cluster = null; super.tearDown(); }