santthosh / kafka-for-mac Goto Github PK
View Code? Open in Web Editor NEWGetting Confluent Kafka components to work on Mac OS X
License: MIT License
Getting Confluent Kafka components to work on Mac OS X
License: MIT License
I can start the docker-compose and can use kafka with kafka-rest. when i connect to kafka in a java application which run on my mac with localhost:29092, the java application throw a timeout exception.
i think the kafka in container is not ready to be connected. how to make the kafka ready to be connected ?
Do you mean "host.docker.internal" when you say e.g. 10.0.4.162 docker.for.mac.host.internal
?
------------------------------
➜ kafka-for-mac git:(master) docker-compose up -d
Creating network "kafkaformac_default" with the default driver
Creating kafkaformac_zookeeper_1 ... done
Creating kafkaformac_kafka_1 ... done
Creating kafkaformac_schema-registry_1 ... done
Creating kafkaformac_kafka-rest_1 ... done
then I check the ps and
➜ kafka-for-mac git:(master) docker-compose ps
Name Command State Ports
----------------------------------------------------------------------------
kafkaformac_kafka-rest_1 /etc/confluent/docker/run Exit 139
kafkaformac_kafka_1 /etc/confluent/docker/run Exit 139
kafkaformac_schema-registry_1 /etc/confluent/docker/run Exit 139
kafkaformac_zookeeper_1 /etc/confluent/docker/run Exit 139
➜ kafka-for-mac git:(master)
Logs of zookeeper show
➜ kafka-for-mac git:(master) docker-compose logs zookeeper
Attaching to kafkaformac_zookeeper_1
zookeeper_1 |
zookeeper_1 | echo "===> ENV Variables ..."
zookeeper_1 | + echo '===> ENV Variables ...'
zookeeper_1 | env | sort
zookeeper_1 | + env
zookeeper_1 | ===> ENV Variables ...
zookeeper_1 | ALLOW_UNSIGNED=false
zookeeper_1 | COMPONENT=zookeeper
zookeeper_1 | CONFLUENT_DEB_VERSION=1
zookeeper_1 | CONFLUENT_MAJOR_VERSION=4
zookeeper_1 | CONFLUENT_MINOR_VERSION=0
zookeeper_1 | CONFLUENT_MVN_LABEL=
zookeeper_1 | CONFLUENT_PATCH_VERSION=0
zookeeper_1 | CONFLUENT_PLATFORM_LABEL=
zookeeper_1 | CONFLUENT_VERSION=4.0.0
zookeeper_1 | CUB_CLASSPATH=/etc/confluent/docker/docker-utils.jar
zookeeper_1 | HOME=/root
zookeeper_1 | HOSTNAME=f40f67694386
zookeeper_1 | KAFKA_VERSION=1.0.0
zookeeper_1 | LANG=C.UTF-8
zookeeper_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
zookeeper_1 | PWD=/
zookeeper_1 | PYTHON_PIP_VERSION=8.1.2
zookeeper_1 | PYTHON_VERSION=2.7.9-1
zookeeper_1 | SCALA_VERSION=2.11
zookeeper_1 | SHLVL=1
zookeeper_1 | ZOOKEEPER_CLIENT_PORT=32181
zookeeper_1 | ZOOKEEPER_TICK_TIME=2000
zookeeper_1 | ZULU_OPENJDK_VERSION=8=8.17.0.3
zookeeper_1 | + sort
zookeeper_1 | _=/usr/bin/env
zookeeper_1 |
zookeeper_1 | ===> User
zookeeper_1 | echo "===> User"
zookeeper_1 | + echo '===> User'
zookeeper_1 | id
zookeeper_1 | + id
zookeeper_1 | uid=0(root) gid=0(root) groups=0(root)
zookeeper_1 | ===> Configuring ...
zookeeper_1 |
zookeeper_1 | echo "===> Configuring ..."
zookeeper_1 | + echo '===> Configuring ...'
zookeeper_1 | /etc/confluent/docker/configure
zookeeper_1 | + /etc/confluent/docker/configure
zookeeper_1 |
zookeeper_1 |
zookeeper_1 | dub ensure ZOOKEEPER_CLIENT_PORT
zookeeper_1 | + dub ensure ZOOKEEPER_CLIENT_PORT
zookeeper_1 | /etc/confluent/docker/configure: line 23: 11 Segmentation fault dub ensure ZOOKEEPER_CLIENT_PORT
➜ kafka-for-mac git:(master)
and kafka
Attaching to kafkaformac_kafka_1
kafka_1 | ===> ENV Variables ...
kafka_1 |
kafka_1 | echo "===> ENV Variables ..."
kafka_1 | + echo '===> ENV Variables ...'
kafka_1 | env | sort
kafka_1 | + env
kafka_1 | + sort
kafka_1 | ALLOW_UNSIGNED=false
kafka_1 | COMPONENT=kafka
kafka_1 | CONFLUENT_DEB_VERSION=1
kafka_1 | CONFLUENT_MAJOR_VERSION=4
kafka_1 | CONFLUENT_MINOR_VERSION=0
kafka_1 | CONFLUENT_MVN_LABEL=
kafka_1 | CONFLUENT_PATCH_VERSION=0
kafka_1 | CONFLUENT_PLATFORM_LABEL=
kafka_1 | CONFLUENT_VERSION=4.0.0
kafka_1 | CUB_CLASSPATH=/etc/confluent/docker/docker-utils.jar
kafka_1 | HOME=/root
kafka_1 | HOSTNAME=kafka-host
kafka_1 | KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://docker.for.mac.host.internal:29092
kafka_1 | KAFKA_AUTO_CREATE_TOPICS_ENABLE=true
kafka_1 | KAFKA_BROKER_ID=1
kafka_1 | KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR=1
kafka_1 | KAFKA_VERSION=1.0.0
kafka_1 | KAFKA_ZOOKEEPER_CONNECT=zookeeper:32181
kafka_1 | LANG=C.UTF-8
kafka_1 | PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin
kafka_1 | PWD=/
kafka_1 | PYTHON_PIP_VERSION=8.1.2
kafka_1 | PYTHON_VERSION=2.7.9-1
kafka_1 | SCALA_VERSION=2.11
kafka_1 | SHLVL=1
kafka_1 | ZULU_OPENJDK_VERSION=8=8.17.0.3
kafka_1 | _=/usr/bin/env
kafka_1 | ===> User
kafka_1 |
kafka_1 | echo "===> User"
kafka_1 | + echo '===> User'
kafka_1 | id
kafka_1 | + id
kafka_1 | uid=0(root) gid=0(root) groups=0(root)
kafka_1 | ===> Configuring ...
kafka_1 |
kafka_1 | echo "===> Configuring ..."
kafka_1 | + echo '===> Configuring ...'
kafka_1 | /etc/confluent/docker/configure
kafka_1 | + /etc/confluent/docker/configure
kafka_1 |
kafka_1 | dub ensure KAFKA_ZOOKEEPER_CONNECT
kafka_1 | + dub ensure KAFKA_ZOOKEEPER_CONNECT
kafka_1 | /etc/confluent/docker/configure: line 22: 11 Segmentation fault dub ensure KAFKA_ZOOKEEPER_CONNECT
➜ kafka-for-mac git:(master)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.