Hi everyone! I’m having a little trouble updating my iglu_resolver.json file after deploying my own iglu server.
For background I use Redshift in my pipeline, so I moved away from Iglu Central in favor of my own Iglu Server to enable the RDB Shredder to function properly. Previously, the RDB Shredder would complete its run, but all events would be placed in a folder called “output=bad”, and in a subfolder called “name=loader_iglu_error.” I researched this and came to understand (per this documentation) that the RDB Shredder has required an Iglu Server since R32.
I set up a database for this purpose via RDS and successfully deployed iglu-server-0.6.0.jar on its own EC2 instance. I then used the following snippet (pulled from same documentation linked above) to mirror Iglu Central to my server:
$ git clone https://github.com/snowplow/iglu-central.git
$ igluctl static push iglu-central/schemas $YOUR_SERVER_URL $YOU_API_KEY
$ igluctl static push com.acme-iglu-registry/schemas $YOUR_SERVER_URL $YOU_API_KEY
This appears to have worked successfully. Next, I updated the standard iglu_resolver.json template file to now point to my server:
{
"schema": "iglu:com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-1",
"data": {
"cacheSize": 500,
"repositories": [
{
"name": "Iglu Central",
"priority": 0,
"vendorPrefixes": [ "com.snowplowanalytics" ],
"connection": {
"http": {
"uri": "{{my ec2 public DNS}}:8080",
"apikey": "{{my super API key}}"
}
}
}
]
}
}
But when I re-run the RDB shredder using the new resolver file, I’m met with this error:
21/05/20 18:26:16 ERROR Client: Application diagnostics message: User class threw exception: java.lang.RuntimeException: RDB Shredder could not fetch iglu:com.snowplowanalytics.snowplow/atomic/jsonschema/1-0-0 schema at initialization. Schema cannot be resolved in following repositories:
* Iglu Central due [NotFound] after 1 attempt
* Iglu Client Embedded due [NotFound] after 1 attempt
It seems there’s either something wrong with my resolver file, my Iglu server implementation, or both. Any thoughts would be a huge help! Thanks in advance.