Package org.apache.bookkeeper.bookie
Class BookieShell.InitNewCluster
java.lang.Object
org.apache.bookkeeper.bookie.BookieShell.MyCommand
org.apache.bookkeeper.bookie.BookieShell.InitNewCluster
- All Implemented Interfaces:
BookieShell.Command
- Enclosing class:
- BookieShell
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.bookie.BookieShell.MyCommand
cmdName, opts -
Constructor Summary
Constructors -
Method Summary
Methods inherited from class org.apache.bookkeeper.bookie.BookieShell.MyCommand
description, printUsage, runCmd
-
Constructor Details
-
InitNewCluster
InitNewCluster()
-
-
Method Details
-
getOptions
org.apache.commons.cli.Options getOptions()- Specified by:
getOptionsin classBookieShell.MyCommand
-
getDescription
String getDescription()- Specified by:
getDescriptionin classBookieShell.MyCommand
-
getUsage
String getUsage()- Specified by:
getUsagein classBookieShell.MyCommand
-
runCmd
- Specified by:
runCmdin classBookieShell.MyCommand- Throws:
Exception
-