Home | About | Sematext search-lucene.com search-hadoop.com
 Search Hadoop and all its subprojects:

Switch to Threaded View
Accumulo >> mail # dev >> Is there an option to disable the init command?

Copy link to this message
Re: Is there an option to disable the init command?
On Mon, May 6, 2013 at 5:36 PM, David Medinets <[EMAIL PROTECTED]>wrote:

> Unless you're dumb like and put --clear-instance-name into a script.

This option does not delete any data in hdfs or zookeeper.  If the
directory exist in hdfs, then the init command should still fail.  If you
are using a new dir in hdfs and an existing instance name, then that option
will change a pointer in zookeeper, but it will not delete anything in
zookeeper.   The all the data related in instance is stored under a UUID in
zookeeper.  There is a mapping in zookeeper from instance name to instance
id.   The clear instance name option causes this mapping to be set even if
the name exist.  You can go into zookeeper and point the name back to the
old id.

> On Mon, May 6, 2013 at 5:35 PM, Christopher <[EMAIL PROTECTED]> wrote:
> > Init will fail if Accumulo has already been initialized.
> >
> > --
> > Christopher L Tubbs II
> > http://gravatar.com/ctubbsii
> >
> >
> > On Mon, May 6, 2013 at 5:22 PM, David Medinets <[EMAIL PROTECTED]
> >
> > wrote:
> > > Today I thought about how bad it would be to accidentally initialize
> > > Accumulo in production. Is there a way to disable the init command? Or
> is
> > > it as simple as not giving that privilege to a user?
> >