Return-Path: X-Original-To: apmail-accumulo-dev-archive@www.apache.org Delivered-To: apmail-accumulo-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id D4E1610B52 for ; Tue, 23 Jul 2013 17:12:03 +0000 (UTC) Received: (qmail 26446 invoked by uid 500); 23 Jul 2013 17:12:03 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 26330 invoked by uid 500); 23 Jul 2013 17:12:03 -0000 Mailing-List: contact dev-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@accumulo.apache.org Delivered-To: mailing list dev@accumulo.apache.org Received: (qmail 26322 invoked by uid 99); 23 Jul 2013 17:12:03 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 17:12:03 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of eric.newton@gmail.com designates 209.85.212.172 as permitted sender) Received: from [209.85.212.172] (HELO mail-wi0-f172.google.com) (209.85.212.172) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 23 Jul 2013 17:11:57 +0000 Received: by mail-wi0-f172.google.com with SMTP id c10so3292327wiw.5 for ; Tue, 23 Jul 2013 10:11:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=w0xyF2He3sFexXiQ+w8HZWtj8jiR33Qc9wY7gjMnfvs=; b=P+o9PFPz5qrNZX/75VsONAFwqLC9NXCrekY/gptPFundC+Om8RoOCq4chvZe6WZ/MN 0OItKQ+yeJZLk00ePUBeR77ISheBZOqH/ScQMG8nlTZqEFK/Xb6k/rJoDAqcIic77EC+ Zrbo5fXcGT+s9BnKnQZC6gYVc9dxHKWgBQ5uRwZ5kWYCgPg5UA2ybU+NjiHF5mPiuDPt CH8guIaQb4I0JjLZoAwTeZnAUNK4I3xxQM2xI8a0vVMvwTTxz4MVDYsge8EROF/0tSPQ FKrRe21DIVcQdfsNqMToPg8Pfs0ltRJCk0n2eqxXSJD1Ap1XqxwHHQEI7vEXN7joAQ1S 4Ugg== MIME-Version: 1.0 X-Received: by 10.194.158.102 with SMTP id wt6mr23721890wjb.27.1374599497326; Tue, 23 Jul 2013 10:11:37 -0700 (PDT) Received: by 10.216.179.72 with HTTP; Tue, 23 Jul 2013 10:11:37 -0700 (PDT) In-Reply-To: References: Date: Tue, 23 Jul 2013 13:11:37 -0400 Message-ID: Subject: Re: Config in ZooKeeperInstance From: Eric Newton To: dev@accumulo.apache.org Content-Type: multipart/alternative; boundary=089e013c63e8bf29f704e230e2f8 X-Virus-Checked: Checked by ClamAV on apache.org --089e013c63e8bf29f704e230e2f8 Content-Type: text/plain; charset=ISO-8859-1 +1 for removing it from Instance On Tue, Jul 23, 2013 at 12:14 PM, Christopher wrote: > It only returns the default config if you don't call > setConfiguration(), which appears to be almost always (except > TestIngest). > > I don't know that this API is clearly spelled out, as to its intended > purpose. Which configuration is it supposed to be getting, and how > does that relate to the ZooKeeperInstance? The only configuration a > ZooKeeperInstance has is the minimum needed to connect to other > servers. It still has to authenticate to read any other server > configuration. > > Personally, I'd be in favor of removing it from Instance interface, > unless we actually document what it is supposed to be for to justify > its utility in, and relationship to, the Instance interface. > > -- > Christopher L Tubbs II > http://gravatar.com/ctubbsii > > > On Tue, Jul 23, 2013 at 10:44 AM, Michael Berman > wrote: > > I was surprised to find that ZooKeeperInstance.getConfiguration() seems > to > > return only the default configuration rather than the configuration > stored > > in ZK. Is this the expected behavior? I came across this in a MacTest, > so > > if other people are also surprised, it may be a MAC or MacTest-specific > > issue, in which case I'm happy to track it down. > > > > If this is currently the expected behavior, how would people feel about > > changing it? It seems like it would be useful to have a config channel > to > > ZooKeeperInstance clients (in my case, what I'm specifically interested > in > > is whether or not SSL is enabled). There may be a potential for > privileged > > information to escape...table settings, for example, may be sensitive... > > But all the really secret stuff should be in the site.xml which wouldn't > > get exposed. > > > > For reference, ZooKeeperInstance's getConfiguration() is implemented as: > > AccumuloConfiguration.getDefaultConfiguration() > > > > whereas HdfsZooInstance's getConfiguration() is: > > ZooConfiguration.getInstance(this, getSiteConfiguration()) > > > > My proposal would be to change ZooKeeperInstance's to something like: > > ZooConfiguration.getInstance(this, > > AccumuloConfiguration.getDefaultConfiguration()) > > > > Michael > --089e013c63e8bf29f704e230e2f8--