Giter VIP home page Giter VIP logo

Comments (16)

clayheaton avatar clayheaton commented on July 28, 2024 7

As a new Kafka user, I was hopeful that Confluent would make the experience smooth. However, after following the Ubuntu installation instructions and then hopping to the Quickstart, all that I see when I try to follow the instructions is this error. I have the global install directories in my path and everything else seems just fine on a fresh Ubuntu 16.04.3 LTS VM.

I have no idea what the problem is because the error message is so vague.

from confluent-cli.

jonathanmv avatar jonathanmv commented on July 28, 2024 6

What's happening to me is that there's some kind of "zombie" zookeeper that cannot be used by confluent and doesn't let another zookeeper start because it's using the port 2181.

To see that error I ran confluent log zookeeper and I got java.net.BindException: Address already in use. I had a Zookeeper running from zookeeper-server-start from my local kafka installation (not confluent). So I ran zookeeper-server-stop and then I was able to run confluent start and get zookeeper working again.

Unfortunately schema-registry was not being able to start so I just restarted my computer and everything got back to work.

from confluent-cli.

sankalp58 avatar sankalp58 commented on July 28, 2024 5

Well this was happening with me too, than i did sudo service zookeeper stop ,then confluent stop ,contfluent start things looked on right track.

from confluent-cli.

fizxmike avatar fizxmike commented on July 28, 2024 2

@clayheaton, Forget Java install perhaps?

from confluent-cli.

guptais avatar guptais commented on July 28, 2024 2

I was getting the below error:

Using CONFLUENT_CURRENT: /var/folders/f9/djcltlm97c737fxbhqdnsghh0000gn/T/confluent.H8lkzUOR
Starting zookeeper
Zookeeper failed to start
zookeeper is [DOWN]
Cannot start Kafka, Zookeeper is not running. Check your deployment
Error: exit status 127

This error message was not enough.

To find the more details about the error, I then went on to find some logs in the CONFLUENT_CURRENT directory in the zookeeper.stdout
/var/folders/f9/djcltlm97c737fxbhqdnsghh0000gn/T/confluent.H8lkzUOR/zookeeper/zookeeper.stdout
then found that the zookeeper 2181 port was already in use .

Resolution: Found and Killed the process running on port 2181 and this resolved the issue for me.

However, I do agree, the original error message can be improved.

from confluent-cli.

kkonstantine avatar kkonstantine commented on July 28, 2024

Indeed this can come up relatively often, especially in a dev environment, and the message is not very intuitive.

I've been thinking of adding an improvement, but beyond just reporting what is the PID of the conflicting service, I think it'd be great to give a hint about which is the descriptor of the outstanding confluent run that is responsible for the conflict (I'd expect it to be common to have another confluent-cli deployment that results in a conflict. Of course it could also be a standalone service, in which case a PID and the confluent home directory is what we can report). Since every service has at least one log file open while it's running, it is possible to extract this information with lsof. I'll work on an extension. Thanks for recording this issue.

from confluent-cli.

gwenshap avatar gwenshap commented on July 28, 2024

even better 👍

from confluent-cli.

gwenshap avatar gwenshap commented on July 28, 2024

just ran into ZK failure to start due to lack of Java...

I think that swallowing the error isn't the right behavior here. I had to run the "bash -x confluent start" get the command you are using and run it to find the error. There were no logs.

from confluent-cli.

kkonstantine avatar kkonstantine commented on July 28, 2024

Correct, that is the other case that has minimal info. I think one can only find an error message in the zookeeper.stderr under the confluent.current location if java is not installed.

from confluent-cli.

gwenshap avatar gwenshap commented on July 28, 2024

Finding the error will be easier if it goes to /var/log/kafka like the rest of the logs... I checked there first, but it was empty

from confluent-cli.

teeeff avatar teeeff commented on July 28, 2024

@sankalp58 that was helpful. I stopped and restarted and it worked. Thank you.

from confluent-cli.

Sujeet09K avatar Sujeet09K commented on July 28, 2024

Well this was happening with me too, than i did sudo service zookeeper stop ,then confluent stop ,contfluent start things looked on right track.

@sankalp58 This approach worked for me as well but partial.
zookeeper, connect and kafka started but kafka-rest and schema-registry still failed to start.

Below is the error for schema-registry... Not able to figure out what went wrong and how to fix

[2018-11-02 15:20:13,511] ERROR The retention policy of the schema topic _schemas is incorrect. You must configure the topic to 'compact' cleanup policy to avoid Kafka deleting your schemas after a week. Refer to Kafka documentation for more details on cleanup policies (io.confluent.kafka.schemaregistry.storage.KafkaStore:258)
[2018-11-02 15:20:13,515] INFO Shutting down schema registry (io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry:719)
[2018-11-02 15:20:13,517] ERROR Server died unexpectedly: (io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain:51)
java.lang.NullPointerException
at io.confluent.kafka.schemaregistry.storage.KafkaStore.close(KafkaStore.java:366)
at io.confluent.kafka.schemaregistry.storage.KafkaSchemaRegistry.close(KafkaSchemaRegistry.java:720)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.onShutdown(SchemaRegistryRestApplication.java:111)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:66)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryRestApplication.setupResources(SchemaRegistryRestApplication.java:42)
at io.confluent.rest.Application.createServer(Application.java:157)
at io.confluent.kafka.schemaregistry.rest.SchemaRegistryMain.main(SchemaRegistryMain.java:43)

from confluent-cli.

reyapr avatar reyapr commented on July 28, 2024

@jonathanmv

What's happening to me is that there's some kind of "zombie" zookeeper that cannot be used by confluent and doesn't let another zookeeper start because it's using the port 2181.

To see that error I ran confluent log zookeeper and I got java.net.BindException: Address already in use. I had a Zookeeper running from zookeeper-server-start from my local kafka installation (not confluent). So I ran zookeeper-server-stop and then I was able to run confluent start and get zookeeper working again.

Unfortunately schema-registry was not being able to start so I just restarted my computer and everything got back to work.

this is work for me thanks

from confluent-cli.

deepuec avatar deepuec commented on July 28, 2024

Hi,

Can anyone help me understand what is the issue here when I am starting Confluent platform.

It says Java 1.8 is recommended but I do have 1.8 in my path.

I am using windows 7 and gitbash to run the command.
image

from confluent-cli.

sahas- avatar sahas- commented on July 28, 2024

I was able to run zk & kafka thru docker. When I needed schema registry and rest proxy, I came to this and experiencing the same issue reported. Verified in my machine that no other instances of zk or kafka is running. How to find logs so that we can resolve why zk is failing to start ?

from confluent-cli.

RybakY avatar RybakY commented on July 28, 2024

Hi!
I've got the same error:

Starting zookeeper
|Zookeeper failed to start
zookeeper is [DOWN]
Cannot start Kafka, Zookeeper is not running. Check your deployment
Error: exit status 127

In the file zookeeper.stdout i see next error:
Could not find or load main class org.apache.zookeeper.server.quorum.QuorumPeerMain

from confluent-cli.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.