Closed yngvark closed 3 years ago
If you update to the latest version of master
now, following #649 you should be able to run the examples as you desire.
Thanks for having a look at this.
However, I tried running again, with the same result
/tmp $ git clone https://github.com/segmentio/kafka-go.git
Cloning into 'kafka-go'...
remote: Enumerating objects: 3906, done.
remote: Counting objects: 100% (74/74), done.
remote: Compressing objects: 100% (55/55), done.
remote: Total 3906 (delta 29), reused 43 (delta 16), pack-reused 3832
Receiving objects: 100% (3906/3906), 1.65 MiB | 14.57 MiB/s, done.
Resolving deltas: 100% (2462/2462), done.
/tmp $ cd kafka-go/examples/
/tmp/kafka-go/examples (master) $ docker volume prune
WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Deleted Volumes:
b969778db3c4e901696866179d2e5d6c0e5ee2ea417a02f45fe9c0789cdad478
a69810034bae509257881db04ecb7fde78aedb775acfc1a577eeb471e44da2e1
7c905a7ee54b2a73ddfff1b3059c8df894fbf78bc0af7d7ab4c64160788a9cf4
75f4c4d5745dc52f0c53aa60286dbaebbbf1723813c24d1f670af13c94750fff
0e1134b3a77bb4499de607160c3395940264d59231fa7b663232e4646f8c6110
Total reclaimed space: 381.9MB
$ docker volume ls
DRIVER VOLUME NAME
/tmp/kafka-go/examples (master) $ docker-compose up
Creating examples_mongo-db_1 ... done
Creating examples_zookeeper_1 ... done
Creating examples_kafka_1 ... done
Creating examples_producer-api_1 ... done
Creating examples_consumer-logger_1 ... done
Creating examples_producer-random_1 ... done
Creating examples_consumer-mongo-db_1 ... done
Attaching to examples_mongo-db_1, examples_zookeeper_1, examples_kafka_1, examples_consumer-logger_1, examples_producer-api_1, examples_producer-random_1, examples_consumer-mongo-db_1
consumer-mongo-db_1 | Connected to MongoDB ... !!
consumer-mongo-db_1 | start consuming ... !!
kafka_1 | Excluding KAFKA_HOME from broker config
consumer-logger_1 | start consuming ... !!
kafka_1 | [Configuring] 'connect.offset.flush.interval.ms' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'advertised.host.name' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:54.825+0000 I CONTROL [main] Automatically disabling TLS 1.0, to force-enable TLS 1.0 specify --sslDisabledProtocols 'none'
kafka_1 | [Configuring] 'connect.internal.key.converter' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] MongoDB starting : pid=1 port=27017 dbpath=/data/db 64-bit host=a5c750f02373
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] db version v4.0.23
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] git version: 07c6611b38d2aacbdb1846b688db70b3273170fb
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] OpenSSL version: OpenSSL 1.0.2g 1 Mar 2016
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] allocator: tcmalloc
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] modules: none
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] build environment:
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] distmod: ubuntu1604
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] distarch: x86_64
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] target_arch: x86_64
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I CONTROL [initandlisten] options: { net: { bindIpAll: true } }
kafka_1 | [Configuring] 'connect.offset.storage.file.filename' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'connect.internal.value.converter' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I STORAGE [initandlisten]
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I STORAGE [initandlisten] ** WARNING: Using the XFS filesystem is strongly recommended with the WiredTiger storage engine
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I STORAGE [initandlisten] ** See http://dochub.mongodb.org/core/prodnotes-filesystem
kafka_1 | [Configuring] 'port' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'connect.value.converter' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:54.827+0000 I STORAGE [initandlisten] wiredtiger_open config: create,cache_size=15540M,cache_overflow=(file_max=0M),session_max=20000,eviction=(threads_min=4,threads_max=4),config_base=false,statistics=(fast),log=(enabled=true,archive=true,path=journal,compressor=snappy),file_manager=(close_idle_time=100000),statistics_log=(wait=0),verbose=(recovery_progress),
kafka_1 | [Configuring] 'connect.key.converter' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'connect.key.converter.schemas.enable' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.451+0000 I STORAGE [initandlisten] WiredTiger message [1621755475:451940][1:0x7f748d44ca80], txn-recover: Set global recovery timestamp: 0
mongo-db_1 | 2021-05-23T07:37:55.474+0000 I RECOVERY [initandlisten] WiredTiger recoveryTimestamp. Ts: Timestamp(0, 0)
kafka_1 | [Configuring] 'broker.id' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.488+0000 I STORAGE [initandlisten] Starting to check the table logging settings for existing WiredTiger tables
kafka_1 | Excluding KAFKA_VERSION from broker config
kafka_1 | [Configuring] 'connect.rest.port' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.497+0000 I CONTROL [initandlisten]
mongo-db_1 | 2021-05-23T07:37:55.497+0000 I CONTROL [initandlisten] ** WARNING: Access control is not enabled for the database.
mongo-db_1 | 2021-05-23T07:37:55.497+0000 I CONTROL [initandlisten] ** Read and write access to data and configuration is unrestricted.
kafka_1 | [Configuring] 'zookeeper.connect' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.497+0000 I CONTROL [initandlisten]
mongo-db_1 | 2021-05-23T07:37:55.498+0000 I STORAGE [initandlisten] createCollection: admin.system.version with provided UUID: 04b9f16c-6579-41e6-b3c3-62ef02a56535
kafka_1 | [Configuring] 'connect.internal.key.converter.schemas.enable' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.516+0000 I SHARDING [initandlisten] Marking collection admin.system.version as collection version: <unsharded>
mongo-db_1 | 2021-05-23T07:37:55.516+0000 I COMMAND [initandlisten] setting featureCompatibilityVersion to 4.0
kafka_1 | [Configuring] 'connect.value.converter.schemas.enable' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.516+0000 I SHARDING [initandlisten] Marking collection local.system.replset as collection version: <unsharded>
kafka_1 | [Configuring] 'log.dirs' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'connect.rest.advertised.host.name' in '/opt/kafka/config/server.properties'
mongo-db_1 | 2021-05-23T07:37:55.516+0000 I STORAGE [initandlisten] Finished adjusting the table logging settings for existing WiredTiger tables
kafka_1 | [Configuring] 'connect.bootstrap.servers' in '/opt/kafka/config/server.properties'
kafka_1 | [Configuring] 'connect.internal.value.converter.schemas.enable' in '/opt/kafka/config/server.properties'
kafka_1 | [2021-05-23 07:37:55,916] INFO Registered kafka:type=kafka.Log4jController MBean (kafka.utils.Log4jControllerRegistration$)
kafka_1 | [2021-05-23 07:37:56,197] INFO Setting -D jdk.tls.rejectClientInitiatedRenegotiation=true to disable client-initiated TLS renegotiation (org.apache.zookeeper.common.X509Util)
kafka_1 | [2021-05-23 07:37:56,252] INFO Registered signal handlers for TERM, INT, HUP (org.apache.kafka.common.utils.LoggingSignalHandler)
kafka_1 | [2021-05-23 07:37:56,255] INFO starting (kafka.server.KafkaServer)
kafka_1 | [2021-05-23 07:37:56,256] INFO Connecting to zookeeper on zookeeper:2181 (kafka.server.KafkaServer)
producer-api_1 | start producer-api ... !!
mongo-db_1 | 2021-05-23T07:37:55.516+0000 I SHARDING [initandlisten] Marking collection admin.system.roles as collection version: <unsharded>
kafka_1 | [2021-05-23 07:37:56,275] INFO [ZooKeeperClient Kafka server] Initializing a new session to zookeeper:2181. (kafka.zookeeper.ZooKeeperClient)
mongo-db_1 | 2021-05-23T07:37:55.517+0000 I STORAGE [initandlisten] createCollection: local.startup_log with generated UUID: f447574c-b33d-491b-b6e5-0ddb69d7efbe
producer-random_1 | start producing ... !!
mongo-db_1 | 2021-05-23T07:37:55.537+0000 I SHARDING [initandlisten] Marking collection local.startup_log as collection version: <unsharded>
mongo-db_1 | 2021-05-23T07:37:55.537+0000 I FTDC [initandlisten] Initializing full-time diagnostic data capture with directory '/data/db/diagnostic.data'
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
mongo-db_1 | 2021-05-23T07:37:55.538+0000 I SHARDING [LogicalSessionCacheRefresh] Marking collection config.system.sessions as collection version: <unsharded>
mongo-db_1 | 2021-05-23T07:37:55.539+0000 I STORAGE [LogicalSessionCacheRefresh] createCollection: config.system.sessions with generated UUID: d8fcc4f1-5e9a-4f83-ae62-eb738246dd89
mongo-db_1 | 2021-05-23T07:37:55.539+0000 I NETWORK [initandlisten] waiting for connections on port 27017
zookeeper_1 | JMX enabled by default
mongo-db_1 | 2021-05-23T07:37:55.539+0000 I CONTROL [LogicalSessionCacheReap] Sessions collection is not set up; waiting until next sessions reap interval: config.system.sessions does not exist
mongo-db_1 | 2021-05-23T07:37:55.566+0000 I INDEX [LogicalSessionCacheRefresh] build index on: config.system.sessions properties: { v: 2, key: { lastUse: 1 }, name: "lsidTTLIndex", ns: "config.system.sessions", expireAfterSeconds: 1800 }
mongo-db_1 | 2021-05-23T07:37:55.566+0000 I INDEX [LogicalSessionCacheRefresh] building index using bulk method; build may temporarily use up to 500 megabytes of RAM
zookeeper_1 | Using config: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
mongo-db_1 | 2021-05-23T07:37:55.567+0000 I INDEX [LogicalSessionCacheRefresh] build index done. scanned 0 total records. 0 secs
mongo-db_1 | 2021-05-23T07:37:56.000+0000 I SHARDING [ftdc] Marking collection local.oplog.rs as collection version: <unsharded>
mongo-db_1 | 2021-05-23T07:37:56.266+0000 I NETWORK [listener] connection accepted from 172.18.0.8:46454 #1 (1 connection now open)
zookeeper_1 | 2021-05-23 07:37:55,089 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
kafka_1 | [2021-05-23 07:37:56,279] INFO Client environment:zookeeper.version=3.5.8-f439ca583e70862c3068a1f2a7d4d068eec33315, built on 05/04/2020 15:53 GMT (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:host.name=0e099b3f07c2 (org.apache.zookeeper.ZooKeeper)
zookeeper_1 | 2021-05-23 07:37:55,091 [myid:] - INFO [main:DatadirCleanupManager@78] - autopurge.snapRetainCount set to 3
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.version=1.8.0_212 (org.apache.zookeeper.ZooKeeper)
zookeeper_1 | 2021-05-23 07:37:55,091 [myid:] - INFO [main:DatadirCleanupManager@79] - autopurge.purgeInterval set to 1
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.vendor=IcedTea (org.apache.zookeeper.ZooKeeper)
zookeeper_1 | 2021-05-23 07:37:55,092 [myid:] - WARN [main:QuorumPeerMain@113] - Either no config or no quorum defined in config, running in standalone mode
zookeeper_1 | 2021-05-23 07:37:55,092 [myid:] - INFO [PurgeTask:DatadirCleanupManager$PurgeTask@138] - Purge task started.
zookeeper_1 | 2021-05-23 07:37:55,099 [myid:] - INFO [main:QuorumPeerConfig@103] - Reading configuration from: /opt/zookeeper-3.4.6/bin/../conf/zoo.cfg
zookeeper_1 | 2021-05-23 07:37:55,099 [myid:] - INFO [main:ZooKeeperServerMain@95] - Starting server
zookeeper_1 | 2021-05-23 07:37:55,101 [myid:] - INFO [PurgeTask:DatadirCleanupManager$PurgeTask@144] - Purge task completed.
zookeeper_1 | 2021-05-23 07:37:55,103 [myid:] - INFO [main:Environment@100] - Server environment:zookeeper.version=3.4.6-1569965, built on 02/20/2014 09:09 GMT
zookeeper_1 | 2021-05-23 07:37:55,103 [myid:] - INFO [main:Environment@100] - Server environment:host.name=zookeeper
zookeeper_1 | 2021-05-23 07:37:55,103 [myid:] - INFO [main:Environment@100] - Server environment:java.version=1.7.0_65
zookeeper_1 | 2021-05-23 07:37:55,103 [myid:] - INFO [main:Environment@100] - Server environment:java.vendor=Oracle Corporation
zookeeper_1 | 2021-05-23 07:37:55,104 [myid:] - INFO [main:Environment@100] - Server environment:java.home=/usr/lib/jvm/java-7-openjdk-amd64/jre
zookeeper_1 | 2021-05-23 07:37:55,104 [myid:] - INFO [main:Environment@100] - Server environment:java.class.path=/opt/zookeeper-3.4.6/bin/../build/classes:/opt/zookeeper-3.4.6/bin/../build/lib/*.jar:/opt/zookeeper-3.4.6/bin/../lib/slf4j-log4j12-1.6.1.jar:/opt/zookeeper-3.4.6/bin/../lib/slf4j-api-1.6.1.jar:/opt/zookeeper-3.4.6/bin/../lib/netty-3.7.0.Final.jar:/opt/zookeeper-3.4.6/bin/../lib/log4j-1.2.16.jar:/opt/zookeeper-3.4.6/bin/../lib/jline-0.9.94.jar:/opt/zookeeper-3.4.6/bin/../zookeeper-3.4.6.jar:/opt/zookeeper-3.4.6/bin/../src/java/lib/*.jar:/opt/zookeeper-3.4.6/bin/../conf:
zookeeper_1 | 2021-05-23 07:37:55,104 [myid:] - INFO [main:Environment@100] - Server environment:java.library.path=/usr/java/packages/lib/amd64:/usr/lib/x86_64-linux-gnu/jni:/lib/x86_64-linux-gnu:/usr/lib/x86_64-linux-gnu:/usr/lib/jni:/lib:/usr/lib
zookeeper_1 | 2021-05-23 07:37:55,104 [myid:] - INFO [main:Environment@100] - Server environment:java.io.tmpdir=/tmp
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:java.compiler=<NA>
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.home=/usr/lib/jvm/java-1.8-openjdk/jre (org.apache.zookeeper.ZooKeeper)
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:os.name=Linux
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:os.arch=amd64
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:os.version=5.4.0-73-generic
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:user.name=root
zookeeper_1 | 2021-05-23 07:37:55,105 [myid:] - INFO [main:Environment@100] - Server environment:user.home=/root
zookeeper_1 | 2021-05-23 07:37:55,106 [myid:] - INFO [main:Environment@100] - Server environment:user.dir=/opt/zookeeper-3.4.6
zookeeper_1 | 2021-05-23 07:37:55,106 [myid:] - INFO [main:ZooKeeperServer@755] - tickTime set to 2000
zookeeper_1 | 2021-05-23 07:37:55,106 [myid:] - INFO [main:ZooKeeperServer@764] - minSessionTimeout set to -1
zookeeper_1 | 2021-05-23 07:37:55,106 [myid:] - INFO [main:ZooKeeperServer@773] - maxSessionTimeout set to -1
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.class.path=/opt/kafka/bin/../libs/activation-1.1.1.jar:/opt/kafka/bin/../libs/aopalliance-repackaged-2.6.1.jar:/opt/kafka/bin/../libs/argparse4j-0.7.0.jar:/opt/kafka/bin/../libs/audience-annotations-0.5.0.jar:/opt/kafka/bin/../libs/commons-cli-1.4.jar:/opt/kafka/bin/../libs/commons-lang3-3.8.1.jar:/opt/kafka/bin/../libs/connect-api-2.7.0.jar:/opt/kafka/bin/../libs/connect-basic-auth-extension-2.7.0.jar:/opt/kafka/bin/../libs/connect-file-2.7.0.jar:/opt/kafka/bin/../libs/connect-json-2.7.0.jar:/opt/kafka/bin/../libs/connect-mirror-2.7.0.jar:/opt/kafka/bin/../libs/connect-mirror-client-2.7.0.jar:/opt/kafka/bin/../libs/connect-runtime-2.7.0.jar:/opt/kafka/bin/../libs/connect-transforms-2.7.0.jar:/opt/kafka/bin/../libs/hk2-api-2.6.1.jar:/opt/kafka/bin/../libs/hk2-locator-2.6.1.jar:/opt/kafka/bin/../libs/hk2-utils-2.6.1.jar:/opt/kafka/bin/../libs/jackson-annotations-2.10.5.jar:/opt/kafka/bin/../libs/jackson-core-2.10.5.jar:/opt/kafka/bin/../libs/jackson-databind-2.10.5.1.jar:/opt/kafka/bin/../libs/jackson-dataformat-csv-2.10.5.jar:/opt/kafka/bin/../libs/jackson-datatype-jdk8-2.10.5.jar:/opt/kafka/bin/../libs/jackson-jaxrs-base-2.10.5.jar:/opt/kafka/bin/../libs/jackson-jaxrs-json-provider-2.10.5.jar:/opt/kafka/bin/../libs/jackson-module-jaxb-annotations-2.10.5.jar:/opt/kafka/bin/../libs/jackson-module-paranamer-2.10.5.jar:/opt/kafka/bin/../libs/jackson-module-scala_2.13-2.10.5.jar:/opt/kafka/bin/../libs/jakarta.activation-api-1.2.1.jar:/opt/kafka/bin/../libs/jakarta.annotation-api-1.3.5.jar:/opt/kafka/bin/../libs/jakarta.inject-2.6.1.jar:/opt/kafka/bin/../libs/jakarta.validation-api-2.0.2.jar:/opt/kafka/bin/../libs/jakarta.ws.rs-api-2.1.6.jar:/opt/kafka/bin/../libs/jakarta.xml.bind-api-2.3.2.jar:/opt/kafka/bin/../libs/javassist-3.25.0-GA.jar:/opt/kafka/bin/../libs/javassist-3.26.0-GA.jar:/opt/kafka/bin/../libs/javax.servlet-api-3.1.0.jar:/opt/kafka/bin/../libs/javax.ws.rs-api-2.1.1.jar:/opt/kafka/bin/../libs/jaxb-api-2.3.0.jar:/opt/kafka/bin/../libs/jersey-client-2.31.jar:/opt/kafka/bin/../libs/jersey-common-2.31.jar:/opt/kafka/bin/../libs/jersey-container-servlet-2.31.jar:/opt/kafka/bin/../libs/jersey-container-servlet-core-2.31.jar:/opt/kafka/bin/../libs/jersey-hk2-2.31.jar:/opt/kafka/bin/../libs/jersey-media-jaxb-2.31.jar:/opt/kafka/bin/../libs/jersey-server-2.31.jar:/opt/kafka/bin/../libs/jetty-client-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-continuation-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-http-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-io-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-security-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-server-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-servlet-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-servlets-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jetty-util-9.4.33.v20201020.jar:/opt/kafka/bin/../libs/jopt-simple-5.0.4.jar:/opt/kafka/bin/../libs/kafka-clients-2.7.0.jar:/opt/kafka/bin/../libs/kafka-log4j-appender-2.7.0.jar:/opt/kafka/bin/../libs/kafka-raft-2.7.0.jar:/opt/kafka/bin/../libs/kafka-streams-2.7.0.jar:/opt/kafka/bin/../libs/kafka-streams-examples-2.7.0.jar:/opt/kafka/bin/../libs/kafka-streams-scala_2.13-2.7.0.jar:/opt/kafka/bin/../libs/kafka-streams-test-utils-2.7.0.jar:/opt/kafka/bin/../libs/kafka-tools-2.7.0.jar:/opt/kafka/bin/../libs/kafka_2.13-2.7.0-sources.jar:/opt/kafka/bin/../libs/kafka_2.13-2.7.0.jar:/opt/kafka/bin/../libs/log4j-1.2.17.jar:/opt/kafka/bin/../libs/lz4-java-1.7.1.jar:/opt/kafka/bin/../libs/maven-artifact-3.6.3.jar:/opt/kafka/bin/../libs/metrics-core-2.2.0.jar:/opt/kafka/bin/../libs/netty-buffer-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-codec-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-common-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-handler-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-resolver-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-transport-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-transport-native-epoll-4.1.51.Final.jar:/opt/kafka/bin/../libs/netty-transport-native-unix-common-4.1.51.Final.jar:/opt/kafka/bin/../libs/osgi-resource-locator-1.0.3.jar:/opt/kafka/bin/../libs/paranamer-2.8.jar:/opt/kafka/bin/../libs/plexus-utils-3.2.1.jar:/opt/kafka/bin/../libs/reflections-0.9.12.jar:/opt/kafka/bin/../libs/rocksdbjni-5.18.4.jar:/opt/kafka/bin/../libs/scala-collection-compat_2.13-2.2.0.jar:/opt/kafka/bin/../libs/scala-java8-compat_2.13-0.9.1.jar:/opt/kafka/bin/../libs/scala-library-2.13.3.jar:/opt/kafka/bin/../libs/scala-logging_2.13-3.9.2.jar:/opt/kafka/bin/../libs/scala-reflect-2.13.3.jar:/opt/kafka/bin/../libs/slf4j-api-1.7.30.jar:/opt/kafka/bin/../libs/slf4j-log4j12-1.7.30.jar:/opt/kafka/bin/../libs/snappy-java-1.1.7.7.jar:/opt/kafka/bin/../libs/zookeeper-3.5.8.jar:/opt/kafka/bin/../libs/zookeeper-jute-3.5.8.jar:/opt/kafka/bin/../libs/zstd-jni-1.4.5-6.jar (org.apache.zookeeper.ZooKeeper)
zookeeper_1 | 2021-05-23 07:37:55,112 [myid:] - INFO [main:NIOServerCnxnFactory@94] - binding to port 0.0.0.0/0.0.0.0:2181
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.library.path=/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64/server:/usr/lib/jvm/java-1.8-openjdk/jre/lib/amd64:/usr/lib/jvm/java-1.8-openjdk/jre/../lib/amd64:/usr/java/packages/lib/amd64:/usr/lib64:/lib64:/lib:/usr/lib (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.io.tmpdir=/tmp (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:java.compiler=<NA> (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.name=Linux (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.arch=amd64 (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.version=5.4.0-73-generic (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:user.name=root (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:user.home=/root (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:user.dir=/ (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.memory.free=973MB (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.memory.max=1024MB (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,280] INFO Client environment:os.memory.total=1024MB (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,290] INFO Initiating client connection, connectString=zookeeper:2181 sessionTimeout=18000 watcher=kafka.zookeeper.ZooKeeperClient$ZooKeeperClientWatcher$@333291e3 (org.apache.zookeeper.ZooKeeper)
kafka_1 | [2021-05-23 07:37:56,294] INFO jute.maxbuffer value is 4194304 Bytes (org.apache.zookeeper.ClientCnxnSocket)
kafka_1 | [2021-05-23 07:37:56,300] INFO zookeeper.request.timeout value is 0. feature enabled= (org.apache.zookeeper.ClientCnxn)
kafka_1 | [2021-05-23 07:37:56,302] INFO [ZooKeeperClient Kafka server] Waiting until connected. (kafka.zookeeper.ZooKeeperClient)
kafka_1 | [2021-05-23 07:37:56,304] INFO Opening socket connection to server zookeeper/172.18.0.3:2181. Will not attempt to authenticate using SASL (unknown error) (org.apache.zookeeper.ClientCnxn)
kafka_1 | [2021-05-23 07:37:56,309] INFO Socket connection established, initiating session, client: /172.18.0.4:46514, server: zookeeper/172.18.0.3:2181 (org.apache.zookeeper.ClientCnxn)
zookeeper_1 | 2021-05-23 07:37:56,311 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:NIOServerCnxnFactory@197] - Accepted socket connection from /172.18.0.4:46514
zookeeper_1 | 2021-05-23 07:37:56,317 [myid:] - INFO [NIOServerCxn.Factory:0.0.0.0/0.0.0.0:2181:ZooKeeperServer@868] - Client attempting to establish new session at /172.18.0.4:46514
zookeeper_1 | 2021-05-23 07:37:56,319 [myid:] - INFO [SyncThread:0:FileTxnLog@199] - Creating new log file: log.1
zookeeper_1 | 2021-05-23 07:37:56,330 [myid:] - INFO [SyncThread:0:ZooKeeperServer@617] - Established session 0x1799828b4af0000 with negotiated timeout 18000 for client /172.18.0.4:46514
kafka_1 | [2021-05-23 07:37:56,331] INFO Session establishment complete on server zookeeper/172.18.0.3:2181, sessionid = 0x1799828b4af0000, negotiated timeout = 18000 (org.apache.zookeeper.ClientCnxn)
kafka_1 | [2021-05-23 07:37:56,335] INFO [ZooKeeperClient Kafka server] Connected. (kafka.zookeeper.ZooKeeperClient)
zookeeper_1 | 2021-05-23 07:37:56,391 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:create cxid:0x2 zxid:0x3 txntype:-1 reqpath:n/a Error Path:/brokers Error:KeeperErrorCode = NoNode for /brokers
zookeeper_1 | 2021-05-23 07:37:56,399 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:create cxid:0x6 zxid:0x7 txntype:-1 reqpath:n/a Error Path:/config Error:KeeperErrorCode = NoNode for /config
zookeeper_1 | 2021-05-23 07:37:56,405 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:create cxid:0x9 zxid:0xa txntype:-1 reqpath:n/a Error Path:/admin Error:KeeperErrorCode = NoNode for /admin
kafka_1 | [2021-05-23 07:37:56,430] INFO [feature-zk-node-event-process-thread]: Starting (kafka.server.FinalizedFeatureChangeListener$ChangeNotificationProcessorThread)
kafka_1 | [2021-05-23 07:37:56,444] INFO Feature ZK node at path: /feature does not exist (kafka.server.FinalizedFeatureChangeListener)
kafka_1 | [2021-05-23 07:37:56,445] INFO Cleared cache (kafka.server.FinalizedFeatureCache)
zookeeper_1 | 2021-05-23 07:37:56,559 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:create cxid:0x17 zxid:0x15 txntype:-1 reqpath:n/a Error Path:/cluster Error:KeeperErrorCode = NoNode for /cluster
kafka_1 | [2021-05-23 07:37:56,567] INFO Cluster ID = qJUCtZnMTOms0ACGeP78Nw (kafka.server.KafkaServer)
kafka_1 | [2021-05-23 07:37:56,571] WARN No meta.properties file under dir /kafka/kafka-logs-0e099b3f07c2/meta.properties (kafka.server.BrokerMetadataCheckpoint)
kafka_1 | [2021-05-23 07:37:56,618] INFO KafkaConfig values:
kafka_1 | advertised.host.name = kafka
kafka_1 | advertised.listeners = null
kafka_1 | advertised.port = null
kafka_1 | alter.config.policy.class.name = null
kafka_1 | alter.log.dirs.replication.quota.window.num = 11
kafka_1 | alter.log.dirs.replication.quota.window.size.seconds = 1
kafka_1 | authorizer.class.name =
kafka_1 | auto.create.topics.enable = true
kafka_1 | auto.leader.rebalance.enable = true
kafka_1 | background.threads = 10
kafka_1 | broker.id = -1
kafka_1 | broker.id.generation.enable = true
kafka_1 | broker.rack = null
kafka_1 | client.quota.callback.class = null
kafka_1 | compression.type = producer
kafka_1 | connection.failed.authentication.delay.ms = 100
kafka_1 | connections.max.idle.ms = 600000
kafka_1 | connections.max.reauth.ms = 0
kafka_1 | control.plane.listener.name = null
kafka_1 | controlled.shutdown.enable = true
kafka_1 | controlled.shutdown.max.retries = 3
kafka_1 | controlled.shutdown.retry.backoff.ms = 5000
kafka_1 | controller.quota.window.num = 11
kafka_1 | controller.quota.window.size.seconds = 1
kafka_1 | controller.socket.timeout.ms = 30000
kafka_1 | create.topic.policy.class.name = null
kafka_1 | default.replication.factor = 1
kafka_1 | delegation.token.expiry.check.interval.ms = 3600000
kafka_1 | delegation.token.expiry.time.ms = 86400000
kafka_1 | delegation.token.master.key = null
kafka_1 | delegation.token.max.lifetime.ms = 604800000
kafka_1 | delete.records.purgatory.purge.interval.requests = 1
kafka_1 | delete.topic.enable = true
kafka_1 | fetch.max.bytes = 57671680
kafka_1 | fetch.purgatory.purge.interval.requests = 1000
kafka_1 | group.initial.rebalance.delay.ms = 0
kafka_1 | group.max.session.timeout.ms = 1800000
kafka_1 | group.max.size = 2147483647
kafka_1 | group.min.session.timeout.ms = 6000
kafka_1 | host.name =
kafka_1 | inter.broker.listener.name = null
kafka_1 | inter.broker.protocol.version = 2.7-IV2
kafka_1 | kafka.metrics.polling.interval.secs = 10
kafka_1 | kafka.metrics.reporters = []
kafka_1 | leader.imbalance.check.interval.seconds = 300
kafka_1 | leader.imbalance.per.broker.percentage = 10
kafka_1 | listener.security.protocol.map = PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
kafka_1 | listeners = null
kafka_1 | log.cleaner.backoff.ms = 15000
kafka_1 | log.cleaner.dedupe.buffer.size = 134217728
kafka_1 | log.cleaner.delete.retention.ms = 86400000
kafka_1 | log.cleaner.enable = true
kafka_1 | log.cleaner.io.buffer.load.factor = 0.9
kafka_1 | log.cleaner.io.buffer.size = 524288
kafka_1 | log.cleaner.io.max.bytes.per.second = 1.7976931348623157E308
kafka_1 | log.cleaner.max.compaction.lag.ms = 9223372036854775807
kafka_1 | log.cleaner.min.cleanable.ratio = 0.5
kafka_1 | log.cleaner.min.compaction.lag.ms = 0
kafka_1 | log.cleaner.threads = 1
kafka_1 | log.cleanup.policy = [delete]
kafka_1 | log.dir = /tmp/kafka-logs
kafka_1 | log.dirs = /kafka/kafka-logs-0e099b3f07c2
kafka_1 | log.flush.interval.messages = 9223372036854775807
kafka_1 | log.flush.interval.ms = null
kafka_1 | log.flush.offset.checkpoint.interval.ms = 60000
kafka_1 | log.flush.scheduler.interval.ms = 9223372036854775807
kafka_1 | log.flush.start.offset.checkpoint.interval.ms = 60000
kafka_1 | log.index.interval.bytes = 4096
kafka_1 | log.index.size.max.bytes = 10485760
kafka_1 | log.message.downconversion.enable = true
kafka_1 | log.message.format.version = 2.7-IV2
kafka_1 | log.message.timestamp.difference.max.ms = 9223372036854775807
kafka_1 | log.message.timestamp.type = CreateTime
kafka_1 | log.preallocate = false
kafka_1 | log.retention.bytes = -1
kafka_1 | log.retention.check.interval.ms = 300000
kafka_1 | log.retention.hours = 168
kafka_1 | log.retention.minutes = null
kafka_1 | log.retention.ms = null
kafka_1 | log.roll.hours = 168
kafka_1 | log.roll.jitter.hours = 0
kafka_1 | log.roll.jitter.ms = null
kafka_1 | log.roll.ms = null
kafka_1 | log.segment.bytes = 1073741824
kafka_1 | log.segment.delete.delay.ms = 60000
kafka_1 | max.connection.creation.rate = 2147483647
kafka_1 | max.connections = 2147483647
kafka_1 | max.connections.per.ip = 2147483647
kafka_1 | max.connections.per.ip.overrides =
kafka_1 | max.incremental.fetch.session.cache.slots = 1000
kafka_1 | message.max.bytes = 1048588
kafka_1 | metric.reporters = []
kafka_1 | metrics.num.samples = 2
kafka_1 | metrics.recording.level = INFO
kafka_1 | metrics.sample.window.ms = 30000
kafka_1 | min.insync.replicas = 1
kafka_1 | num.io.threads = 8
kafka_1 | num.network.threads = 3
kafka_1 | num.partitions = 1
kafka_1 | num.recovery.threads.per.data.dir = 1
kafka_1 | num.replica.alter.log.dirs.threads = null
kafka_1 | num.replica.fetchers = 1
kafka_1 | offset.metadata.max.bytes = 4096
kafka_1 | offsets.commit.required.acks = -1
kafka_1 | offsets.commit.timeout.ms = 5000
kafka_1 | offsets.load.buffer.size = 5242880
kafka_1 | offsets.retention.check.interval.ms = 600000
kafka_1 | offsets.retention.minutes = 10080
kafka_1 | offsets.topic.compression.codec = 0
kafka_1 | offsets.topic.num.partitions = 50
kafka_1 | offsets.topic.replication.factor = 1
kafka_1 | offsets.topic.segment.bytes = 104857600
kafka_1 | password.encoder.cipher.algorithm = AES/CBC/PKCS5Padding
kafka_1 | password.encoder.iterations = 4096
kafka_1 | password.encoder.key.length = 128
kafka_1 | password.encoder.keyfactory.algorithm = null
kafka_1 | password.encoder.old.secret = null
kafka_1 | password.encoder.secret = null
kafka_1 | port = 9092
kafka_1 | principal.builder.class = null
kafka_1 | producer.purgatory.purge.interval.requests = 1000
kafka_1 | queued.max.request.bytes = -1
kafka_1 | queued.max.requests = 500
kafka_1 | quota.consumer.default = 9223372036854775807
kafka_1 | quota.producer.default = 9223372036854775807
kafka_1 | quota.window.num = 11
kafka_1 | quota.window.size.seconds = 1
kafka_1 | replica.fetch.backoff.ms = 1000
kafka_1 | replica.fetch.max.bytes = 1048576
kafka_1 | replica.fetch.min.bytes = 1
kafka_1 | replica.fetch.response.max.bytes = 10485760
kafka_1 | replica.fetch.wait.max.ms = 500
kafka_1 | replica.high.watermark.checkpoint.interval.ms = 5000
kafka_1 | replica.lag.time.max.ms = 30000
kafka_1 | replica.selector.class = null
kafka_1 | replica.socket.receive.buffer.bytes = 65536
kafka_1 | replica.socket.timeout.ms = 30000
kafka_1 | replication.quota.window.num = 11
kafka_1 | replication.quota.window.size.seconds = 1
kafka_1 | request.timeout.ms = 30000
kafka_1 | reserved.broker.max.id = 1000
kafka_1 | sasl.client.callback.handler.class = null
kafka_1 | sasl.enabled.mechanisms = [GSSAPI]
kafka_1 | sasl.jaas.config = null
kafka_1 | sasl.kerberos.kinit.cmd = /usr/bin/kinit
kafka_1 | sasl.kerberos.min.time.before.relogin = 60000
kafka_1 | sasl.kerberos.principal.to.local.rules = [DEFAULT]
kafka_1 | sasl.kerberos.service.name = null
kafka_1 | sasl.kerberos.ticket.renew.jitter = 0.05
kafka_1 | sasl.kerberos.ticket.renew.window.factor = 0.8
kafka_1 | sasl.login.callback.handler.class = null
kafka_1 | sasl.login.class = null
kafka_1 | sasl.login.refresh.buffer.seconds = 300
kafka_1 | sasl.login.refresh.min.period.seconds = 60
kafka_1 | sasl.login.refresh.window.factor = 0.8
kafka_1 | sasl.login.refresh.window.jitter = 0.05
kafka_1 | sasl.mechanism.inter.broker.protocol = GSSAPI
kafka_1 | sasl.server.callback.handler.class = null
kafka_1 | security.inter.broker.protocol = PLAINTEXT
kafka_1 | security.providers = null
kafka_1 | socket.connection.setup.timeout.max.ms = 127000
kafka_1 | socket.connection.setup.timeout.ms = 10000
kafka_1 | socket.receive.buffer.bytes = 102400
kafka_1 | socket.request.max.bytes = 104857600
kafka_1 | socket.send.buffer.bytes = 102400
kafka_1 | ssl.cipher.suites = []
kafka_1 | ssl.client.auth = none
kafka_1 | ssl.enabled.protocols = [TLSv1.2]
kafka_1 | ssl.endpoint.identification.algorithm = https
kafka_1 | ssl.engine.factory.class = null
kafka_1 | ssl.key.password = null
kafka_1 | ssl.keymanager.algorithm = SunX509
kafka_1 | ssl.keystore.certificate.chain = null
kafka_1 | ssl.keystore.key = null
kafka_1 | ssl.keystore.location = null
kafka_1 | ssl.keystore.password = null
kafka_1 | ssl.keystore.type = JKS
kafka_1 | ssl.principal.mapping.rules = DEFAULT
kafka_1 | ssl.protocol = TLSv1.2
kafka_1 | ssl.provider = null
kafka_1 | ssl.secure.random.implementation = null
kafka_1 | ssl.trustmanager.algorithm = PKIX
kafka_1 | ssl.truststore.certificates = null
kafka_1 | ssl.truststore.location = null
kafka_1 | ssl.truststore.password = null
kafka_1 | ssl.truststore.type = JKS
kafka_1 | transaction.abort.timed.out.transaction.cleanup.interval.ms = 10000
kafka_1 | transaction.max.timeout.ms = 900000
kafka_1 | transaction.remove.expired.transaction.cleanup.interval.ms = 3600000
kafka_1 | transaction.state.log.load.buffer.size = 5242880
kafka_1 | transaction.state.log.min.isr = 1
kafka_1 | transaction.state.log.num.partitions = 50
kafka_1 | transaction.state.log.replication.factor = 1
kafka_1 | transaction.state.log.segment.bytes = 104857600
kafka_1 | transactional.id.expiration.ms = 604800000
kafka_1 | unclean.leader.election.enable = false
kafka_1 | zookeeper.clientCnxnSocket = null
kafka_1 | zookeeper.connect = zookeeper:2181
kafka_1 | zookeeper.connection.timeout.ms = 18000
kafka_1 | zookeeper.max.in.flight.requests = 10
kafka_1 | zookeeper.session.timeout.ms = 18000
kafka_1 | zookeeper.set.acl = false
kafka_1 | zookeeper.ssl.cipher.suites = null
kafka_1 | zookeeper.ssl.client.enable = false
kafka_1 | zookeeper.ssl.crl.enable = false
kafka_1 | zookeeper.ssl.enabled.protocols = null
kafka_1 | zookeeper.ssl.endpoint.identification.algorithm = HTTPS
kafka_1 | zookeeper.ssl.keystore.location = null
kafka_1 | zookeeper.ssl.keystore.password = null
kafka_1 | zookeeper.ssl.keystore.type = null
kafka_1 | zookeeper.ssl.ocsp.enable = false
kafka_1 | zookeeper.ssl.protocol = TLSv1.2
kafka_1 | zookeeper.ssl.truststore.location = null
kafka_1 | zookeeper.ssl.truststore.password = null
kafka_1 | zookeeper.ssl.truststore.type = null
kafka_1 | zookeeper.sync.time.ms = 2000
kafka_1 | (kafka.server.KafkaConfig)
kafka_1 | [2021-05-23 07:37:56,624] INFO KafkaConfig values:
kafka_1 | advertised.host.name = kafka
kafka_1 | advertised.listeners = null
kafka_1 | advertised.port = null
kafka_1 | alter.config.policy.class.name = null
kafka_1 | alter.log.dirs.replication.quota.window.num = 11
kafka_1 | alter.log.dirs.replication.quota.window.size.seconds = 1
kafka_1 | authorizer.class.name =
kafka_1 | auto.create.topics.enable = true
kafka_1 | auto.leader.rebalance.enable = true
kafka_1 | background.threads = 10
kafka_1 | broker.id = -1
kafka_1 | broker.id.generation.enable = true
kafka_1 | broker.rack = null
kafka_1 | client.quota.callback.class = null
kafka_1 | compression.type = producer
kafka_1 | connection.failed.authentication.delay.ms = 100
kafka_1 | connections.max.idle.ms = 600000
kafka_1 | connections.max.reauth.ms = 0
kafka_1 | control.plane.listener.name = null
kafka_1 | controlled.shutdown.enable = true
kafka_1 | controlled.shutdown.max.retries = 3
kafka_1 | controlled.shutdown.retry.backoff.ms = 5000
kafka_1 | controller.quota.window.num = 11
kafka_1 | controller.quota.window.size.seconds = 1
kafka_1 | controller.socket.timeout.ms = 30000
kafka_1 | create.topic.policy.class.name = null
kafka_1 | default.replication.factor = 1
kafka_1 | delegation.token.expiry.check.interval.ms = 3600000
kafka_1 | delegation.token.expiry.time.ms = 86400000
kafka_1 | delegation.token.master.key = null
kafka_1 | delegation.token.max.lifetime.ms = 604800000
kafka_1 | delete.records.purgatory.purge.interval.requests = 1
kafka_1 | delete.topic.enable = true
kafka_1 | fetch.max.bytes = 57671680
kafka_1 | fetch.purgatory.purge.interval.requests = 1000
kafka_1 | group.initial.rebalance.delay.ms = 0
kafka_1 | group.max.session.timeout.ms = 1800000
kafka_1 | group.max.size = 2147483647
kafka_1 | group.min.session.timeout.ms = 6000
kafka_1 | host.name =
kafka_1 | inter.broker.listener.name = null
kafka_1 | inter.broker.protocol.version = 2.7-IV2
kafka_1 | kafka.metrics.polling.interval.secs = 10
kafka_1 | kafka.metrics.reporters = []
kafka_1 | leader.imbalance.check.interval.seconds = 300
kafka_1 | leader.imbalance.per.broker.percentage = 10
kafka_1 | listener.security.protocol.map = PLAINTEXT:PLAINTEXT,SSL:SSL,SASL_PLAINTEXT:SASL_PLAINTEXT,SASL_SSL:SASL_SSL
kafka_1 | listeners = null
kafka_1 | log.cleaner.backoff.ms = 15000
kafka_1 | log.cleaner.dedupe.buffer.size = 134217728
kafka_1 | log.cleaner.delete.retention.ms = 86400000
kafka_1 | log.cleaner.enable = true
kafka_1 | log.cleaner.io.buffer.load.factor = 0.9
kafka_1 | log.cleaner.io.buffer.size = 524288
kafka_1 | log.cleaner.io.max.bytes.per.second = 1.7976931348623157E308
kafka_1 | log.cleaner.max.compaction.lag.ms = 9223372036854775807
kafka_1 | log.cleaner.min.cleanable.ratio = 0.5
kafka_1 | log.cleaner.min.compaction.lag.ms = 0
kafka_1 | log.cleaner.threads = 1
kafka_1 | log.cleanup.policy = [delete]
kafka_1 | log.dir = /tmp/kafka-logs
kafka_1 | log.dirs = /kafka/kafka-logs-0e099b3f07c2
kafka_1 | log.flush.interval.messages = 9223372036854775807
kafka_1 | log.flush.interval.ms = null
kafka_1 | log.flush.offset.checkpoint.interval.ms = 60000
kafka_1 | log.flush.scheduler.interval.ms = 9223372036854775807
kafka_1 | log.flush.start.offset.checkpoint.interval.ms = 60000
kafka_1 | log.index.interval.bytes = 4096
kafka_1 | log.index.size.max.bytes = 10485760
kafka_1 | log.message.downconversion.enable = true
kafka_1 | log.message.format.version = 2.7-IV2
kafka_1 | log.message.timestamp.difference.max.ms = 9223372036854775807
kafka_1 | log.message.timestamp.type = CreateTime
kafka_1 | log.preallocate = false
kafka_1 | log.retention.bytes = -1
kafka_1 | log.retention.check.interval.ms = 300000
kafka_1 | log.retention.hours = 168
kafka_1 | log.retention.minutes = null
kafka_1 | log.retention.ms = null
kafka_1 | log.roll.hours = 168
kafka_1 | log.roll.jitter.hours = 0
kafka_1 | log.roll.jitter.ms = null
kafka_1 | log.roll.ms = null
kafka_1 | log.segment.bytes = 1073741824
kafka_1 | log.segment.delete.delay.ms = 60000
kafka_1 | max.connection.creation.rate = 2147483647
kafka_1 | max.connections = 2147483647
kafka_1 | max.connections.per.ip = 2147483647
kafka_1 | max.connections.per.ip.overrides =
kafka_1 | max.incremental.fetch.session.cache.slots = 1000
kafka_1 | message.max.bytes = 1048588
kafka_1 | metric.reporters = []
kafka_1 | metrics.num.samples = 2
kafka_1 | metrics.recording.level = INFO
kafka_1 | metrics.sample.window.ms = 30000
kafka_1 | min.insync.replicas = 1
kafka_1 | num.io.threads = 8
kafka_1 | num.network.threads = 3
kafka_1 | num.partitions = 1
kafka_1 | num.recovery.threads.per.data.dir = 1
kafka_1 | num.replica.alter.log.dirs.threads = null
kafka_1 | num.replica.fetchers = 1
kafka_1 | offset.metadata.max.bytes = 4096
kafka_1 | offsets.commit.required.acks = -1
kafka_1 | offsets.commit.timeout.ms = 5000
kafka_1 | offsets.load.buffer.size = 5242880
kafka_1 | offsets.retention.check.interval.ms = 600000
kafka_1 | offsets.retention.minutes = 10080
kafka_1 | offsets.topic.compression.codec = 0
kafka_1 | offsets.topic.num.partitions = 50
kafka_1 | offsets.topic.replication.factor = 1
kafka_1 | offsets.topic.segment.bytes = 104857600
kafka_1 | password.encoder.cipher.algorithm = AES/CBC/PKCS5Padding
kafka_1 | password.encoder.iterations = 4096
kafka_1 | password.encoder.key.length = 128
kafka_1 | password.encoder.keyfactory.algorithm = null
kafka_1 | password.encoder.old.secret = null
kafka_1 | password.encoder.secret = null
kafka_1 | port = 9092
kafka_1 | principal.builder.class = null
kafka_1 | producer.purgatory.purge.interval.requests = 1000
kafka_1 | queued.max.request.bytes = -1
kafka_1 | queued.max.requests = 500
kafka_1 | quota.consumer.default = 9223372036854775807
kafka_1 | quota.producer.default = 9223372036854775807
kafka_1 | quota.window.num = 11
kafka_1 | quota.window.size.seconds = 1
kafka_1 | replica.fetch.backoff.ms = 1000
kafka_1 | replica.fetch.max.bytes = 1048576
kafka_1 | replica.fetch.min.bytes = 1
kafka_1 | replica.fetch.response.max.bytes = 10485760
kafka_1 | replica.fetch.wait.max.ms = 500
kafka_1 | replica.high.watermark.checkpoint.interval.ms = 5000
kafka_1 | replica.lag.time.max.ms = 30000
kafka_1 | replica.selector.class = null
kafka_1 | replica.socket.receive.buffer.bytes = 65536
kafka_1 | replica.socket.timeout.ms = 30000
kafka_1 | replication.quota.window.num = 11
kafka_1 | replication.quota.window.size.seconds = 1
kafka_1 | request.timeout.ms = 30000
kafka_1 | reserved.broker.max.id = 1000
kafka_1 | sasl.client.callback.handler.class = null
kafka_1 | sasl.enabled.mechanisms = [GSSAPI]
kafka_1 | sasl.jaas.config = null
kafka_1 | sasl.kerberos.kinit.cmd = /usr/bin/kinit
kafka_1 | sasl.kerberos.min.time.before.relogin = 60000
kafka_1 | sasl.kerberos.principal.to.local.rules = [DEFAULT]
kafka_1 | sasl.kerberos.service.name = null
kafka_1 | sasl.kerberos.ticket.renew.jitter = 0.05
kafka_1 | sasl.kerberos.ticket.renew.window.factor = 0.8
kafka_1 | sasl.login.callback.handler.class = null
kafka_1 | sasl.login.class = null
kafka_1 | sasl.login.refresh.buffer.seconds = 300
kafka_1 | sasl.login.refresh.min.period.seconds = 60
kafka_1 | sasl.login.refresh.window.factor = 0.8
kafka_1 | sasl.login.refresh.window.jitter = 0.05
kafka_1 | sasl.mechanism.inter.broker.protocol = GSSAPI
kafka_1 | sasl.server.callback.handler.class = null
kafka_1 | security.inter.broker.protocol = PLAINTEXT
kafka_1 | security.providers = null
kafka_1 | socket.connection.setup.timeout.max.ms = 127000
kafka_1 | socket.connection.setup.timeout.ms = 10000
kafka_1 | socket.receive.buffer.bytes = 102400
kafka_1 | socket.request.max.bytes = 104857600
kafka_1 | socket.send.buffer.bytes = 102400
kafka_1 | ssl.cipher.suites = []
kafka_1 | ssl.client.auth = none
kafka_1 | ssl.enabled.protocols = [TLSv1.2]
kafka_1 | ssl.endpoint.identification.algorithm = https
kafka_1 | ssl.engine.factory.class = null
kafka_1 | ssl.key.password = null
kafka_1 | ssl.keymanager.algorithm = SunX509
kafka_1 | ssl.keystore.certificate.chain = null
kafka_1 | ssl.keystore.key = null
kafka_1 | ssl.keystore.location = null
kafka_1 | ssl.keystore.password = null
kafka_1 | ssl.keystore.type = JKS
kafka_1 | ssl.principal.mapping.rules = DEFAULT
kafka_1 | ssl.protocol = TLSv1.2
kafka_1 | ssl.provider = null
kafka_1 | ssl.secure.random.implementation = null
kafka_1 | ssl.trustmanager.algorithm = PKIX
kafka_1 | ssl.truststore.certificates = null
kafka_1 | ssl.truststore.location = null
kafka_1 | ssl.truststore.password = null
kafka_1 | ssl.truststore.type = JKS
kafka_1 | transaction.abort.timed.out.transaction.cleanup.interval.ms = 10000
kafka_1 | transaction.max.timeout.ms = 900000
kafka_1 | transaction.remove.expired.transaction.cleanup.interval.ms = 3600000
kafka_1 | transaction.state.log.load.buffer.size = 5242880
kafka_1 | transaction.state.log.min.isr = 1
kafka_1 | transaction.state.log.num.partitions = 50
kafka_1 | transaction.state.log.replication.factor = 1
kafka_1 | transaction.state.log.segment.bytes = 104857600
kafka_1 | transactional.id.expiration.ms = 604800000
kafka_1 | unclean.leader.election.enable = false
kafka_1 | zookeeper.clientCnxnSocket = null
kafka_1 | zookeeper.connect = zookeeper:2181
kafka_1 | zookeeper.connection.timeout.ms = 18000
kafka_1 | zookeeper.max.in.flight.requests = 10
kafka_1 | zookeeper.session.timeout.ms = 18000
kafka_1 | zookeeper.set.acl = false
kafka_1 | zookeeper.ssl.cipher.suites = null
kafka_1 | zookeeper.ssl.client.enable = false
kafka_1 | zookeeper.ssl.crl.enable = false
kafka_1 | zookeeper.ssl.enabled.protocols = null
kafka_1 | zookeeper.ssl.endpoint.identification.algorithm = HTTPS
kafka_1 | zookeeper.ssl.keystore.location = null
kafka_1 | zookeeper.ssl.keystore.password = null
kafka_1 | zookeeper.ssl.keystore.type = null
kafka_1 | zookeeper.ssl.ocsp.enable = false
kafka_1 | zookeeper.ssl.protocol = TLSv1.2
kafka_1 | zookeeper.ssl.truststore.location = null
kafka_1 | zookeeper.ssl.truststore.password = null
kafka_1 | zookeeper.ssl.truststore.type = null
kafka_1 | zookeeper.sync.time.ms = 2000
kafka_1 | (kafka.server.KafkaConfig)
kafka_1 | [2021-05-23 07:37:56,650] INFO [ThrottledChannelReaper-Fetch]: Starting (kafka.server.ClientQuotaManager$ThrottledChannelReaper)
kafka_1 | [2021-05-23 07:37:56,650] INFO [ThrottledChannelReaper-Produce]: Starting (kafka.server.ClientQuotaManager$ThrottledChannelReaper)
kafka_1 | [2021-05-23 07:37:56,651] INFO [ThrottledChannelReaper-Request]: Starting (kafka.server.ClientQuotaManager$ThrottledChannelReaper)
kafka_1 | [2021-05-23 07:37:56,652] INFO [ThrottledChannelReaper-ControllerMutation]: Starting (kafka.server.ClientQuotaManager$ThrottledChannelReaper)
kafka_1 | [2021-05-23 07:37:56,673] INFO Log directory /kafka/kafka-logs-0e099b3f07c2 not found, creating it. (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,678] INFO Loading logs from log dirs ArraySeq(/kafka/kafka-logs-0e099b3f07c2) (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,679] INFO Attempting recovery for all logs in /kafka/kafka-logs-0e099b3f07c2 since no clean shutdown file was found (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,682] INFO Loaded 0 logs in 4ms. (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,692] INFO Starting log cleanup with a period of 300000 ms. (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,694] INFO Starting log flusher with a default period of 9223372036854775807 ms. (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:56,985] INFO Created ConnectionAcceptRate sensor, quotaLimit=2147483647 (kafka.network.ConnectionQuotas)
kafka_1 | [2021-05-23 07:37:56,987] INFO Created ConnectionAcceptRate-PLAINTEXT sensor, quotaLimit=2147483647 (kafka.network.ConnectionQuotas)
kafka_1 | [2021-05-23 07:37:56,989] INFO Updated PLAINTEXT max connection creation rate to 2147483647 (kafka.network.ConnectionQuotas)
kafka_1 | [2021-05-23 07:37:56,991] INFO Awaiting socket connections on 0.0.0.0:9092. (kafka.network.Acceptor)
kafka_1 | [2021-05-23 07:37:57,018] INFO [SocketServer brokerId=1001] Created data-plane acceptor and processors for endpoint : ListenerName(PLAINTEXT) (kafka.network.SocketServer)
kafka_1 | [2021-05-23 07:37:57,040] INFO [ExpirationReaper-1001-Produce]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,041] INFO [ExpirationReaper-1001-Fetch]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,041] INFO [ExpirationReaper-1001-DeleteRecords]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,041] INFO [ExpirationReaper-1001-ElectLeader]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,049] INFO [LogDirFailureHandler]: Starting (kafka.server.ReplicaManager$LogDirFailureHandler)
kafka_1 | [2021-05-23 07:37:57,049] INFO [broker-1001-to-controller-send-thread]: Starting (kafka.server.BrokerToControllerRequestThread)
kafka_1 | [2021-05-23 07:37:57,068] INFO Creating /brokers/ids/1001 (is it secure? false) (kafka.zk.KafkaZkClient)
kafka_1 | [2021-05-23 07:37:57,086] INFO Stat of the created znode at /brokers/ids/1001 is: 25,25,1621755477078,1621755477078,1,0,0,106283366817398784,194,0,25
kafka_1 | (kafka.zk.KafkaZkClient)
kafka_1 | [2021-05-23 07:37:57,087] INFO Registered broker 1001 at path /brokers/ids/1001 with addresses: PLAINTEXT://kafka:9092, czxid (broker epoch): 25 (kafka.zk.KafkaZkClient)
kafka_1 | [2021-05-23 07:37:57,141] INFO [ExpirationReaper-1001-topic]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
kafka_1 | [2021-05-23 07:37:57,143] INFO [ExpirationReaper-1001-Heartbeat]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,144] INFO [ExpirationReaper-1001-Rebalance]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,149] INFO Successfully created /controller_epoch with initial epoch 0 (kafka.zk.KafkaZkClient)
kafka_1 | [2021-05-23 07:37:57,163] INFO [GroupCoordinator 1001]: Starting up. (kafka.coordinator.group.GroupCoordinator)
kafka_1 | [2021-05-23 07:37:57,163] INFO Feature ZK node created at path: /feature (kafka.server.FinalizedFeatureChangeListener)
kafka_1 | [2021-05-23 07:37:57,163] INFO [GroupCoordinator 1001]: Startup complete. (kafka.coordinator.group.GroupCoordinator)
kafka_1 | [2021-05-23 07:37:57,171] INFO [ProducerId Manager 1001]: Acquired new producerId block (brokerId:1001,blockStartProducerId:0,blockEndProducerId:999) by writing to Zk with path version 1 (kafka.coordinator.transaction.ProducerIdManager)
kafka_1 | [2021-05-23 07:37:57,190] INFO [TransactionCoordinator id=1001] Starting up. (kafka.coordinator.transaction.TransactionCoordinator)
kafka_1 | [2021-05-23 07:37:57,191] INFO [Transaction Marker Channel Manager 1001]: Starting (kafka.coordinator.transaction.TransactionMarkerChannelManager)
kafka_1 | [2021-05-23 07:37:57,191] INFO [TransactionCoordinator id=1001] Startup complete. (kafka.coordinator.transaction.TransactionCoordinator)
kafka_1 | [2021-05-23 07:37:57,224] INFO [ExpirationReaper-1001-AlterAcls]: Starting (kafka.server.DelayedOperationPurgatory$ExpiredOperationReaper)
kafka_1 | [2021-05-23 07:37:57,227] INFO Updated cache from existing <empty> to latest FinalizedFeaturesAndEpoch(features=Features{}, epoch=0). (kafka.server.FinalizedFeatureCache)
kafka_1 | [2021-05-23 07:37:57,243] INFO [/config/changes-event-process-thread]: Starting (kafka.common.ZkNodeChangeNotificationListener$ChangeEventProcessThread)
kafka_1 | [2021-05-23 07:37:57,251] INFO [SocketServer brokerId=1001] Starting socket server acceptors and processors (kafka.network.SocketServer)
kafka_1 | [2021-05-23 07:37:57,255] INFO [SocketServer brokerId=1001] Started data-plane acceptor and processor(s) for endpoint : ListenerName(PLAINTEXT) (kafka.network.SocketServer)
kafka_1 | [2021-05-23 07:37:57,255] INFO [SocketServer brokerId=1001] Started socket server acceptors and processors (kafka.network.SocketServer)
kafka_1 | [2021-05-23 07:37:57,258] INFO Kafka version: 2.7.0 (org.apache.kafka.common.utils.AppInfoParser)
kafka_1 | [2021-05-23 07:37:57,259] INFO Kafka commitId: 448719dc99a19793 (org.apache.kafka.common.utils.AppInfoParser)
kafka_1 | [2021-05-23 07:37:57,259] INFO Kafka startTimeMs: 1621755477255 (org.apache.kafka.common.utils.AppInfoParser)
kafka_1 | [2021-05-23 07:37:57,260] INFO [KafkaServer id=1001] started (kafka.server.KafkaServer)
zookeeper_1 | 2021-05-23 07:37:57,280 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@592] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:multi cxid:0x3e zxid:0x1e txntype:-1 reqpath:n/a aborting remaining multi ops. Error Path:/admin/preferred_replica_election Error:KeeperErrorCode = NoNode for /admin/preferred_replica_election
kafka_1 | [2021-05-23 07:37:57,350] INFO [broker-1001-to-controller-send-thread]: Recorded new controller, from now on will use broker 1001 (kafka.server.BrokerToControllerRequestThread)
kafka_1 | [2021-05-23 07:37:57,427] INFO Creating topic topic1 with configuration {} and initial partition assignment HashMap(0 -> ArrayBuffer(1001)) (kafka.zk.AdminZkClient)
zookeeper_1 | 2021-05-23 07:37:57,428 [myid:] - INFO [ProcessThread(sid:0 cport:-1)::PrepRequestProcessor@645] - Got user-level KeeperException when processing sessionid:0x1799828b4af0000 type:setData cxid:0x45 zxid:0x1f txntype:-1 reqpath:n/a Error Path:/config/topics/topic1 Error:KeeperErrorCode = NoNode for /config/topics/topic1
kafka_1 | [2021-05-23 07:37:57,441] INFO [KafkaApi-1001] Auto creation of topic topic1 with 1 partitions and replication factor 1 is successful (kafka.server.KafkaApis)
kafka_1 | [2021-05-23 07:37:57,497] INFO [ReplicaFetcherManager on broker 1001] Removed fetcher for partitions Set(topic1-0) (kafka.server.ReplicaFetcherManager)
kafka_1 | [2021-05-23 07:37:57,533] INFO [Log partition=topic1-0, dir=/kafka/kafka-logs-0e099b3f07c2] Loading producer state till offset 0 with message format version 2 (kafka.log.Log)
kafka_1 | [2021-05-23 07:37:57,538] INFO Created log for partition topic1-0 in /kafka/kafka-logs-0e099b3f07c2/topic1-0 with properties {compression.type -> producer, message.downconversion.enable -> true, min.insync.replicas -> 1, segment.jitter.ms -> 0, cleanup.policy -> [delete], flush.ms -> 9223372036854775807, segment.bytes -> 1073741824, retention.ms -> 604800000, flush.messages -> 9223372036854775807, message.format.version -> 2.7-IV2, file.delete.delay.ms -> 60000, max.compaction.lag.ms -> 9223372036854775807, max.message.bytes -> 1048588, min.compaction.lag.ms -> 0, message.timestamp.type -> CreateTime, preallocate -> false, min.cleanable.dirty.ratio -> 0.5, index.interval.bytes -> 4096, unclean.leader.election.enable -> false, retention.bytes -> -1, delete.retention.ms -> 86400000, segment.ms -> 604800000, message.timestamp.difference.max.ms -> 9223372036854775807, segment.index.bytes -> 10485760}. (kafka.log.LogManager)
kafka_1 | [2021-05-23 07:37:57,538] INFO [Partition topic1-0 broker=1001] No checkpointed highwatermark is found for partition topic1-0 (kafka.cluster.Partition)
kafka_1 | [2021-05-23 07:37:57,539] INFO [Partition topic1-0 broker=1001] Log loaded for partition topic1-0 with initial high watermark 0 (kafka.cluster.Partition)
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
producer-random_1 | dial tcp 172.18.0.4:9092: connect: connection refused
^CGracefully stopping... (press Ctrl+C again to force)
Stopping examples_consumer-mongo-db_1 ... done
Stopping examples_producer-random_1 ... done
Stopping examples_consumer-logger_1 ... done
Stopping examples_producer-api_1 ... done
Stopping examples_kafka_1 ... done
Stopping examples_zookeeper_1 ... done
Stopping examples_mongo-db_1 ... done
@yngvark you might also want to do a docker-compose build
to make sure the local images are refreshed, it doesn't happen automatically if they were built on an older version previously.
Describe the bug I'm new to kafka-go and Kafka. I want to do a quick test to get a working producer (and later, a consumer).
Kafka Version 2.7.0, according to the log (see below).
(I'm using docker image wurstmeister/kafka:2.13-2.7.0.)
To Reproduce
Not sure why this happens.
Another attempt: I comment out all services except kafka and zookeeper from docker-compose.yaml, and run
This might be a basic error, but as a newbie, I don't know how to create a topic or partition.
I tried adding
KAFKA_AUTO_CREATE_TOPICS_ENABLE='true'
toexamples/kafka/kafka-variables.env
, but I got same result.Expected behavior
I expect the example to work without any error message.
Additional context
It would be nice with a simple, step by step, "Getting started" section in the readme.
(I also tried with the code in the https://github.com/segmentio/kafka-go#connection- section, but haven't got it to work yet.)