Closed vishalananth07 closed 4 years ago
I noticed that the Broker process stops automatically after 2 minutes on one node, but on the other node its running fine. Also the node in which the broker stops is not able to produce and consume, but the other node is able to run as consumer alone but fails when it tries to run the producer.
org.apache.bookkeeper.client.BKException$BKNotEnoughBookiesException: Not enough non-faulty bookies available
It indicates that you don't have enough bookies. use bookkeeper shell listbookies
to list the bookies. make sure you have enough bookies, because by default you need at least 2 bookies.
I have run bookkeeper on two nodes
@vishalananth07 Please check the log of each bookie node, there should be some error caused bookie not start success.
Sorry for the late reply, one of our machines crashed. We tried using another machine and tried setting up Pulsar, but we could not even start Bookie because of less RAM availability. We used two machines one with 12Gb RAM + SSD and another with 8Gb RAM + HDD, Bookie ran perfectly on the 12GB system, but in the 8Gb system, it crashed exactly after 2 minutes. Is lesser RAM causing the issue? What are the recommended specs for running Pulsar?
@vishalananth07 Have you figure out the issue. 8G RAM should be enough. you could check the settings in conf/pulsar_env.sh
and conf/bkenv.sh
Yes, I have fixed this issue, there were other processes taking more RAM in my machine. Thanks for your help :)
Describe the bug Producer command
and Consumer command
are giving the following error messages:
Producer error message:
Consumer error message:
To Reproduce Steps to reproduce the behavior:
Expected behavior Producer should produce message and Consumer should consume it.
Desktop (please complete the following information):
Additional context All of Zookeeper, Bookkeeper and Broker are starting, we are able to see all the processes running when we give jps command. But when we try to run producer or consumer command consumer broker crashes and error message is displayed.