File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -2,11 +2,11 @@ echo "${_group}Creating additional Kafka topics ..."
2
2
3
3
# NOTE: This step relies on `kafka` being available from the previous `snuba-api bootstrap` step
4
4
# XXX(BYK): We cannot use auto.create.topics as Confluence and Apache hates it now (and makes it very hard to enable)
5
- EXISTING_KAFKA_TOPICS=$( $dcr -T kafka kafka-topics --list --bootstrap-server kafka:9092 2> /dev/null)
5
+ EXISTING_KAFKA_TOPICS=$( $dc exec -T kafka kafka-topics --list --bootstrap-server kafka:9092 2> /dev/null)
6
6
NEEDED_KAFKA_TOPICS=" ingest-attachments ingest-transactions ingest-events ingest-replay-recordings profiles ingest-occurrences ingest-metrics ingest-performance-metrics ingest-monitors"
7
7
for topic in $NEEDED_KAFKA_TOPICS ; do
8
8
if ! echo " $EXISTING_KAFKA_TOPICS " | grep -qE " (^| )$topic ( |$)" ; then
9
- $dcr kafka kafka-topics --create --topic $topic --bootstrap-server kafka:9092
9
+ $dc exec kafka kafka-topics --create --topic $topic --bootstrap-server kafka:9092
10
10
echo " "
11
11
fi
12
12
done
You can’t perform that action at this time.
0 commit comments