accumulo-notifications mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Michael Wall (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (ACCUMULO-2143) Add convenience method to get ZooKeeper access with MiniAccumuloCluster
Date Mon, 24 Mar 2014 17:40:44 GMT

    [ https://issues.apache.org/jira/browse/ACCUMULO-2143?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13945402#comment-13945402
] 

Michael Wall commented on ACCUMULO-2143:
----------------------------------------

Josh, I started it but it wasn't much.  It is at home, but something like

public ZooKeeper getZookeeper() {
  return new Zookeeper(config.getZookeepers(), 30000, null);
}

I thought about creating a Zookeeper object as part of the start, and then
having getZookeeper return that.  The benefit would be the MAC could handle
the close.  But it would only be one object.

I also thought about making an array of returned Zookeeper objects, one for
every call to getZookeeper.  This again would allow the MAC to close them
on MAC.close.

Don't worry about anything I worked on though, it was small.






> 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)

Mime
View raw message