Ubuntu server update env variale

Viewed 18

I am new to ubuntu server and Kafka. Kafka is running in a docker container. Hence, I need to change the default localhost to the machine's ip. Looking to update an env variable.

export  KAFKA_ADVERSITED_HOST-kafka = 192.168.1.56

even tried with quotes.

export KAFKA_ADVERSITED_HOST-kafka = "192.168.1.56"

I get not a valid identifier. Some on you might think that the hypen is wrong but it was there already in the java package when I checked it out.

0 Answers
Related