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 3B654C1BA for ; Thu, 11 Dec 2014 13:17:07 +0000 (UTC) Received: (qmail 67334 invoked by uid 500); 11 Dec 2014 13:17:07 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 67303 invoked by uid 500); 11 Dec 2014 13:17:06 -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 65635 invoked by uid 99); 11 Dec 2014 13:17:04 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 13:17:04 +0000 X-ASF-Spam-Status: No, hits=2.2 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_NONE,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of dlmarion@comcast.net designates 96.114.154.160 as permitted sender) Received: from [96.114.154.160] (HELO resqmta-po-01v.sys.comcast.net) (96.114.154.160) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 11 Dec 2014 13:16:58 +0000 Received: from resomta-po-15v.sys.comcast.net ([96.114.154.239]) by resqmta-po-01v.sys.comcast.net with comcast id SDF81p0015AAYLo01DFdsV; Thu, 11 Dec 2014 13:15:37 +0000 Received: from resmail-ch2-129v.sys.comcast.net ([162.150.48.163]) by resomta-po-15v.sys.comcast.net with comcast id SDFd1p00E3XFKay01DFdRQ; Thu, 11 Dec 2014 13:15:37 +0000 Date: Thu, 11 Dec 2014 13:15:36 +0000 (UTC) From: dlmarion@comcast.net To: dev@accumulo.apache.org Message-ID: <999388760.2391882.1418303736974.JavaMail.zimbra@comcast.net> In-Reply-To: References: Subject: Re: Planning for (eventual) removal of instance.dfs.{uri,dir} MIME-Version: 1.0 Content-Type: multipart/alternative; boundary="----=_Part_2391881_1081648.1418303736973" X-Originating-IP: [::ffff:63.239.65.11] X-Mailer: Zimbra 8.0.7_GA_6031 (ZimbraWebClient - FF31 (Win)/8.0.7_GA_6031) Thread-Topic: Planning for (eventual) removal of instance.dfs.{uri,dir} Thread-Index: kT9EJKKJkHK7v8We0GeMAVQEQlTOPA== DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=comcast.net; s=q20140121; t=1418303737; bh=CriX81Oe6ecLj9UUGpr4eFBc44szKxVXlAr0THVZO3M=; h=Received:Received:Date:From:To:Message-ID:Subject:MIME-Version: Content-Type; b=lT1qRR/8G5ZXizjfwi+88QPvVhY7wZDXRcYssCRcYzp/w7PVaW3u4A7fwJ9ZzmNnG XEt1f3LpP4XQtEvRTKbyOrT+A1N04wJgcemO1cAiaV5Hb31Gj+LNy/PxPZTKZuB3au lOPHdCxhNPnggAPT9XGjP0m0muCd3YYtbwMia7AWZOuuuFZWhlu9ty/crhzpuNE2yK asQc5el8oTvJ6Cduuq4z09+RR1MAmLKeknOBVG/cqJ4yTdh+WUJr8k/lz3YUx+Pz6b AOAC4SH3hscF+LkW7v19S6zHTfhiWlt1zSTnZfImI/COZODOlZgkv/MTT03JLD0Mut WNIOavEtcJqxg== X-Virus-Checked: Checked by ClamAV on apache.org ------=_Part_2391881_1081648.1418303736973 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit How so? If someone upgrades from another version and is using a different dir, doesn't specify it in the configuration, and we assume /accumulo, then their database won't start. The other option, which may be safer than making any assumptions, is to make instance.volumes a required parameter with no defaults. ----- Original Message ----- From: "Christopher" To: "Accumulo Dev List" Sent: Wednesday, December 10, 2014 11:51:39 PM Subject: Re: Planning for (eventual) removal of instance.dfs.{uri,dir} The URI is probably reasonable, but the dir is potentially problematic if you weren't using the default. -- Christopher L Tubbs II http://gravatar.com/ctubbsii On Wed, Dec 10, 2014 at 10:03 PM, dlmarion wrote: > Looks like VolumeConfiguration falls back to fs.defaultFS for the uri and > /accumulo for the dir. You could remove both properties and still keep this > as the documented default behavior if instance.volumes is not specified. > > > >
-------- Original message --------
From: Christopher < > ctubbsii@apache.org>
Date:12/10/2014 9:13 PM (GMT-05:00) >
To: Accumulo Dev List >
Cc:
Subject: Re: Planning for (eventual) removal of > instance.dfs.{uri,dir}
>
My ACCUMULO-2589 branch in github ( > https://github.com/ctubbsii/accumulo/tree/ACCUMULO-2589) does have a > commit > that drops a bunch of stuff (which may or may not be accepted as is for > 2.0). The instance.dfs.{uri,dir} properties aren't so easy and require more > planning, because it's not just removing a property... it's also dealing > with updating internal data by making relative paths absolute. > > For what it's worth, I'm also looking at what changes if we drop Hadoop 1 > support. > > As for the validation of config, I think we do a sanity check on startup > already, which we can always extend. Doesn't solve this issue, though. > > > -- > Christopher L Tubbs II > http://gravatar.com/ctubbsii > > On Wed, Dec 10, 2014 at 8:59 PM, dlmarion wrote: > > > We should schedule a bunch of deprecated things for removal in 2.0 to > ease > > maintenance. Do we have a way to validate the site.xml and zookeeper > > settings before startup and fail with appropriate error message. > > > > > > > >
-------- Original message --------
From: Christopher < > > ctubbsii@apache.org>
Date:12/10/2014 8:44 PM (GMT-05:00) > >
To: Accumulo Dev List > >
Cc:
Subject: Planning for (eventual) removal of > > instance.dfs.{uri,dir}
> >
So, > > > > instance.volumes replaces instance.dfs.uri and instance.dfs.dir in 1.6. > > But, what's our long-term plan for these? I ask, because we still have > > internal code that uses instance.dfs.uri to resolve relative paths. > > > > Should we force these to be re-written at some point (maybe on upgrade to > > 1.7)? Should we continue to support the deprecated properties > indefinitely > > and continue the lazy re-write-on-compact? Do we transition by requiring > > instance.volumes to specify the volumes, and only use the old properties > to > > resolve relative paths? > > > > My personal view is that we should provide an upgrade-prep/check tool > prior > > to upgrade to 2.0, which checks and/or re-writes paths and verifies that > > instance.volumes is set. > > > > Does anybody have a different opinion on this? > > > > -- > > Christopher L Tubbs II > > http://gravatar.com/ctubbsii > > > ------=_Part_2391881_1081648.1418303736973--