+1 for bookie format command.

Also is it reasonable to expose one client API for format?

Because infuture we may get the requirement like when we format the NN, we also 
should be able to format BK storage.

Currently we don't have the format API for Journal namager. That is the current 
limitation in NN. Currently it will format only 'file' based storage dirs.
We have the plans to implement format for all kind of JornalManager. So, we may 
add format API for JournalManager interface. So, all JournalManager 
implementation classes should provide the respective implementation for format 
of their storage. BKJM can make use of the format API from BK and format it.

Regards,
Uma
________________________________________
From: Ivan Kelly [iv...@apache.org]
Sent: Thursday, June 14, 2012 2:10 PM
To: bookkeeper-dev@zookeeper.apache.org
Subject: Re: Preparing bookkeeper environment during bookie startup

Perhaps we should create a bookie format command, which does all this
stuff. Then the admin would just have to run

bookkeeper-server/bin/bookkeeper bookie -format

on each machine.

-Ivan


On Thu, Jun 14, 2012 at 08:13:46AM +0000, Rakesh R wrote:
> Hi All,
>
> As per my understanding, bookkeeper doesn't have the logic to pre-create the 
> following items and the operators need to manually create all these items 
> before starting the bookkeeper. I feel it would be great if the bookkepper 
> himself will internally maintaining logic to prepare bookkeeper environment ?
>
> Currently following items to be pre-created by the admin:
>
> Zookeeper paths (znodes):
> -------------------------------
> - ledger's root path
> - bookie's available path
>
> Directories:
> -------------------------------
> - Journal directories
> - Ledger directories
>
>
> -Rakesh

Reply via email to