Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GroupCoordinatorNotAvailable error #43

Closed
erikvullings opened this issue Sep 13, 2017 · 5 comments
Closed

GroupCoordinatorNotAvailable error #43

erikvullings opened this issue Sep 13, 2017 · 5 comments

Comments

@erikvullings
Copy link

I have been using Kaffe successfully for connecting to Kafka running Docker on Windows 10 (my Docker-compose file can be found here). However, when updating the Kafka Docker images, it stopped working, and I received below exception:

15:15:10.634 [info]  group coordinator (groupId=test-consumer-group,memberId=,generation=0,pid=#PID<0.179.0>):
failed to join group
reason::GroupCoordinatorNotAvailable

At the same time, the Kafka broker reported

broker_1           | [2017-09-13 13:20:28,975] ERROR [KafkaApi-1] Number of alive brokers '1' does not meet the required replication factor '3' for the offsets topic (configured via 'offsets.topic.replication.factor'). This error can be ignored if the cluster is starting up and not all brokers are up yet. (kafka.server.KafkaApis)

Clearly, I can go back to an older Docker image, but this newer image is working with the JavaScript client, so I hope that Kaffe can use it too.

@objectuser
Copy link
Contributor

@erikvullings What are the differences between the previous and new Docker image?

Also, were the brokers all up before you tried to connect? I wonder if the new image defaults to starting fewer brokers.

@davidsantoso
Copy link
Contributor

@erikvullings I'm closing due to inactivity. Feel free to reopen if you'd still like to discuss this issue.

@erikvullings
Copy link
Author

erikvullings commented Dec 9, 2017

@davidsantoso Sorry for the late reply - I missed your response!
So the Docker-compose that I was using in the link was based on the latest version of Kafka, which at that time didn't work, but when I fix it to version 3.2.1 (see below), it did work. Does that help.

---
version: '2'
services:
  zookeeper:
    image: confluentinc/cp-zookeeper:3.2.1
    hostname: zookeeper
    extra_hosts:
    - "moby:127.0.0.1"
    ports:
      - "2181:2181"
    environment:
      ZOOKEEPER_CLIENT_PORT: 2181
      ZOOKEEPER_TICK_TIME: 2000

  broker:
    image: confluentinc/cp-kafka:3.2.1
    hostname: broker
    extra_hosts:
    - "moby:127.0.0.1"
    depends_on:
      - zookeeper
    ports:
      - '9092:9092'
    environment:
      KAFKA_BROKER_ID: 1
      KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
      KAFKA_ADVERTISED_LISTENERS: 'PLAINTEXT://broker:9092'
      KAFKA_DEFAULT_REPLICATION_FACTOR: 1
      KAFKA_MESSAGE_MAX_BYTES: 100000000
      KAFKA_REPLICA_FETCH_MAX_BYTES: 100000000

  schema_registry:
    image: confluentinc/cp-schema-registry:3.2.1
    hostname: schema_registry
    # extra_hosts:
    # - "moby:127.0.0.1"
    depends_on:
      - zookeeper
      - broker
    ports:
      - '8081:8081'
    environment:
      SCHEMA_REGISTRY_HOST_NAME: schema_registry
      SCHEMA_REGISTRY_KAFKASTORE_CONNECTION_URL: 'zookeeper:2181'

  kafka-rest:
    image: confluentinc/cp-kafka-rest:3.2.1
    container_name: kafka-rest
    extra_hosts:
    - "moby:127.0.0.1"
    depends_on:
      - zookeeper
      - broker
    ports:
      - '8082:8082'
    environment:
      KAFKA_REST_ZOOKEEPER_CONNECT: 'zookeeper:2181'
      KAFKA_REST_LISTENERS: http://kafka-rest:8082
      KAFKA_REST_SCHEMA_REGISTRY_URL: http://schema-registry:8081
      KAFKA_REST_HOST_NAME: kafka-rest

@uttamanand
Copy link

Were you able to find the solution for the above issue?

I am getting an issue while producing and consuming messages. I have just one kafka broker and one zookeeper. So I have given replication factor of all topics as 1.
I don’t know from where is it trying to get replication factor as 3.

[2018-03-21 15:54:28,249] ERROR [KafkaApi-0] Number of alive brokers '1' does not meet the required replication factor '3' for the offsets topic (configured via 'offsets.topic.replication.factor'). This error can be ignored if the cluster is starting up and not all brokers are up yet. (kafka.server.KafkaApis)

@uttamanand
Copy link

In my server.properties file I have already defined -:

offsets.topic.replication.factor=1
transaction.state.log.replication.factor=1
transaction.state.log.min.isr=1

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants