Repository navigation
Closed
Description
Expected behavior
Bookie starts and confirms it is running.
Actual behavior
Service dies with the following error:
2016-09-17 20:55:37,605 - WARN [GarbageCollectorThread-1-1:GarbageCollectorThread@392] - Exception in gc
org.apache.zookeeper.KeeperException$NoNodeException: KeeperErrorCode = NoNode for /ledgers/LAYOUT
at org.apache.zookeeper.KeeperException.create(KeeperException.java:111)
at org.apache.zookeeper.KeeperException.create(KeeperException.java:51)
at org.apache.zookeeper.ZooKeeper.create(ZooKeeper.java:783)
at org.apache.bookkeeper.meta.LedgerLayout.store(LedgerLayout.java:146)
at org.apache.bookkeeper.meta.LedgerManagerFactory.createNewLMFactory(LedgerManagerFactory.java:214)
at org.apache.bookkeeper.meta.LedgerManagerFactory.newLedgerManagerFactory(LedgerManagerFactory.java:126)
at org.apache.bookkeeper.bookie.GarbageCollectorThread$LedgerManagerProviderImpl.getLedgerManager(GarbageCollectorThread.java:635)
at org.apache.bookkeeper.bookie.GarbageCollectorThread.safeRun(GarbageCollectorThread.java:346)
at org.apache.bookkeeper.util.SafeRunnable.run(SafeRunnable.java:31)
at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511)
at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180)
at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1142)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:617)
at io.netty.util.concurrent.DefaultThreadFactory$DefaultRunnableDecorator.run(DefaultThreadFactory.java:144)
at java.lang.Thread.run(Thread.java:745)
My local zookeeper tells me:
[zk: localhost:2181(CONNECTED) 0] ls /
[namespace, admin, loadbalance, zookeeper, ledgers, managed-ledgers]
[zk: localhost:2181(CONNECTED) 1] ls /ledgers
[available, cookies, LAYOUT]
Steps to reproduce
Setup a clustered pulsar installation as described in the README. Start the bookkeeper.
System configuration
Pulsar version: 1.14
Metadata
Metadata
Assignees
Labels
No labels
Activity
merlimat commentedon Sep 17, 2016
This looks strange, the bookie gets
NoNodeExceptionfor/ledgers/LAYOUT, but the z-node appears to be there from the zk shell.A couple of thoughts :
radekg commentedon Sep 18, 2016
Question then, do I need to run the ZooKeeper with Pulsar, like described in the readme? Or can I set my own zookeeper up and configure it to accept connections from Pulsar. Currently I'm doing the latter. Using 3.4.8 version. Would there be a difference?
radekg commentedon Sep 18, 2016
I found it, the problem was totally on my side. About to verify a fix.
radekg commentedon Sep 18, 2016
I have fixed my zookeepers, they now report
leadersandfollowerscorrectly. However, what I see now is the following:And it keeps going on like this. I think it's not normal?
I don't see any way to specify the layout?
radekg commentedon Sep 18, 2016
Right, the setting I'm looking for is
ledgerManagerType=hierarchicalradekg commentedon Sep 18, 2016
Referenced PR fixes the issues described here for the cluster setup.
add go report to checking code format (apache#19)
Request Fetch implementation (#19)
[cleanup][client] PIP-478: say what the self-suppression guard actual…