Giter Site home page Giter Site logo

Kafka Error about pholcus HOT 4 CLOSED

sulthonzh avatar sulthonzh commented on August 25, 2024
Kafka Error

from pholcus.

Comments (4)

sundy-li avatar sundy-li commented on August 25, 2024

Hi, this is the kafka server error, not the sarama client error, and when this error occurs, just use $KAFKA_HOME/bin/kafka-topics.sh --describe --topic $topic --zookeeper $zk command to show the status of the topic, and you will see the leader is -1 for this partition.

Possiable ways to solve it

  1. I suggest you to create the topic by manual to specify the partition number and the replicate number instead of auto-create by client with default value

  2. modify the kafka server config, improve the zookeeper connect timeout value and then restart kafka server

  3. Maybe your system io is too high, use iostatto debug about it

from pholcus.

sulthonzh avatar sulthonzh commented on August 25, 2024

@sundy-li OK thanks for this,

from pholcus.

sulthonzh avatar sulthonzh commented on August 25, 2024

https://gist.github.com/loggerhead/4c8ad3325d95ecd15562c80c1f818ef8 i have try this

but not working, step 4 ... 7, where should i run steps? at docker exec? or in local computer?

from pholcus.

sundy-li avatar sundy-li commented on August 25, 2024

@sulthonzh

  1. I recommend you not to install kafka cluster by docker, try the install guide here https://kafka.apache.org/quickstart

  2. If you still want to install kafka cluster by docker,I have made a docker script before, try https://github.com/sundy-li/kafka-cluster

from pholcus.

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.