Class UpgradeMain
- java.lang.Object
-
- org.apache.zookeeper.server.upgrade.UpgradeMain
-
@Public public class UpgradeMain extends java.lang.Object
This class upgrades the older database to a new database for the zookeeper servers. The way to run it is java -class path zookeeper.jar Upgrade dataDir snapShotDir or using zookeeper scripts with zkServer -upgrade dataDir snapShotDir it creates a backup in the dataDir/.bkup and snapShotDir/.bkup which can be retrieved back to the snapShotDir and dataDir
-
-
Constructor Summary
Constructors Constructor Description UpgradeMain(java.io.File dataDir, java.io.File snapShotDir)
upgrade class that takes the two file directories.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static void
main(java.lang.String[] argv)
void
runUpgrade()
run the upgrade
-