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
-
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.
-
-
Field Summary
-
Fields inherited from class org.apache.bookkeeper.tools.framework.CliCommand
spec
-
-
Constructor Summary
Constructors Constructor Description InitCommand()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
apply(ServerConfiguration conf, CliFlags cmdFlags)
-
Methods inherited from class org.apache.bookkeeper.tools.cli.helpers.BookieCommand
apply
-
Methods inherited from class org.apache.bookkeeper.tools.common.BKCommand
acceptServiceUri, apply, apply, apply
-
Methods inherited from class org.apache.bookkeeper.tools.framework.CliCommand
category, description, getUsage, name, path, setParent, usage
-
-
-
-
Method Detail
-
apply
public boolean apply(ServerConfiguration conf, CliFlags cmdFlags)
- Specified by:
apply
in classBookieCommand<CliFlags>
-
-