Hello world of Apache Druid doesn't work for docker-compose
Hi,
I wanted to launch instance of Apache Druid 0.22.0 on my Big Sur Mac OS with use od Docker Desktop 4.1.0 with Engine 20.10.8
What I've made was:
1. Ensure that all other containers in my Docker (especially these with name postgres) won't colide with desired configuration
a) Create Druid subfolder in my local (being host for Docker) user directory
d) Enter to Druid subfolder in Terminal and run "docker-compose up"
e) Verify results by entering localhost:8888 in your Safari browser
3. What I found was and what I've done:
a) that 3 of 7 services were already down, this was: historical, coordinator and broker
b) so I changed password from FoolishPassword to druid in envirment file what caused that only 2 of 7 services are now down, this are: historical and broker
c) that volumes on host side declared in docker-compose.yml were not created
d) so I have prefixed all the names with ./ what resulted in: ./metadata_data:/var/lib/postgresql/data, ./druid_shared:/opt/shared and same for remaining 5 folders there
e) the folders has been created but still 2 of 7 services are down
f) Entering to localhost:8888 has welcomed me with error that:
"It appears that the service serving this console is not responding. The console will not function at the moment."
and 5 widgets got "Error: Requested failed with status code 500", this was for Datasource, Segments, Supervisors, Tasks, Services
the Status were ok (10 extensions loaded) and Lookups reported that it is uninitilized
g) In the docker logs for coordinator I see spaming message: "Uh... I have no servers. Not assigning anything..."
h) Postgres has reported: " could not open statistics file "pg_stat_tmp/global.stat": Operation not permitted "
i) Router has thrown Java exception starting with message: " org.apache.druid.java.util.common.ISE: No default server found! "
j) middlemanager looks ok
k) broker looks ok
l) Postgres reported ealier something strange, first was " CREATE DATABASE " then " /usr/local/bin/docker-entrypoint.sh: ignoring /docker-entrypoint-initdb.d/* "
then "received fast shutdown request", "database system is shut down", "server stopped", "PostgreSQL init process complete; ready for start up.",
"database system was shut down at 2021-10-20 15:43:37 UTC" and finally " database system is ready to accept connections "
4. I was trying to delete whole druid group in Docker together with created folders on host (in my Druid subfolder which I have created in 2 a) ) and run everything again,
but I still get same results
5. It might be that postgres should be bound to some particular version and some passwords for historical, coodrinator and broker should be set by environment file (see points 3 a) and b) )