[ 
https://issues.apache.org/jira/browse/KAFKA-20093?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Christo Lolov resolved KAFKA-20093.
-----------------------------------
    Resolution: Fixed

> KAFKA_URL is baked in as an environment variable causing faulty 
> server.properties
> ---------------------------------------------------------------------------------
>
>                 Key: KAFKA-20093
>                 URL: https://issues.apache.org/jira/browse/KAFKA-20093
>             Project: Kafka
>          Issue Type: Bug
>            Reporter: Christo Lolov
>            Assignee: Christo Lolov
>            Priority: Blocker
>             Fix For: 4.2.0
>
>
> When creating a JVM Docker image for Kafka, due to recent(ish) changes in the 
> Dockerfile, we set KAFKA_URL as an environment variable. This bakes the 
> environment variable within the Docker image itself. In turn, this causes a 
> faulty server.properties to be generated, which only contains a url=<URL> 
> entry.
> First encountered in RC0:
> ```
> Note - when I run the quickstart against the JVM Docker image I need to 
> specify the process.roles. I do not seem to need to specify the process.roles 
> if I run the 4.1.1 image. I will run this once again tomorrow in another 
> clean environment, but if somebody else can confirm/deny whether they can 
> reproduce this beforehand this would also be greatly appreciated!
> ```
> Second encounter in RC1 with more details:
> ```
> I think the difference is there is a KAFKA_ environment variable set in the
> image
> podman run --rm -it --entrypoint env apache/kafka:4.2.0-rc1 | grep KAFKA
> KAFKA_URL=
> https://dist.apache.org/repos/dist/dev/kafka/4.2.0-rc1/kafka_2.13-4.2.0.tgz
> which isn't present in 4.1.1. Leading to
> /opt/kafka/config/server.properties being generated containing:
> $ container=$(podman run --detach -p 9092:9092 apache/kafka:4.2.0-rc1)
> $ podman cp ${container}:/opt/kafka/config/server.properties .
> $ cat server.properties
> url=
> https://dist.apache.org/repos/dist/dev/kafka/4.2.0-rc1/kafka_2.13-4.2.0.tgz
> ```



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to