Return-Path: X-Original-To: apmail-accumulo-notifications-archive@minotaur.apache.org Delivered-To: apmail-accumulo-notifications-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 0475C10E16 for ; Wed, 26 Mar 2014 00:49:06 +0000 (UTC) Received: (qmail 20743 invoked by uid 500); 26 Mar 2014 00:48:30 -0000 Delivered-To: apmail-accumulo-notifications-archive@accumulo.apache.org Received: (qmail 20579 invoked by uid 500); 26 Mar 2014 00:48:22 -0000 Mailing-List: contact notifications-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: jira@apache.org Delivered-To: mailing list notifications@accumulo.apache.org Received: (qmail 20568 invoked by uid 99); 26 Mar 2014 00:48:21 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 26 Mar 2014 00:48:21 +0000 Date: Wed, 26 Mar 2014 00:48:21 +0000 (UTC) From: "Josh Elser (JIRA)" To: notifications@accumulo.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (ACCUMULO-2143) Add convenience method to get ZooKeeper access with MiniAccumuloCluster MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/ACCUMULO-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13947404#comment-13947404 ] Josh Elser commented on ACCUMULO-2143: -------------------------------------- (aside: this is a little tangential, but since I'm already on a soapbox for this and it impacts how this ticket will be played out). It doesn't make sense to me why MiniAccumuloCluster is a concrete class which, ultimately still tied to a MiniAccumuloClusterImpl. MiniAccumuloCluster *requires* a MiniAccumuloClusterImpl or something that extends it. This is what's really chafing me about the separation of "accumulo user" and "accumulo developer" methods -- you *always* have them both. Not to mention, this hierarchy is really obnoxious to create a new implementation of AccumuloMiniCluster(Impl) because I have to carry all of the cruft of the "original" implementation with me. Bringing this back around to this ticket, while I still don't agree with the reasoning that exposing the FileSystem or ZooKeeper object that MiniAccumuloClusterImpl is getting us anything other than the ability to say "we didn't change this [arbitrary] API". For "users" who might not care what the underlying FileSystem or ZooKeeper connection, it's merely an extra two items in their editor's code-completion. For "users" who would care to use this information, we now make them jump through extra hoops to get it. That just doesn't make any sense to me for something we haven't even released. To be honest, I really want to re-open ACCUMULO-2151, make MiniAccumuloCluster an interface, MiniAccumuloClusterImpl an implementation of said interface, and create some factory class to make instances, ala Connector.tableOperations, Connector.securityOperations, etc. Right now there's a class we call an "API" that cannot be generically extended for the sake of saying "we have an API". > Add convenience method to get ZooKeeper access with MiniAccumuloCluster > ----------------------------------------------------------------------- > > Key: ACCUMULO-2143 > URL: https://issues.apache.org/jira/browse/ACCUMULO-2143 > Project: Accumulo > Issue Type: Improvement > Components: mini > Reporter: Josh Elser > Assignee: Michael Wall > Labels: newbie > Fix For: 1.7.0 > > > When using MAC, it may be convenient to get a ZooKeeper object (or a ZooReaderWriter). > The user has the ability to figure out or set all of the information they need to make their own connection, but it would be nice to just have a {{MiniAccumuloCluster.getZooKeeper()}} method. -- This message was sent by Atlassian JIRA (v6.2#6252)