Slackbot
02/06/2023, 9:20 PMSergio Ferragut
02/06/2023, 9:35 PMSergio Ferragut
02/06/2023, 9:36 PMSebastian Cordova
02/06/2023, 10:00 PMenvironment file or anything, but I decided to reset the cluster for testing purposes (pruned the containers), and only today did the issue appear.Sergio Ferragut
02/06/2023, 11:14 PMSergio Ferragut
02/07/2023, 12:00 AM/opt/shared in each container pointing to the same volume. So disregard my comments about Deep Storage. Without changing the environment file, I did:
docker-compose up
I then ingested some data, and all was good, including the datasources and segments views. I tried to create a reindex job from one of the datasource: kttm_simple which I had loaded with (one of the SQL ingestion example):
REPLACE INTO "kttm_simple" OVERWRITE ALL
SELECT *
FROM TABLE(
EXTERN(
'{"type":"http","uris":["<https://static.imply.io/example-data/kttm-v2/kttm-v2-2019-08-25.json.gz>"]}',
'{"type":"json"}',
'[{"name":"timestamp","type":"string"},{"name":"agent_category","type":"string"},{"name":"agent_type","type":"string"},{"name":"browser","type":"string"},{"name":"browser_version","type":"string"},{"name":"city","type":"string"},{"name":"continent","type":"string"},{"name":"country","type":"string"},{"name":"version","type":"string"},{"name":"event_type","type":"string"},{"name":"event_subtype","type":"string"},{"name":"loaded_image","type":"string"},{"name":"adblock_list","type":"string"},{"name":"forwarded_for","type":"string"},{"name":"language","type":"string"},{"name":"number","type":"long"},{"name":"os","type":"string"},{"name":"path","type":"string"},{"name":"platform","type":"string"},{"name":"referrer","type":"string"},{"name":"referrer_host","type":"string"},{"name":"region","type":"string"},{"name":"remote_address","type":"string"},{"name":"screen","type":"string"},{"name":"session","type":"string"},{"name":"session_length","type":"long"},{"name":"timezone","type":"string"},{"name":"timezone_offset","type":"long"},{"name":"window","type":"string"}]'
)
)
PARTITIONED BY ALL TIME
I tried the to use Load Data to create a Reindex from Druid job and selected the source kttm_simple and I got the same result as you: "no data returned from sampler". After investigating it I realized that the SQL ingestion had not specified a "__time" column, so all rows were loaded with __time = 1970-01-01 000000. I adjusted the Interval in the sampler page to start at 1970-01-01 and I got the data back. Not sure if this is what you are seeing. I fixed it by re-running the ingestion with:
REPLACE INTO "kttm_simple" OVERWRITE ALL
SELECT TIME_PARSE("timestamp") as __time, *
FROM TABLE(
EXTERN(
'{"type":"http","uris":["<https://static.imply.io/example-data/kttm-v2/kttm-v2-2019-08-25.json.gz>"]}',
'{"type":"json"}',
'[{"name":"timestamp","type":"string"},{"name":"agent_category","type":"string"},{"name":"agent_type","type":"string"},{"name":"browser","type":"string"},{"name":"browser_version","type":"string"},{"name":"city","type":"string"},{"name":"continent","type":"string"},{"name":"country","type":"string"},{"name":"version","type":"string"},{"name":"event_type","type":"string"},{"name":"event_subtype","type":"string"},{"name":"loaded_image","type":"string"},{"name":"adblock_list","type":"string"},{"name":"forwarded_for","type":"string"},{"name":"language","type":"string"},{"name":"number","type":"long"},{"name":"os","type":"string"},{"name":"path","type":"string"},{"name":"platform","type":"string"},{"name":"referrer","type":"string"},{"name":"referrer_host","type":"string"},{"name":"region","type":"string"},{"name":"remote_address","type":"string"},{"name":"screen","type":"string"},{"name":"session","type":"string"},{"name":"session_length","type":"long"},{"name":"timezone","type":"string"},{"name":"timezone_offset","type":"long"},{"name":"window","type":"string"}]'
)
)
PARTITIONED BY ALL TIMESergio Ferragut
02/07/2023, 12:09 AMSebastian Cordova
02/07/2023, 2:23 PM__time column, that contains correct data. However, when inspecting the spec, I do see __time included in dimensionExclusions under the dimensionsSpec. This appears to be intended behavior, but I'm not sure if this is what is causing the issue.Sergio Ferragut
02/07/2023, 3:47 PMSebastian Cordova
02/07/2023, 4:20 PM__time by selecting some rows, they are correct (not Jan 1 1970). I think the ingestion was running, though I did a hard reset (by prune, I meant running docker volume prune after shutting down the containers, so all metadata and historical data would get wiped).Sebastian Cordova
02/07/2023, 4:24 PMpostgres and the new name, neither of which change anything.Sergio Ferragut
02/07/2023, 4:55 PMSergio Ferragut
02/07/2023, 4:57 PMdocker volume prune
WARNING! This will remove all local volumes not used by at least one container.
Are you sure you want to continue? [y/N] y
Total reclaimed space: 0B
Did you prune while the cluster was shutdown?Sebastian Cordova
02/07/2023, 4:58 PMSergio Ferragut
02/07/2023, 4:59 PMSebastian Cordova
02/07/2023, 4:59 PMSergio Ferragut
02/07/2023, 5:02 PMSergio Ferragut
02/07/2023, 5:04 PMdocker-compose up again?Sebastian Cordova
02/07/2023, 5:04 PMSergio Ferragut
02/07/2023, 5:07 PMSebastian Cordova
02/07/2023, 5:11 PMSebastian Cordova
02/07/2023, 5:11 PMSergio Ferragut
02/07/2023, 5:13 PMSebastian Cordova
02/07/2023, 5:14 PMSergio Ferragut
02/07/2023, 5:16 PMSebastian Cordova
02/07/2023, 5:23 PMSergio Ferragut
02/07/2023, 5:27 PMSebastian Cordova
02/07/2023, 5:30 PMSergio Ferragut
02/07/2023, 8:42 PMioConfig.taskDuration property which defaults to 1H. After 1H I should see segments published and the reindex job should pick them up.
I also see a bunch of segments in the segments view that do not have row counts initially, but if you wait some time, you see the real-time segments start showing num rows values >0.Sergio Ferragut
02/07/2023, 8:48 PMSebastian Cordova
02/07/2023, 9:18 PMtaskDuration, just looked into it and that information is kinda buried in the docs. Thank you so much for all the help! Hopefully I didn't take up too much of your time.Sergio Ferragut
02/07/2023, 9:42 PMSergio Ferragut
02/08/2023, 12:12 AMSebastian Cordova
02/08/2023, 2:01 AMtaskDuration. Thanks again!