You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@accumulo.apache.org by David Medinets <da...@gmail.com> on 2013/05/16 05:19:36 UTC

MockInstance difference between 1.4.2 and 1.4.3 - getConnector password must be blank?

The following bit of code works with the v1.4.2 jars but fails with the
v1.4.3 jars.

        Instance mock = new MockInstance();
        Connector connector = mock.getConnector("root",
"password".getBytes());

Using a blank password, as below, works in both releases.

        Instance mock = new MockInstance();
        Connector connector = mock.getConnector("root", "".getBytes());

Is my understanding correct?

Re: MockInstance difference between 1.4.2 and 1.4.3 - getConnector password must be blank?

Posted by John Vines <vi...@apache.org>.
That is correct. In 1.4.2 and before, mock would treat root like any other
user and create the user with the password provided the first time. In
1.4.3+, the root user is automatically generated with the empty password.

Sent from my phone, please pardon the typos and brevity.
On May 15, 2013 8:20 PM, "David Medinets" <da...@gmail.com> wrote:

> The following bit of code works with the v1.4.2 jars but fails with the
> v1.4.3 jars.
>
>         Instance mock = new MockInstance();
>         Connector connector = mock.getConnector("root",
> "password".getBytes());
>
> Using a blank password, as below, works in both releases.
>
>         Instance mock = new MockInstance();
>         Connector connector = mock.getConnector("root", "".getBytes());
>
> Is my understanding correct?
>