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 53FAC17970 for ; Thu, 6 Nov 2014 00:33:19 +0000 (UTC) Received: (qmail 51365 invoked by uid 500); 6 Nov 2014 00:33:19 -0000 Delivered-To: apmail-accumulo-dev-archive@accumulo.apache.org Received: (qmail 51317 invoked by uid 500); 6 Nov 2014 00:33:19 -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 51300 invoked by uid 99); 6 Nov 2014 00:33:18 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 00:33:18 +0000 X-ASF-Spam-Status: No, hits=-0.7 required=5.0 tests=RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (nike.apache.org: domain of josh.elser@gmail.com designates 209.85.216.49 as permitted sender) Received: from [209.85.216.49] (HELO mail-qa0-f49.google.com) (209.85.216.49) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 06 Nov 2014 00:32:51 +0000 Received: by mail-qa0-f49.google.com with SMTP id i13so23783qae.36 for ; Wed, 05 Nov 2014 16:32:05 -0800 (PST) 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=Cjms9YaZd9x+U/rBwDPIbRloHV3/mWVHZi86M04gfxA=; b=dq6NcjXh97C2ZlYpAQMFR5asSTItOWkGvbZRGsx5ofgGpzKC64q5Ze/Wc9qZkx1oUz JWxQDuGDVT+P+Lopd7ZFS+RAny8tU1QfjOq0b7P8Vh8xLEMpJKinPzJM4OQyWg8zH5C3 G1XD6pkoepir0gjdu1ak/Sa7YTgU/j2MlaO/bHbumkj20I47DJCKZ0g/EhNaIg34GPUY 0kWN69jNoB9xbVg0OnJ+AKGSHOXd+p0bs1XW9QZmUkIAzKNqoRvEeG0dgwLv/Pn5D0F0 uqSDOSDWm6cEcDc7dP5KX30Uqj2EuV2iwgzS5CYDt8hus/4McinEFNOK4/7GrLfxn694 qCBQ== X-Received: by 10.224.120.135 with SMTP id d7mr1581330qar.10.1415233925543; Wed, 05 Nov 2014 16:32:05 -0800 (PST) Received: from HW10447.local (pool-71-166-48-231.bltmmd.fios.verizon.net. [71.166.48.231]) by mx.google.com with ESMTPSA id w7sm4547247qge.17.2014.11.05.16.32.04 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Wed, 05 Nov 2014 16:32:04 -0800 (PST) Message-ID: <545AC17D.3030503@gmail.com> Date: Wed, 05 Nov 2014 19:31:57 -0500 From: Josh Elser User-Agent: Postbox 3.0.11 (Macintosh/20140602) MIME-Version: 1.0 To: dev@accumulo.apache.org Subject: Re: TabletLocator API stability / alternates? References: In-Reply-To: Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org I don't think there is any class/method that we consider to be in our "Public API" that does what you want. You're also not the first one that has tried to do something using TabletLocator and has been bitten by it (https://issues.apache.org/jira/browse/ACCUMULO-2594). At this point, I think we should look at bringing tablet locality into the public API for 1.7.0 or 2.0.0. Would you be interested in filing an issue on JIRA and helping to flesh out the functionality requirements? Chris Bennight wrote: > So we have some code (a custom input format for data persisted in accumulo > with a custom indexing scheme (geospatial/n-dimensional)): > > https://github.com/ngageoint/geowave/blob/GEOWAVE-84-squash/geowave-accumulo/src/main/java/mil/nga/giat/geowave/accumulo/mapreduce/input/GeoWaveInputFormat.java#L355 > > The intent behind this was to provide better locality and split information > since we have a bit more application specific knowledge available than the > general use case. > > I'm pretty sure there's no other way to get this locality information other > than using the TableLocator class. > > The arguments + ordering change for TCredentials to Credentials and the > method signature from getInstance() to getLocator() are the two things > breaking our 1.5.1 -> 1.6.x compatibility. > (specifically: > https://github.com/apache/accumulo/commit/99da5641c28784c7b717cce6749673863c2ec8cf#diff-c45768534f53d5455cc05c75676fb871R49 > https://github.com/apache/accumulo/commit/446a37a9795f2df7adc841154ca05add79cf286e#diff-c45768534f53d5455cc05c75676fb871R95 > ) > > It's pretty obvious from the diff these were intentional - so no joy there > in accidental changes that could be fixed. > > Are we just to far down in the weeds, and are going to have to deal with > supporting multiple versions/breaking changes (via refactoring, dropping > support, or maven-munge maybe), or is this class/methods/signatures > expected to be pretty stable now? > > (Or is there a better/more supported way of getting tablet locality > information?) >