Best as I can tell, we don't actually have the ability to do this.
We can use external ZooKeeper servers and we can start a MAC instance on top of an already running ZK from a different MAC instance, but it doesn't look like we have the ability to reuse the same storage directory.
That sounds like a useful improvement to me. I'm not sure if there are any edge cases that make this hard (haven't thought enough about it).
Want to open a JIRA issue for it, Sven? - Josh Sven Hodapp wrote:
Hi there, is it possible for MiniAccumuloCluster to reuse a given directory? Sadly, I haven't found anything in the docs? I’ll fire up my instance like this: val dict = new File("/tmp/accumulo-mini-cluster") val accumulo = new MiniAccumuloCluster(dict, "test“) If I’ll restart my JVM it will raise a error like this: Exception in thread "main" java.lang.IllegalArgumentException: Directory /tmp/accumulo-mini-cluster is not empty It would be nice if the data can survive a JVM restart and the folder structure must not be constructed every time. Thanks a lot! Regards, Sven