[
https://issues.apache.org/jira/browse/BOOKKEEPER-300?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]
Vinay updated BOOKKEEPER-300:
-----------------------------
Attachment: BOOKKEEPER-300.patch
Attaching the patch for bookkeeper format
Following command should be used to execute the format
{code}bookkeeper-server/bin/bookkeeper bookie --format{code}
Following are the behaviours of the format.
# Create the JournalDir and ledger dirs if not exists.
# If Journal directories exist and its not empty, then it will ask for the user
confirmation. On Confirmation it will format all contents of Journal
directories and ledger directories, and recreate the directories.
** Here confirmation will be asked only for the journal directory. If journal
directory is empty or not exists, it will format ledger directory contents even
though its not empty. Because Bookie will never have non-empty ledger directory
with empty journal directory.
# Now it will go ahead for formatting the zookeeper nodes. If /ledgers (zk root
path) exists then it will ask for confirmation, otherwise it will just simply
create /ledgers and /ledgers/available nodes. On confirmation it will delete
all nodes present under /ledgers and re-create /ledgers and /ledgers/available
nodes.
> Create Bookie format command
> ----------------------------
>
> Key: BOOKKEEPER-300
> URL: https://issues.apache.org/jira/browse/BOOKKEEPER-300
> Project: Bookkeeper
> Issue Type: New Feature
> Components: bookkeeper-server
> Affects Versions: 4.0.0
> Reporter: Rakesh R
> Attachments: BOOKKEEPER-300.patch
>
>
> Provide a bookie format command. Then the admin would just have to run the
> command on each machine, which will prepare the bookie env
> +Zookeeper paths (znodes):+
> - ledger's root path
> - bookie's available path
> +Directories:+
> - Journal directories
> - Ledger directories
--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators:
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira