public static void main(String[] args) throws Exception { File tmpDir = new File(FileUtils.getTempDirectory(), "macc-" + UUID.randomUUID().toString()); try { MiniAccumuloCluster la = new MiniAccumuloCluster(tmpDir, "pass1234", new HashMap<String, String>()); la.start(); System.out.println( "\n ---- Running Accumulo App against accumulo-" + la.getAccumuloVersion() + "\n"); run(la.getInstanceName(), la.getZookeepers(), new PasswordToken("pass1234"), args); System.out.println("\n ---- Ran Accumulo App\n"); la.stop(); } finally { FileUtils.deleteQuietly(tmpDir); } }
@AfterClass public static void tearDownMiniCluster() throws Exception { accumulo.stop(); }