Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 8FC9A18C05 for ; Wed, 16 Sep 2015 16:15:48 +0000 (UTC) Received: (qmail 96646 invoked by uid 500); 16 Sep 2015 16:15:43 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 96590 invoked by uid 500); 16 Sep 2015 16:15:43 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 96579 invoked by uid 99); 16 Sep 2015 16:15:43 -0000 Received: from Unknown (HELO spamd3-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 16 Sep 2015 16:15:43 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd3-us-west.apache.org (ASF Mail Server at spamd3-us-west.apache.org) with ESMTP id CADF8180981 for ; Wed, 16 Sep 2015 16:15:42 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd3-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -0.121 X-Spam-Level: X-Spam-Status: No, score=-0.121 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd3-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-us-west.apache.org ([10.40.0.8]) by localhost (spamd3-us-west.apache.org [10.40.0.10]) (amavisd-new, port 10024) with ESMTP id FObYt2m_pUkf for ; Wed, 16 Sep 2015 16:15:42 +0000 (UTC) Received: from mail-ig0-f180.google.com (mail-ig0-f180.google.com [209.85.213.180]) by mx1-us-west.apache.org (ASF Mail Server at mx1-us-west.apache.org) with ESMTPS id 105DB206E8 for ; Wed, 16 Sep 2015 16:15:42 +0000 (UTC) Received: by igcpb10 with SMTP id pb10so38265653igc.1 for ; Wed, 16 Sep 2015 09:15:41 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:content-type:content-transfer-encoding; bh=GWgD4VQHmcTG/qUIddPvfDQ0tdvVJlHjLHEWpcn9DB4=; b=nPV9Vlq4dcGnr9j7ui2kBLVUG4PW3Tss7Cf5is1D6gta0k2dhHAmVWK5Cr1uCc6qS5 nIUtgeipAYEzfWMLRrLQNvB/Sggzcod2UEGWHrxhMFtbYZ3NQrFkR+aaKbh+BS+IwHbu BDuwe3QBfa/NOgE89LzKqUOPgu1KRpOrXQ8yN7s8XsdL9vOFloncWVn2G1wder1OQzWH gz3ewQFTqqND1TbHePqUhYeVsJXgNR67abbJ2g5qb77dp5+QEkJHZa2sf5nq2JSUopxr +bTfk4dx1apEPO0+p/AB7QzyMDBcuxUd21A5ZH/2vCqnlHS3oljBfETnvd9Q2tZL++oL 3XNw== X-Received: by 10.50.79.167 with SMTP id k7mr17304461igx.28.1442420141511; Wed, 16 Sep 2015 09:15:41 -0700 (PDT) Received: from hw10447.local (50-201-151-83-static.hfc.comcastbusiness.net. [50.201.151.83]) by smtp.googlemail.com with ESMTPSA id e13sm10673459ioi.1.2015.09.16.09.15.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 16 Sep 2015 09:15:40 -0700 (PDT) Message-ID: <55F995FE.1010900@gmail.com> Date: Wed, 16 Sep 2015 12:17:02 -0400 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: user@accumulo.apache.org Subject: Re: Mini Accumulo Cluster reusing the directory References: <2126681510.2170345.1442409652860.JavaMail.zimbra@scai.fraunhofer.de> In-Reply-To: <2126681510.2170345.1442409652860.JavaMail.zimbra@scai.fraunhofer.de> Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 8bit 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 >