Open mabouchard-estruxture opened 4 years ago
We took a look at this in Community Slack. In 0.10.1, the config KSQL_CONFIG_DIR: "/etc/ksqldb"
appears to disable logging. This masked a separate issue causing server startup to fail.
I'm going to update the issue title to focus on the configuration issue. In general the repro steps above apply.
I tried reproducing the error but I am unable to. I don't have CentOS so I tried on my mac with the following docker-compose file
---
version: '2'
services:
zookeeper:
image: confluentinc/cp-zookeeper:5.5.0
hostname: zookeeper
container_name: zookeeper
ports:
- "2181:2181"
environment:
ZOOKEEPER_CLIENT_PORT: 2181
ZOOKEEPER_TICK_TIME: 2000
broker:
image: confluentinc/cp-enterprise-kafka:5.5.0
hostname: broker
container_name: broker
depends_on:
- zookeeper
ports:
- "29092:29092"
environment:
KAFKA_BROKER_ID: 1
KAFKA_ZOOKEEPER_CONNECT: 'zookeeper:2181'
KAFKA_LISTENER_SECURITY_PROTOCOL_MAP: PLAINTEXT:PLAINTEXT,PLAINTEXT_HOST:PLAINTEXT
KAFKA_ADVERTISED_LISTENERS: PLAINTEXT://broker:9092,PLAINTEXT_HOST://localhost:29092
KAFKA_OFFSETS_TOPIC_REPLICATION_FACTOR: 1
KAFKA_GROUP_INITIAL_REBALANCE_DELAY_MS: 0
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
KAFKA_TRANSACTION_STATE_LOG_REPLICATION_FACTOR: 1
ksqldb-server:
image: confluentinc/ksqldb-server:0.10.1
hostname: ksqldb-server
container_name: ksqldb-server
depends_on:
- broker
ports:
- "8088:8088"
environment:
KSQL_CONFIG_DIR: "/etc/ksqldb"
KSQL_LISTENERS: http://0.0.0.0:8088
KSQL_BOOTSTRAP_SERVERS: broker:9092
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
ksqldb-cli:
image: confluentinc/ksqldb-cli:0.10.1
container_name: ksqldb-cli
depends_on:
- broker
- ksqldb-server
entrypoint: /bin/sh
tty: true
environment:
KSQL_CONFIG_DIR: "/etc/ksqldb"
The server started normally and I was able to see the logging
Describe the bug We have a server on which kSQLdb 0.8.1 runs within a Docker container, under CentOS 7. Recently, we tried to upgrade to versions 0.9.0 and 0.10.1, but neither of these newer versions were functional.
On 0.9.0, the container started fine, but running the CLI gave the warning:
WARNING: Unable to create a system terminal, creating a dumb terminal
On 0.10.1, the container fails to start at all, and gives the following messages:
To Reproduce
yum install docker
sudo curl -L "https://github.com/docker/compose/releases/download/1.26.2/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose
sudo chmod +x /usr/local/bin/docker-compose
services: ksqldb-server: image: confluentinc/ksqldb-server:0.10.1 hostname: ksqldb-server container_name: ksqldb-server volumes:
"8088:8088" environment: KSQL_CONFIG_DIR: "/etc/ksqldb" KSQL_KSQL_EXTENSION_DIR: "/etc/ksqldb/ext/" KSQL_LISTENERS: http://0.0.0.0:8088 KSQL_BOOTSTRAP_SERVERS: THE_MACHINE'S_OWN_IP:9092 #
KSQL_KSQL_LOGGING_PROCESSING_STREAM_AUTO_CREATE: "true"
KSQL_KSQL_LOGGING_PROCESSING_TOPIC_AUTO_CREATE: "true"
KSQL_KSQL_SERVICE_ID: mtl1-k01
logging:
driver: "json-file"
ksqldb-cli: image: confluentinc/ksqldb-cli:0.10.1 container_name: ksqldb-cli depends_on:
Additional context We also attempted to install kSQLdb on another machine, also running CentOS 7. This time, we installed fresh. However, we encountered the same behavior, and ultimately installed 0.8.1 in order to have a functional kSQLdb to work with.
In both cases, kSQLdb successfully created its system topics in Kafka.
Both systems have the same
docker system info
, with only difference being the kernel's build number: