Class InitCommand

  • All Implemented Interfaces:

    public class InitCommand
    extends BookieCommand<CliFlags>
    Initializes new cluster by creating required znodes for the cluster. If ledgersrootpath is already existing then it will error out. If for any reason it errors out while creating znodes for the cluster, then before running initnewcluster again, try nuking existing cluster by running nukeexistingcluster. This is required because ledgersrootpath znode would be created after verifying that it doesn't exist, hence during next retry of initnewcluster it would complain saying that ledgersrootpath is already existing.