I am setting an enrichment via stream enrichment by downloading the jar file as instructed on below link
Now , to configure it we need it’s configuration file along with another configuration file which is JSON configuration for the Iglu resolver used to look up JSON schemas.(see below link)
Those configuration files serve different purposes; they are not alternatives.
config.hocon: configures Stream Enrich itself. It’s specific to your pipeline implementation; make changes to reflect your architecture.
Iglu resolver provides the reference to Iglu server - repository of various JSON schemas used to validate various events you track. If you do not use a custom event no need to make any amendments to it.
Both configuration files need to be passed over as parameters as described in Run Stream Enrich.
Yes…i know these 2 configuration files serve different purposes and they are not alternatives, though i am using both the files and passing over as parameters as well.
My only question is how should we configure iglu resolver configuration , i mean what values should we set inside it.
Since, i am not able to relate the parameters inside iglu resolver config file with their exact purpose and because of that don’t know what values should i use for those parameters.
Do you have any sample iglu resolver config file , so that i can see the configuration inside that…?
@miteshu, as I said If you do not use a custom event there is no need to make any amendments to the resolver configuration file. In other words, the content remains the same
Just would like to update you that i also have done the same. As you mentioned i kept the file as it is without any changes and executing below comnand
@miteshu, the error states “invalid JSON”. You might have had a hidden (invisible) character(s) introduced by your editor. Could you try linting the content of the configuration file? There are a few online linting tools out there. One of them: http://zaa.ch/jsonlint/.
The JSON schema would have to be uploaded into the dedicated location (paths) to be recognized/found. If, say, your JSON schema has self section as below
Once your own Iglu server is up and running, you need to add it to the resolver configuration in the same fashion as the default Iglu server (Iglu Central):