Skip to content

Commit 80ce936

Browse files
author
Alfredo Funicello
committed
removed zookeper fixed grafana, fixed kafka_schema
1 parent b19ad47 commit 80ce936

File tree

2 files changed

+4
-12
lines changed

2 files changed

+4
-12
lines changed

compose/clickhouse/create.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ clickhouse client -n <<-EOSQL
3131
kafka_topic_list = 'flows',
3232
kafka_group_name = 'clickhouse',
3333
kafka_format = 'Protobuf',
34-
kafka_schema = './flow.proto:FlowMessage';
34+
kafka_schema = 'flow.proto:FlowMessage';
3535
3636
CREATE TABLE IF NOT EXISTS flows_raw
3737
(

compose/docker-compose-clickhouse-mock.yml

+3-11
Original file line numberDiff line numberDiff line change
@@ -1,33 +1,25 @@
11
version: "3"
22
services:
3-
zookeeper:
4-
image: 'bitnami/zookeeper:latest'
5-
ports:
6-
- '2181:2181'
7-
environment:
8-
- ALLOW_ANONYMOUS_LOGIN=yes
9-
restart: always
103
kafka:
114
image: 'bitnami/kafka:latest'
125
ports:
136
- '9092:9092'
147
environment:
15-
- KAFKA_ZOOKEEPER_CONNECT=zookeeper:2181
168
- ALLOW_PLAINTEXT_LISTENER=yes
179
- KAFKA_DELETE_TOPIC_ENABLE=true
1810
restart: always
19-
depends_on:
20-
- 'zookeeper'
2111
initializer:
2212
image: 'bitnami/kafka:latest'
2313
depends_on:
2414
- 'kafka'
2515
entrypoint: '/bin/bash'
2616
command: >
2717
-c "sleep 15 ;
28-
kafka-topics.sh --create --zookeeper zookeeper:2181 --replication-factor 1 --partitions 2 --topic flows ;"
18+
kafka-topics.sh --create --bootstrap-server kafka:9092 --replication-factor 1 --partitions 2 --topic flows ;"
2919
grafana:
3020
build: ../grafana
21+
environment:
22+
- GF_PLUGINS_ALLOW_LOADING_UNSIGNED_PLUGINS=vertamedia-clickhouse-datasource
3123
ports:
3224
- '3000:3000'
3325
restart: always

0 commit comments

Comments
 (0)