Skip to content

Commit 32204cf

Browse files
authored
zookeeper 3.4.14 and cp kafka 6.2.1 (#93)
* zookeeper 3.4.14 and cp kafka 6.2.1 * test by adding ensure * attempt at fixing dub * added user to volume * applied fixes to volumes * final updates * test user * test new ZK image * added container_name * removed volumes * migrate to confluent inc * fixed fullstack
1 parent b2911e3 commit 32204cf

9 files changed

+98
-327
lines changed

.github/workflows/main.yml

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,6 @@ jobs:
5050

5151
- name: run test multiple-schema-registry 7
5252
run: ./test.sh zk-multiple-kafka-multiple-schema-registry.yml 7
53-
54-
- name: run test full-stack-no-ui 6
55-
run: ./test.sh full-stack-no-ui.yml 6
5653

57-
- name: run test full-stack 10
58-
run: ./test.sh full-stack.yml 10
54+
- name: run test full-stack 7
55+
run: ./test.sh full-stack.yml 7

README.md

Lines changed: 12 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -15,17 +15,15 @@ This replicates as well as possible real deployment configurations, where you ha
1515

1616
## Stack version
1717

18-
- Zookeeper version: 3.4.9
19-
- Kafka version: 2.5.0 (Confluent 5.5.1)
20-
- Kafka Schema Registry: Confluent 5.5.1
21-
- Kafka Schema Registry UI: 0.9.5
22-
- Kafka Rest Proxy: Confluent 5.5.1
23-
- Kafka Topics UI: 0.9.4
24-
- Kafka Connect: Confluent 5.5.1
25-
- Kafka Connect UI: 0.9.7
26-
- ksqlDB Server: Confluent 6.1.1
18+
- Zookeeper version: 3.5.9
19+
- Kafka version: 2.8.0 (Confluent 6.2.1)
20+
- Kafka Schema Registry: Confluent 6.2.1
21+
- Kafka Rest Proxy: Confluent 6.2.1
22+
- Kafka Connect: Confluent 6.2.1
23+
- ksqlDB Server: Confluent 6.2.1
2724
- Zoonavigator: 0.8.0
2825

26+
For a UI tool to access your local Kafka cluster, use the free version of (Conduktor)[https://www.conduktor.io/download]
2927

3028
# Requirements
3129

@@ -102,37 +100,15 @@ docker-compose -f zk-multiple-kafka-multiple.yml up
102100
docker-compose -f zk-multiple-kafka-multiple.yml down
103101
```
104102

105-
## Full stack (no UI)
106-
107-
For this, we recommend using [Conduktor](https://conduktor.io) as your tool to bring a unified UI to all these components
108-
109-
- Single Zookeeper: `$DOCKER_HOST_IP:2181`
110-
- Single Kafka: `$DOCKER_HOST_IP:9092`
111-
- Kafka Schema Registry: `$DOCKER_HOST_IP:8081`
112-
- Kafka Rest Proxy: `$DOCKER_HOST_IP:8082`
113-
- Kafka Connect: `$DOCKER_HOST_IP:8083`
114-
- KSQL Server: `$DOCKER_HOST_IP:8088`
115-
- Zoonavigator Web: `$DOCKER_HOST_IP:8004`
116-
- (experimental) JMX port at `$DOCKER_HOST_IP:9999`
117-
118-
Run with:
119-
```
120-
docker-compose -f full-stack-no-ui.yml up
121-
docker-compose -f full-stack-no-ui.yml down
122-
```
123-
124103
## Full stack
125104

126-
Note: the UI may be outdated or not maintained. See above for Full Stack No UI in combination with [Conduktor](https://conduktor.io)
105+
For this, we recommend using [Conduktor](https://conduktor.io) as your tool to bring a unified UI to all these components
127106

128107
- Single Zookeeper: `$DOCKER_HOST_IP:2181`
129108
- Single Kafka: `$DOCKER_HOST_IP:9092`
130109
- Kafka Schema Registry: `$DOCKER_HOST_IP:8081`
131-
- Kafka Schema Registry UI: `$DOCKER_HOST_IP:8001`
132110
- Kafka Rest Proxy: `$DOCKER_HOST_IP:8082`
133-
- Kafka Topics UI: `$DOCKER_HOST_IP:8000`
134111
- Kafka Connect: `$DOCKER_HOST_IP:8083`
135-
- Kafka Connect UI: `$DOCKER_HOST_IP:8003`
136112
- KSQL Server: `$DOCKER_HOST_IP:8088`
137113
- Zoonavigator Web: `$DOCKER_HOST_IP:8004`
138114
- (experimental) JMX port at `$DOCKER_HOST_IP:9999`
@@ -153,7 +129,7 @@ A: Add the following line to your docker-compose environment variables: `KAFKA_L
153129

154130
**Q: How do I delete data to start fresh?**
155131

156-
A: Your data is persisted from within the docker compose folder, so if you want for example to reset the data in the full-stack docker compose, first do a `docker-compose -f full-stack.yml down`, then remove the directory `full-stack`, for example by doing `rm -r -f full-stack`.
132+
A: Your data is persisted from within the docker compose folder, so if you want for example to reset the data in the full-stack docker compose, do a `docker-compose -f full-stack.yml down`.
157133

158134
**Q: Can I change the zookeeper ports?**
159135

@@ -175,7 +151,7 @@ A: yes. Say you want to change `zoo1` port to `12181` (only relevant lines are s
175151
A: yes. Say you want to change `kafka1` port to `12345` (only relevant lines are shown). Note only `LISTENER_DOCKER_EXTERNAL` changes:
176152
```
177153
kafka1:
178-
image: confluentinc/cp-kafka:5.5.1
154+
image: confluentinc/cp-kafka:6.2.1
179155
hostname: kafka1
180156
ports:
181157
- "12345:12345"
@@ -189,7 +165,7 @@ A: yes. This is for testing only!!! Reduce the KAFKA_LOG_SEGMENT_BYTES to 16MB a
189165

190166
```
191167
kafka1:
192-
image: confluentinc/cp-kafka:5.5.1
168+
image: confluentinc/cp-kafka:6.2.1
193169
...
194170
environment:
195171
...
@@ -205,7 +181,7 @@ For example, if the IP of your machine is `50.10.2.3`, follow the sample mapping
205181

206182
```
207183
kafka1:
208-
image: confluentinc/cp-kafka:5.5.1
184+
image: confluentinc/cp-kafka:6.2.1
209185
...
210186
environment:
211187
...

full-stack-no-ui.yml

Lines changed: 0 additions & 122 deletions
This file was deleted.

full-stack.yml

Lines changed: 13 additions & 52 deletions
Original file line numberDiff line numberDiff line change
@@ -2,22 +2,18 @@ version: '2.1'
22

33
services:
44
zoo1:
5-
image: zookeeper:3.4.9
6-
restart: unless-stopped
5+
image: confluentinc/cp-zookeeper:6.2.1
76
hostname: zoo1
7+
container_name: zoo1
88
ports:
99
- "2181:2181"
1010
environment:
11-
ZOO_MY_ID: 1
12-
ZOO_PORT: 2181
13-
ZOO_SERVERS: server.1=zoo1:2888:3888
14-
volumes:
15-
- ./full-stack/zoo1/data:/data
16-
- ./full-stack/zoo1/datalog:/datalog
17-
11+
ZOOKEEPER_CLIENT_PORT: 2181
12+
ZOOKEEPER_SERVER_ID: 1
13+
ZOOKEEPER_SERVERS: zoo1:2888:3888
1814

1915
kafka1:
20-
image: confluentinc/cp-kafka:5.5.1
16+
image: confluentinc/cp-kafka:6.2.1
2117
hostname: kafka1
2218
ports:
2319
- "9092:9092"
@@ -34,13 +30,11 @@ services:
3430
KAFKA_TRANSACTION_STATE_LOG_MIN_ISR: 1
3531
KAFKA_JMX_PORT: 9999
3632
KAFKA_JMX_HOSTNAME: ${DOCKER_HOST_IP:-127.0.0.1}
37-
volumes:
38-
- ./full-stack/kafka1/data:/var/lib/kafka/data
3933
depends_on:
4034
- zoo1
4135

4236
kafka-schema-registry:
43-
image: confluentinc/cp-schema-registry:5.5.1
37+
image: confluentinc/cp-schema-registry:6.2.1
4438
hostname: kafka-schema-registry
4539
ports:
4640
- "8081:8081"
@@ -52,19 +46,9 @@ services:
5246
- zoo1
5347
- kafka1
5448

55-
schema-registry-ui:
56-
image: landoop/schema-registry-ui:0.9.5
57-
hostname: kafka-schema-registry-ui
58-
ports:
59-
- "8001:8000"
60-
environment:
61-
SCHEMAREGISTRY_URL: http://kafka-schema-registry:8081/
62-
PROXY: "true"
63-
depends_on:
64-
- kafka-schema-registry
65-
49+
6650
kafka-rest-proxy:
67-
image: confluentinc/cp-kafka-rest:5.5.1
51+
image: confluentinc/cp-kafka-rest:6.2.1
6852
hostname: kafka-rest-proxy
6953
ports:
7054
- "8082:8082"
@@ -79,22 +63,9 @@ services:
7963
- kafka1
8064
- kafka-schema-registry
8165

82-
kafka-topics-ui:
83-
image: landoop/kafka-topics-ui:0.9.4
84-
hostname: kafka-topics-ui
85-
ports:
86-
- "8000:8000"
87-
environment:
88-
KAFKA_REST_PROXY_URL: "http://kafka-rest-proxy:8082/"
89-
PROXY: "true"
90-
depends_on:
91-
- zoo1
92-
- kafka1
93-
- kafka-schema-registry
94-
- kafka-rest-proxy
95-
66+
9667
kafka-connect:
97-
image: confluentinc/cp-kafka-connect:5.5.1
68+
image: confluentinc/cp-kafka-connect:6.2.1
9869
hostname: kafka-connect
9970
ports:
10071
- "8083:8083"
@@ -133,19 +104,9 @@ services:
133104
confluent-hub install --no-prompt confluentinc/kafka-connect-datagen:0.4.0
134105
/etc/confluent/docker/run
135106
136-
kafka-connect-ui:
137-
image: landoop/kafka-connect-ui:0.9.7
138-
hostname: kafka-connect-ui
139-
ports:
140-
- "8003:8000"
141-
environment:
142-
CONNECT_URL: "http://kafka-connect:8083/"
143-
PROXY: "true"
144-
depends_on:
145-
- kafka-connect
146-
107+
147108
ksqldb-server:
148-
image: confluentinc/cp-ksqldb-server:6.1.1
109+
image: confluentinc/cp-ksqldb-server:6.2.1
149110
hostname: ksqldb-server
150111
ports:
151112
- "8088:8088"

0 commit comments

Comments
 (0)