File tree Expand file tree Collapse file tree 2 files changed +11
-5
lines changed
standalone-apis/node-kafka-producer-consumer Expand file tree Collapse file tree 2 files changed +11
-5
lines changed Original file line number Diff line number Diff line change @@ -77,3 +77,9 @@ sudo lsof -nP -iTCP:2181 | grep LISTEN
77
77
ps aux | grep kafka
78
78
ps aux | grep zookeeper
79
79
```
80
+
81
+ ### Check background services
82
+
83
+ ``` bash
84
+ brew services list
85
+ ```
Original file line number Diff line number Diff line change @@ -3,19 +3,19 @@ services:
3
3
zookeeper :
4
4
image : ' bitnami/zookeeper:latest'
5
5
ports :
6
- - ' 2182:2182 '
6
+ - ' 2181:2181 '
7
7
environment :
8
8
- ALLOW_ANONYMOUS_LOGIN=yes
9
9
kafka :
10
10
image : ' bitnami/kafka:latest'
11
11
container_name : ' kafka'
12
12
ports :
13
- - ' 9093:9093 '
13
+ - ' 9092:9092 '
14
14
environment :
15
15
- KAFKA_BROKER_ID=1
16
- - KAFKA_LISTENERS=PLAINTEXT://:9093
17
- - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9093
18
- - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2182
16
+ - KAFKA_LISTENERS=PLAINTEXT://:9092
17
+ - KAFKA_ADVERTISED_LISTENERS=PLAINTEXT://127.0.0.1:9092
18
+ - KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
19
19
- ALLOW_PLAINTEXT_LISTENER=yes
20
20
depends_on :
21
21
- zookeeper
You can’t perform that action at this time.
0 commit comments