Slackbot
01/26/2023, 2:32 PMSergio Ferragut
01/26/2023, 5:29 PMSergio Ferragut
01/26/2023, 6:25 PMjava -classpath "lib/*" -Dlog4j.configurationFile=conf/druid/cluster/_common/log4j2.xml -Ddruid.extensions.directory="extensions" -Ddruid.extensions.loadList="[\"postgresql-metadata-storage\"]" -Ddruid.metadata.storage.type=postgresql -Ddruid.node.type=metadata-init org.apache.druid.cli.Main tools metadata-init --connectURI="jdbc:<postgresql://localhost:5432/druid>" --user druid --password diurd --base druid
I had to:
⢠change the quotes around the loadList value
⢠add the -Ddruid.node.type=metadata-init. (this is so that the log file is created with the name "metadata-init.log" instead of the "${druid.node.type}.log" š, this helped me troubleshoot by looking at the log once I found it
⢠My connectURI parameter was also wrong initially, and I think you may also have the wrong formatSergio Ferragut
01/26/2023, 6:25 PMSourav Saraf
01/30/2023, 8:32 AMSergio Ferragut
01/30/2023, 5:14 PMSergio Ferragut
01/30/2023, 5:18 PMSourav Saraf
01/30/2023, 5:54 PMSergio Ferragut
01/30/2023, 5:59 PMSELECT count(*) FROM druid.druid_segmentsSourav Saraf
01/30/2023, 6:01 PMSergio Ferragut
01/30/2023, 6:01 PMSourav Saraf
01/30/2023, 6:01 PMSergio Ferragut
01/30/2023, 6:02 PMSELECT used, count(*) FROM druid.druid_segments GROUP BY 1Sourav Saraf
01/30/2023, 6:04 PMSourav Saraf
01/30/2023, 6:04 PMSergio Ferragut
01/30/2023, 6:05 PMSourav Saraf
01/30/2023, 6:08 PMpublic schema, instead of creating a druid schema automatically or failing the script in case there is no druid schema.Sourav Saraf
01/30/2023, 6:09 PMdruid schema and refresh my UI to see if it has any effectsSergio Ferragut
01/30/2023, 6:10 PMdruid.metadata.storage.tables.base it isn't clear to me but perhaps this is the "schema" name. https://druid.apache.org/docs/latest/configuration/index.html#metadata-storageSourav Saraf
01/30/2023, 6:12 PMSergio Ferragut
01/30/2023, 6:15 PMdruid_rules table as well? What are the current retention rules?Sourav Saraf
01/30/2023, 6:21 PMSourav Saraf
01/30/2023, 6:23 PMSergio Ferragut
01/30/2023, 6:24 PMSergio Ferragut
01/30/2023, 6:26 PMRules was set to dropNever. However I can check the old valuesI don't recognize "dropNever", did you mean "loadForever" ?
Sourav Saraf
01/30/2023, 6:33 PMSergio Ferragut
01/30/2023, 6:40 PMPolled and found 573 segments in the database
Do you see that?Sourav Saraf
01/30/2023, 8:02 PMSergio Ferragut
01/30/2023, 8:11 PMcreatedb --encoding=UTF8 ....
BTW. I found where the schema is configured. it is druid.metadata.postgres.dbTableSchema and defaults to public.Sourav Saraf
01/30/2023, 8:48 PMSourav Saraf
01/30/2023, 8:56 PMSergio Ferragut
01/30/2023, 9:33 PM