Accumulo fails to start, Waiting for accumulo to be initialized

Also manifests as “Instance Id does not exist in Zookeeper”.

I was trying to set up a standalone instance of Hadoop + Zookeeper + Accumulo yesterday and found that after every reboot I needed to destroy and recreate my Accumulo instance, otherwise it wouldn’t connect to Zookeeper. It didn’t seem to make a difference whether I did a clean shutdown or not.

Turns out I didn’t read zoo.cfg very carefully:

# the directory where the snapshot is stored.
# do not use /tmp for storage, /tmp here is just 
# example sakes.
dataDir=/tmp

Make sure that your Zookeeper data is being saved in a spot where it won’t get blown away on every reboot!