You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
17 lines
490 B
17 lines
490 B
#!/bin/bash
|
|
echo "Launching Kafka Connect worker"
|
|
/etc/confluent/docker/run &
|
|
#
|
|
echo "Waiting for Kafka Connect to start listening on localhost:8083 ⏳"
|
|
while :; do
|
|
curl_status=$(curl -s -o /dev/null -w %{http_code} http://localhost:8083/connectors)
|
|
echo -e $(date) " Kafka Connect listener HTTP state: " $curl_status " (waiting for 200)"
|
|
if [ $curl_status -eq 200 ]; then
|
|
break
|
|
fi
|
|
sleep 5
|
|
done
|
|
cd /usr/share/confluent-hub-components/
|
|
./start.sh
|
|
sleep infinity
|