bookkeeper-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Uma Maheswara Rao G <mahesw...@huawei.com>
Subject FW: Not able to start the bookkeeper
Date Fri, 25 Jan 2013 15:26:14 GMT
Looks like your Zookeeper already has Cookie information and starting the Bookie with fresh
local directories configured?

Clean the ZK data and try once. or Use Bookkeeper format command: $bookkeeper shell metaformat



Regards,

Uma

________________________________
From: Savitha Devi Inbasekaran [Savithadi@smartek21.com]
Sent: Friday, January 25, 2013 5:06 PM
To: bookkeeper-user@zookeeper.apache.org
Subject: Not able to start the bookkeeper

Hi,
Following are the steps which I followed to install bookkeeper and start the same.


*         Downloaded the bookkeeper version 4.2.1 from the link http://apache.techartifact.com/mirror/zookeeper/bookkeeper/
.

*         Set the configuration parameter in bookkeeper-server/conf/bk_server.conf as follows:

*             bookiePort, Port number that the bookie listens on;

*             zkServers, Comma separated list of ZooKeeper servers with a hostname:port format;

*             journalDir, Path for Log Device (stores bookie write-ahead log);

*             ledgerDir, Path for Ledger Device (stores ledger entries);

*         Created /ledgers & /ledgers/available in zookeeper before running the cluster.
By using the below

*         bin/bookkeeper org.apache.zookeeper.ZooKeeperMain -server localhost:2181 create
/ledgers 0

*         bin/bookkeeper org.apache.zookeeper.ZooKeeperMain -server localhost:2181 create
/ledgers/available 0

*         Started zookeeper

*         Run the following command to start the bookie:

*         bin/bookkeeper bookie
But after starting the bookie the below error was observed.

2013-01-25 17:01:55,747 - WARN  - [main:Bookie@493] - INSTANCEID not exists in zookeeper.
Not considering it for data verification
2013-01-25 17:01:56,397 - ERROR - [main:Bookie@447] - Cookie exists in zookeeper, but not
in all local directories.  Directories missing cookie file are [/tmp/bk-txn/current, /tmp/bk-data/current]
2013-01-25 17:01:56,408 - ERROR - [main:BookieServer@375] - Exception running bookie server
:
org.apache.bookkeeper.bookie.BookieException$InvalidCookieException:
                at org.apache.bookkeeper.bookie.Bookie.checkEnvironment(Bookie.java:449)
                at org.apache.bookkeeper.bookie.Bookie.<init>(Bookie.java:524)
                at org.apache.bookkeeper.proto.BookieServer.newBookie(BookieServer.java:96)
                at org.apache.bookkeeper.proto.BookieServer.<init>(BookieServer.java:86)
                at org.apache.bookkeeper.proto.BookieServer.main(BookieServer.java:361)
any help could be appreciated. Thanks in advance.

Thanks,
Savitha


Mime
View raw message