ZooKeeper not starting because acceptedEpoch is less than the currentEpoch

It worked, I just did:

cp currentEpoch acceptedEpoch

in a zookeeper data directory, and it started without any problem.


This did solve the problem,

cp ~/zookeeper/version-2/currentEpoch ~/zookeeper/version-2/acceptedEpoch

actual reason for this is issue is time sync b/w the zookeeper nodes