Return-Path: X-Original-To: apmail-accumulo-user-archive@www.apache.org Delivered-To: apmail-accumulo-user-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E8EF10338 for ; Fri, 24 Oct 2014 03:28:07 +0000 (UTC) Received: (qmail 57400 invoked by uid 500); 24 Oct 2014 03:28:07 -0000 Delivered-To: apmail-accumulo-user-archive@accumulo.apache.org Received: (qmail 57346 invoked by uid 500); 24 Oct 2014 03:28:06 -0000 Mailing-List: contact user-help@accumulo.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: user@accumulo.apache.org Delivered-To: mailing list user@accumulo.apache.org Received: (qmail 57336 invoked by uid 99); 24 Oct 2014 03:28:06 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 03:28:06 +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 busbey@cloudera.com designates 209.85.213.50 as permitted sender) Received: from [209.85.213.50] (HELO mail-yh0-f50.google.com) (209.85.213.50) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 24 Oct 2014 03:27:41 +0000 Received: by mail-yh0-f50.google.com with SMTP id a41so2221137yho.37 for ; Thu, 23 Oct 2014 20:26:54 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:content-type; bh=FDoJUfwEvnwRX0Yv7/CDs331f0rDMmRxW/chDHdbo1A=; b=IZoLEzJt+2SSEEhywbK4s3sk2XZfxhUm2E78HMDYfGUtGRQzbcF8wntaVwB10mio9g /prtHuhxSEzvhmKg0GRUEKq1etPQXCKrVtDMXXuYpjq0Hvl35hZoJztEd8BWlP55mzZp gWlJ0mpC8zF9PEIb0VDLjU2KagomxjC1zvJhUps8xnnoJQjK+XHwZgORALHwoyVJShau 8aLGpZMZ9bkvZY9F8ogeNl4RtLSfqMCXtX9CdmpoLsBBbka5gjVM5PqU+hg698A8Q3jG r7agZYG4jXJoaDgfZWb6tB0P9d6H+lydd6kly5aN0r64/ykQMJIcndcWhij85m5JeZ+D ey7Q== X-Gm-Message-State: ALoCoQnfnFx55NpML+ZH5/2l6F993Yl3UvsFPVSfM0G2n8QjD+Jb8S3DjoaXI5H4h0vTLGBMUrOm X-Received: by 10.170.170.194 with SMTP id m185mr2105713ykd.54.1414121214626; Thu, 23 Oct 2014 20:26:54 -0700 (PDT) MIME-Version: 1.0 Received: by 10.229.104.136 with HTTP; Thu, 23 Oct 2014 20:26:34 -0700 (PDT) In-Reply-To: <5449B6ED.7030609@gmail.com> References: <5449B6ED.7030609@gmail.com> From: Sean Busbey Date: Thu, 23 Oct 2014 22:26:34 -0500 Message-ID: Subject: Re: Accumulo version at runtime? To: Accumulo User List Content-Type: multipart/alternative; boundary=001a1139674eaae6dd050622c09c X-Virus-Checked: Checked by ClamAV on apache.org --001a1139674eaae6dd050622c09c Content-Type: text/plain; charset=UTF-8 If you need something now and are willing to do some hackiness, there are a couple of options depending on what kind of access to the cluster you have. These are not things one should do, so drop me a note off list if you want to pursue it. On Thu, Oct 23, 2014 at 9:18 PM, Josh Elser wrote: > There is https://issues.apache.org/jira/browse/ACCUMULO-1826 which you > could follow and help get into 1.7.0 :) > > Mike Drob wrote: > >> Unfortunately, I don't think we have a way to do this. Are you trying to >> check for the existence of a particular feature, or what is your goal? >> >> On Thu, Oct 23, 2014 at 6:44 PM, Dylan Hutchison > > wrote: >> >> Easy question Accumulators: >> >> Is there an easy way to grab the version of a running Accumulo >> instance programmatically from Java code in a class that connects >> to the instance? >> >> Something like: >> >> Instance instance = new >> ZooKeeperInstance("instanceName","zookeeper_address"); >> String version = instance.getInstanceVersion(); >> >> >> Thanks, Dylan >> >> -- www.cs.stevens.edu/~dhutchis > dhutchis> >> >> >> -- Sean --001a1139674eaae6dd050622c09c Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable
If you need something now and are willing to do some hacki= ness, there are a couple of options depending on what kind of access to the= cluster you have.

These are not things one should do, s= o drop me a note off list if you want to pursue it.

On Thu, Oct 23, 2014 at 9:1= 8 PM, Josh Elser <josh.elser@gmail.com> wrote:
There is https://issues.apache.org/ji= ra/browse/ACCUMULO-1826 which you could follow and help get into 1.7.0 = :)

Mike Drob wrote:
Unfortunately, I don't think we have a way to do this. Are you trying t= o check for the existence of a particular feature, or what is your goal?
On Thu, Oct 23, 2014 at 6:44 PM, Dylan Hutchison <dhutchis@stevens.edu <mailto:dhutchis@stevens.edu= >> wrote:

=C2=A0 =C2=A0 Easy question Accumulators:

=C2=A0 =C2=A0 Is there an easy way to grab the version of a running Accumul= o
=C2=A0 =C2=A0 instance programmatically from Java code in a class that conn= ects
=C2=A0 =C2=A0 to the instance?

=C2=A0 =C2=A0 Something like:

=C2=A0 =C2=A0 =C2=A0 =C2=A0 Instance instance =3D new
=C2=A0 =C2=A0 =C2=A0 =C2=A0 ZooKeeperInstance("instanceName&quo= t;,"zookeeper_address");
=C2=A0 =C2=A0 =C2=A0 =C2=A0 String version =3D instance.getInstanceVersion(= );


=C2=A0 =C2=A0 Thanks, Dylan

=C2=A0 =C2=A0 --=C2=A0 =C2=A0 =C2=A0www.cs.stevens.edu/~dhutchis <http://www.cs.steven= s.edu/~dhutchis>





--
Sean
--001a1139674eaae6dd050622c09c--