Hi All,
i have configured javascript tracker–> scala stream collector → Stream enrich → PostgreSQL
But while running storage loader with below command
./snowplow-storage-loader --config config/config.yml --resolver config/resolver.json --targets config/targets/ --skip analyze
i am getting below error.
> Unexpected error: undefined method `[]=' for nil:NilClass
> /home/hadoop/snowplow/4-storage/storage-loader/lib/snowplow-storage-loader/config.rb:56:in `get_config'
> storage-loader/bin/snowplow-storage-loader:31:in `<main>'
> org/jruby/RubyKernel.java:977:in `load'
> uri:classloader:/META-INF/main.rb:1:in `<main>'
> org/jruby/RubyKernel.java:959:in `require'
> uri:classloader:/META-INF/main.rb:1:in `(root)'
> uri:classloader:/META-INF/jruby.home/lib/ruby/stdlib/rubygems/core_ext/kernel_require.rb:1:in `<main>'
Below is my configuration file(config.yml) for the storage loader(postgreSQL)
s3:
region: eu-west-1 # S3 bucket region
buckets:
in: ADD HERE
archive: ADD HERE
download:
folder: /home/hadoop/snowplow/4-storage/ # Postgres-only config option. Where to store the downloaded files
targets:
- :name: "PostgreSQL enriched events storage"
:type: postgres
:host: localhost # Hostname of database server
:database: snowplow # Name of database
:port: 5432 # Default Postgres port
:table: atomic.events
:username: power_user
:password: hadoop
:maxerror: # Not required for Postgres
Below is the my resolver.json file
{ "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": "http://iglucentral.com" } } } ] } }
Please help me to get config.yml file to run storage loader.
if anyone has already done please share me. I am struggling from past 3 days.
Thanks and Regards
Sandesh P