We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ea310f5 commit bf40f69Copy full SHA for bf40f69
overrides/0.9.0.1.sh
@@ -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
@@ -1,5 +1,12 @@
#!/bin/bash -e
+# Allow specific kafka versions to perform any unique bootstrap operations
+OVERRIDE_FILE="/opt/overrides/${KAFKA_VERSION}.sh"
+if [[ -x "$OVERRIDE_FILE" ]]; then
+ echo "Executing override file $OVERRIDE_FILE"
7
+ eval "$OVERRIDE_FILE"
8
+fi
9
10
# Store original IFS config, so we can restore it at various stages
11
ORIG_IFS=$IFS
12
0 commit comments