Class InitCommand
java.lang.Object
org.apache.bookkeeper.tools.framework.CliCommand<BKFlags,CommandFlagsT>
org.apache.bookkeeper.tools.common.BKCommand<BookieFlagsT>
org.apache.bookkeeper.tools.cli.helpers.BookieCommand<CliFlags>
org.apache.bookkeeper.tools.cli.commands.bookies.InitCommand
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.
-
Field Summary
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.bookkeeper.tools.cli.helpers.BookieCommand
applyMethods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, applyMethods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
Constructor Details
-
InitCommand
public InitCommand()
-
-
Method Details
-
apply
- Specified by:
applyin classBookieCommand<CliFlags>
-