accumulo-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From John Vines <>
Subject Re: Re-init Accumulo over existing installation
Date Thu, 05 Jul 2012 15:35:25 GMT
Responding inline

On Thu, Jul 5, 2012 at 11:16 AM, Krishmin Rai <> wrote:

> Hi All,
>   We've recently encountered a strange situation on a small test cluster:
> after an awkward crash, our ZooKeeper data was erased and we no longer have
> the [accumulo] znode. The HDFS accumulo directory is intact, so all the
> RFiles and etc are still there, but it's not clear how best to bring
> Accumulo back up to its previous state. Obviously just starting Accumulo
> as-is complains about the missing znode ("Waiting for accumulo to be
> initialized"), whereas re-initializing is not possible over existing HDFS
> directories ("It appears this location was previously initialized,
> exiting").
>   A couple of questions about recovery strategies:
> 1) Is there any way to re-create the znode for a previous instance-id? My
> understanding is that ZK is mostly used to store ephemeral data (such as
> which tserver is currently responsible for which tablets) and things like
> users (which we could re-create), so perhaps this is plausible?

Theoretically, this is possible. But there could be issues with the ACLs
involved with some pieces of the user space. Zookeeper also stores table
configuration info. I suggest that rather then trying to regenerate
zookeeper in the proper fashion you move the accumulo HDFS directory to teh
side, create a new instance, recreate the users and tables, and then bulk
import the old instance's table files into the new accumulo instance.

> 2) I imagine that I could init Accumulo with a new instance.dfs.dir, then
> import the RFiles from the old installation back in. I see Patrick just
> asked a related question, so, with the data integrity caveats, I would
> essentially be following the last of the steps in ACCUMULO-456.

Answered above.

> 3) This is a vague question, but have any of you had experience with the
> [accumulo] znode being entirely deleted? Aside from stopping/starting ZK
> (3.3.5) and Accumulo 1.4.0 (possibly with a force-quit), I'm not sure what
> we could have done to actually delete it.

The biggest cause for this I've seen is people leaving their zookeeper data
directory in /tmp. I would start there.

> This is just a test instance, and the data could easily be recreated, but
> I want to take this opportunity to learn a little more about Accumulo
> plumbing and maintenance.
> Thanks,
> Krishmin

View raw message