I’m having trouble using custom schemas within Snowplow Mini. All events that use a custom context end up in the bad pipe, with the following error message:
"error: Could not find schema with key iglu:br.com.getninjas/split_test/jsonschema/1-0-0 in any repository, tried: level: "error" repositories: ["Iglu Central [HTTP]","Iglu Server [HTTP]","Iglu Client Embedded [embedded]"] "
The schemas have been succesfully uploaded with the iglu_server_upload.sh script, and I can see them using the Iglu repository API.
That is very peculiar! Were these events sent through the pipeline prior to the schemas being available in the Iglu Server? The Stream Enrich application uses the Scala Iglu Client that caches bad hits so you might need to restart the Stream Enrich application for it to look for these schemas again. You can also just restart the whole box if easier.
Failing that it might not be a bad idea to SSH onto the box and check the Schema exists inside the Postgres database.
$guest psql --host=localhost --port=5432 --username=snowplow --dbname=iglu
# Password is 'snowplow'
select * from schemas where name like 'split_test';