Skip to content

Commit 8582140

Browse files
xtucsscaling
authored andcommitted
Fix Invalid interpolation and KAFKA_CREATE_TOPICS_SEPARATOR (wurstmeister#343)
* Update README.md
1 parent ebc153a commit 8582140

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ The default ```docker-compose.yml``` should be seen as a starting point. By defa
5454
You can configure the broker id in different ways
5555

5656
1. explicitly, using ```KAFKA_BROKER_ID```
57-
2. via a command, using ```BROKER_ID_COMMAND```, e.g. ```BROKER_ID_COMMAND: "hostname | awk -F'-' '{print $2}'"```
57+
2. via a command, using ```BROKER_ID_COMMAND```, e.g. ```BROKER_ID_COMMAND: "hostname | awk -F'-' '{print $$2}'"```
5858

5959
If you don't specify a broker id in your docker-compose file, it will automatically be generated (see [https://issues.apache.org/jira/browse/KAFKA-1070](https://issues.apache.org/jira/browse/KAFKA-1070). This allows scaling up and down. In this case it is recommended to use the ```--no-recreate``` option of docker-compose to ensure that containers are not re-created and thus keep their names and ids.
6060

@@ -74,7 +74,7 @@ Here is an example snippet from ```docker-compose.yml```:
7474

7575
If you wish to use multi-line YAML or some other delimiter between your topic definitions, override the default `,` separator by specifying the `KAFKA_CREATE_TOPICS_SEPARATOR` environment variable.
7676

77-
For example, `KAFKA_CREATE_TOPICS_SEPARATOR: "$$'\n"'` would use a newline to split the topic definitions. Syntax has to follow docker-compose escaping rules, and [ANSI-C](https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html) quoting.
77+
For example, `KAFKA_CREATE_TOPICS_SEPARATOR: "$$'\n'"` would use a newline to split the topic definitions. Syntax has to follow docker-compose escaping rules, and [ANSI-C](https://www.gnu.org/software/bash/manual/html_node/ANSI_002dC-Quoting.html) quoting.
7878

7979
## Advertised hostname
8080

0 commit comments

Comments
 (0)