Skip to content

Commit bf40f69

Browse files
authored
Remove listeners for 0.9.0.1 kafka config, so bootstrap process can be the same (wurstmeister#328)
1 parent ea310f5 commit bf40f69

File tree

2 files changed

+13
-0
lines changed

2 files changed

+13
-0
lines changed

overrides/0.9.0.1.sh

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
#!/bin/bash -e
2+
3+
# Kafka 0.9.x.x has a 'listeners' config by default. We need to remove this
4+
# as the user may be configuring via the host.name / advertised.host.name properties
5+
echo "Removing 'listeners' from server.properties pre-bootstrap"
6+
sed -i -e '/^listeners=/d' "$KAFKA_HOME/config/server.properties"

start-kafka.sh

+7
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
#!/bin/bash -e
22

3+
# Allow specific kafka versions to perform any unique bootstrap operations
4+
OVERRIDE_FILE="/opt/overrides/${KAFKA_VERSION}.sh"
5+
if [[ -x "$OVERRIDE_FILE" ]]; then
6+
echo "Executing override file $OVERRIDE_FILE"
7+
eval "$OVERRIDE_FILE"
8+
fi
9+
310
# Store original IFS config, so we can restore it at various stages
411
ORIG_IFS=$IFS
512

0 commit comments

Comments
 (0)