We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 3132636 commit 11377ceCopy full SHA for 11377ce
fili-wikipedia-example/entrypoint.sh
@@ -3,9 +3,19 @@
3
export HOSTIP="$(resolveip -s $HOSTNAME)"
4
/usr/bin/supervisord -c /etc/supervisor/conf.d/supervisord.conf &
5
echo "Waiting for Druid to finish setting up"
6
+
7
+time_left=300
8
9
while ! curl http://localhost:8081/druid/coordinator/v1/datasources | grep -q "wikipedia"; do
- sleep 5
10
+ if [ "$time_left" -le 0 ]
11
+ then
12
+ echo "Druid is having trouble setting up"
13
+ exit
14
+ fi
15
+ sleep 5
16
+ time_left=$(( time_left - 5 ))
17
done
18
19
echo "Druid finished setting up. Starting Fili"
20
mvn -pl fili-generic-example exec:java -Dbard__fili_port=9998
21
-Dbard__druid_coord=http://localhost:8081/druid/coordinator/v1
0 commit comments