accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From William Slacum <wilhelm.von.cl...@accumulo.net>
Subject Re: Preferred method for a client to obtain a connector reference
Date Thu, 30 May 2013 20:06:10 GMT
There's an almost identical method that, instead of a CharSequence or
byte[], takes an AuthorizationToken object. If you're using user/password,
use a PasswordToken (I think that's the name of the object).


On Thu, May 30, 2013 at 4:00 PM, Newman, Elise
<enewman@integrity-apps.com>wrote:

>  Okay, I was just wondering if there was another preferred way, since
> Instance.getConnector is marked as deprecated.****
>
> ** **
>
> Thanks!****
>
> ** **
>
> ** **
>
> *From:* Adam Fuchs [mailto:afuchs@apache.org]
> *Sent:* Thursday, May 30, 2013 12:57 PM
> *To:* user@accumulo.apache.org
> *Subject:* Re: Preferred method for a client to obtain a connector
> reference****
>
> ** **
>
> Elise,****
>
> You'll want to use instance.getConnector(...), where instance is probably
> a ZookeeperInstance.****
>
> Cheers,
> Adam****
>
> On May 30, 2013 3:20 PM, "Newman, Elise" <enewman@integrity-apps.com>
> wrote:****
>
> Hello!****
>
>  ****
>
> Stupid question: What is the preferred way for a client to get a connector
> reference? The SimpleClient example uses
> org.apache.accumulo.core.client.Instance.getConnector, but that method
> appears to be deprecated (I’m using a snapshot of Accumulo 1.6).****
>
>  ****
>
> Thanks!****
>
> Elise****
>
>  ****
>

Mime
View raw message