GithubHelp home page GithubHelp logo

docker-kafka's People

Contributors

bolkedebruin avatar brunowego avatar danielvdende avatar fokko avatar hgrif avatar kr7ysztof avatar krisgeus avatar vanveele avatar

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

Watchers

 avatar  avatar  avatar  avatar

docker-kafka's Issues

License

Thanks for your work! Unfortunately there is no license. So it is dangerous to build upon.
Would you mind to add a license? What about MIT?

Failed to set locale, defaulting to C, and no match for argument: supervisor

When I try to build this image, there are two issues

The locale is not set, it gives this warning Failed to set locale, defaulting to C and I fixed that as per this: CentOS/sig-cloud-instance-images#71 (comment)
It probably doesn't matter, as installing all those extra locales would make the image larger.

The second issue is when trying to install supervisor, it gives this error:

Error: Unable to find a match
The command '/bin/sh -c yum update -y &&     yum install -y epel-release wget nc net-tools openssl krb5-workstation krb5-libs java which &&     yum install -y supervisor &&     wget -q         http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz         -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz &&     tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt &&     rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz &&     yum clean all' 
returned a non-zero code: 1

I found that the supervisor package just isn't in the repo (anymore?).

I opened a shell into the base image

docker run -it centos bash

Then checked for the package

# yum install epel-release
# yum update
# yum info supervisor
Error: No matching Packages to list

If the package is not there, then the way to install it is with pip. I also found that python-pip is not in the repo, it's now called either python3-pip ( or the older v2)

This is what I ended up using which works

# Install Kafka, Zookeeper and other needed things
RUN yum update -y && \
    yum install -y epel-release wget nc net-tools openssl krb5-workstation krb5-libs java which && \
    yum install -y python3-pip && \
    pip3 install supervisor && \
    wget -q \
        http://apache.mirrors.spacedump.net/kafka/"$KAFKA_VERSION"/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz \
        -O /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
    tar xfz /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz -C /opt && \
    rm /tmp/kafka_"$SCALA_VERSION"-"$KAFKA_VERSION".tgz && \
    yum clean all

This doesn't run though, it can't find the supervisord.conf file in any of the default locations, perhaps that file was placed by the yum packaged version and is not when installing with pip, not sure yet.

Update to kafka 2.4 and add tagging

It would be nice if you could update this image to kafka 2.4.0 / scala 2.13.
Also, could you add a version tags to this repo and change your Docker build settings to something like this:

image

So that the docker images always get a version tag and get built automatically when a new tag is created in this repo.

Error: Cannot open an HTTP server: socket.error reported errno.ENOENT (2)

kafka | 2020-03-27 21:46:33,260 CRIT Supervisor is running as root. Privileges were not dropped because no user is specified in the config file. If you intend to run as root, you can set user=root in the config file to avoid this message. kafka | 2020-03-27 21:46:33,260 INFO Included extra file "/etc/supervisord.d/initialize.ini" during parsing kafka | 2020-03-27 21:46:33,260 INFO Included extra file "/etc/supervisord.d/kafka.ini" during parsing kafka | 2020-03-27 21:46:33,260 INFO Included extra file "/etc/supervisord.d/zookeeper.ini" during parsing kafka | /usr/lib/python3.6/site-packages/supervisor/options.py:471: UserWarning: Supervisord is running as root and it is searching for its configuration file in default locations (including its current working directory); you probably want to specify a "-c" argument specifying an absolute path to a configuration file for improved security. kafka | 'Supervisord is running as root and it is searching ' kafka | Error: Cannot open an HTTP server: socket.error reported errno.ENOENT (2) kafka | For help, use /usr/bin/supervisord -h

Always giving me this error

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.