Comments (16)
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.
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.
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.
@clayheaton, Forget Java install perhaps?
from confluent-cli.
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.
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.
even better 👍
from confluent-cli.
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.
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.
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.
@sankalp58 that was helpful. I stopped and restarted and it worked. Thank you.
from confluent-cli.
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.
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 gotjava.net.BindException: Address already in use
. I had a Zookeeper running fromzookeeper-server-start
from my local kafka installation (not confluent). So I ranzookeeper-server-stop
and then I was able to runconfluent 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.
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.
from confluent-cli.
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.
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)
- confluent connect fail to start
- confluent status does not report the status of Zookeeper started by zookeeper-server-start
- Confluent CLI and Java 11 HOT 3
- Is this repository deprecated? HOT 1
- ERROR [main] found topic=_confluent-controlcenter
- Confluent CLI can't support arm64 HOT 2
- uent HOT 1
- Filing issues for the new proprietary Confluent CLI HOT 2
- Invoking "confluent local services start" fails (requires Java version 1.8 or 1.11) with OpenJDK 14.0.2 HOT 1
- Printed to "failed to start". But is UP. It's not Down. HOT 4
- Error: macOS version >= 10.13 is required using Big Sur HOT 5
- Kafka service goes down and never up again.
- Doesn't support M1 Mac HOT 6
- Getting available versions S3 hangs on no connectivity HOT 2
- confluent local services start exit status 1
- Unable to start confluent on my local HOT 2
- Invalid connector class. Check the connector configuration file. -- More details needed HOT 2
- Error creating a api-key to my ksqldb resource
- Error changing environments
- Misleading error output when not logged in HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from confluent-cli.