Giter Site home page Giter Site logo

hey-johnnypark / docker-kafka-zookeeper Goto Github PK

View Code? Open in Web Editor NEW
50.0 50.0 48.0 1.21 MB

Docker image for Kafka (0.10.x - 0.11.x - 1.x, 2.x) message broker including Zookeeper

Home Page: https://hub.docker.com/r/johnnypark/kafka-zookeeper/

Shell 72.17% Dockerfile 27.83%
apache-kafka docker kafka zookeeper

docker-kafka-zookeeper's People

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

docker-kafka-zookeeper's Issues

How to test?

Hi @hey-johnnypark ,

I'm new to kafka. I don't know anything about Kafka so far but I want to use your docker to understand how kafka works. Could you please help me?

I could run the first command
"docker run -p 2181:2181 -p 9092:9092 -e ADVERTISED_HOST=127.0.0.1 -e NUM_PARTITIONS=10 johnnypark/kafka-zookeeper"

It seems to be running fine (at least I didn't get any errors). Now I want to test it.
And I don't know how to test it.

Where/how do I run the consumer and producer?

Thanks in advance.

Container failed to start as a Fargate task

The container is failing to start as a fargate task with following logs,

**2022-03-21T14:04:31.833Z Num Partitions: 10

2022-03-21T14:04:31.838Z default number of partition: 10

2022-03-21T14:04:32.790Z 2022-03-21 14:04:32,789 WARN received SIGTERM indicating exit request

2022-03-21T14:04:32.790Z 2022-03-21 14:04:32,789 INFO waiting for zookeeper, kafka to die

2022-03-21T14:04:32.797Z 2022-03-21 14:04:32,796 INFO success: zookeeper entered RUNNING state, process has stayed up for > than 1 seconds (startsecs)

2022-03-21T14:04:32.797Z 2022-03-21 14:04:32,797 INFO stopped: kafka (terminated by SIGTERM)

2022-03-21T14:04:32.805Z 2022-03-21 14:04:32,799 INFO stopped: zookeeper (terminated by SIGTERM)**

ERROR: unsatisfiable constraints: gcompat (missing)

When I execute docker build . I get following error

[+] Building 6.8s (6/15)                                                                        docker:desktop-linux
 => [internal] load build definition from Dockerfile                                                            0.0s
 => => transferring dockerfile: 1.39kB                                                                          0.0s
 => [internal] load .dockerignore                                                                               0.0s
 => => transferring context: 2B                                                                                 0.0s
 => [internal] load metadata for docker.io/library/alpine:3.9.2                                                 4.3s
 => [ 1/11] FROM docker.io/library/alpine:3.9.2@sha256:644fcb1a676b5165371437feaa922943aaf7afcfa8bfee4472f6860  1.7s
 => => resolve docker.io/library/alpine:3.9.2@sha256:644fcb1a676b5165371437feaa922943aaf7afcfa8bfee4472f6860aa  0.0s
 => => sha256:f663714dca1af21af37546a875f0146db50643d8ac894c09f4f01639cefcca6b 1.51kB / 1.51kB                  0.0s
 => => sha256:3b00a3925ee4b356facd24aea8ece58982a66577023cb3596ce3a321aef976f9 2.69MB / 2.69MB                  1.5s
 => => sha256:644fcb1a676b5165371437feaa922943aaf7afcfa8bfee4472f6860aad1ef2a0 2.36kB / 2.36kB                  0.0s
 => => sha256:65faa9b36980bbcca914e5e6d3baa005261be9b0f305546553d670a6de939bcb 528B / 528B                      0.0s
 => => extracting sha256:3b00a3925ee4b356facd24aea8ece58982a66577023cb3596ce3a321aef976f9                       0.1s
 => [internal] load build context                                                                               0.0s
 => => transferring context: 5.36kB                                                                             0.0s
 => ERROR [ 2/11] RUN apk add --update openjdk8-jre supervisor bash gcompat                                     0.7s
------ 
 > [ 2/11] RUN apk add --update openjdk8-jre supervisor bash gcompat:                                                                                   
0.142 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/main/aarch64/APKINDEX.tar.gz
0.513 fetch http://dl-cdn.alpinelinux.org/alpine/v3.9/community/aarch64/APKINDEX.tar.gz
0.781 ERROR: unsatisfiable constraints:
0.786   gcompat (missing):
0.786     required by: world[gcompat]
------
Dockerfile:6
--------------------
   4 |     USER root
   5 |     
   6 | >>> RUN apk add --update openjdk8-jre supervisor bash gcompat
   7 |     
   8 |     ENV ZOOKEEPER_VERSION 3.4.13
--------------------
ERROR: failed to solve: process "/bin/sh -c apk add --update openjdk8-jre supervisor bash gcompat" did not complete successfully: exit code: 1

SOLUTION: The error is because the package gcompat is not available in the Alpine Linux package repository you are using (Alpine 3.9.2).

gcompat was available in older Alpine versions but may not be available in Alpine 3.9.2, which is a relatively older version. You can either update your Docker image to use a newer version of Alpine Linux or modify your Dockerfile to use a different base image that includes gcompat or doesn't require it.

So just replace FROM alpine:3.9.2 with FROM alpine:3.14 and done.

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.