Giter VIP home page Giter VIP logo

go-kafka-test's People

Contributors

woodsaj avatar

Watchers

 avatar

go-kafka-test's Issues

failed to start consumer: kafka server: Offset's topic has not yet been created.

after running start_kafka.sh (i added some echo's to make sure it completes the kafka-topics.sh step), when i run go run main.go I get 2016/04/27 17:14:37 failed to start consumer: kafka server: Offset's topic has not yet been created.
this happens when cluster.NewConsumer calls cluster.NewConsumerFromClient

also:

~/g/s/g/w/go-kafka-test ❯❯❯ docker exec -t -i kafka bash
root@608a08bb0246:/# /opt/kafka_2.11-0.9.0.1/bin/kafka-topics.sh --create --zookeeper localhost:2181 --replication-factor 1 --partitions 10 --topic test
Error while executing topic command : Topic "test" already exists.
[2016-04-27 21:19:46,428] ERROR kafka.common.TopicExistsException: Topic "test" already exists.
    at kafka.admin.AdminUtils$.createOrUpdateTopicPartitionAssignmentPathInZK(AdminUtils.scala:253)
    at kafka.admin.AdminUtils$.createTopic(AdminUtils.scala:237)
    at kafka.admin.TopicCommand$.createTopic(TopicCommand.scala:105)
    at kafka.admin.TopicCommand$.main(TopicCommand.scala:60)
    at kafka.admin.TopicCommand.main(TopicCommand.scala)
 (kafka.admin.TopicCommand$)
root@608a08bb0246:/opt/kafka_2.11-0.9.0.1/bin# ./kafka-topics.sh --list --zookeeper localhost:2181                                                           
test
root@608a08bb0246:/opt/kafka_2.11-0.9.0.1/bin# ./kafka-topics.sh --describe --zookeeper localhost:2181 --topic test
Topic:test  PartitionCount:10   ReplicationFactor:1 Configs:
    Topic: test Partition: 0    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 1    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 2    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 3    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 4    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 5    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 6    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 7    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 8    Leader: 0   Replicas: 0 Isr: 0
    Topic: test Partition: 9    Leader: 0   Replicas: 0 Isr: 0
root@608a08bb0246:/opt/kafka_2.11-0.9.0.1/bin# 

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.