Commit 0149af95 authored by Cameron McFarland's avatar Cameron McFarland

Adding enricher json configs to the enricher nodes.

parent e8c76f63
......@@ -7,6 +7,7 @@ groupadd snowplow
adduser --system --gid snowplow snowplow
mkdir -p /snowplow
mkdir -p /snowplow/config
mkdir -p /snowplow/enrichments
mkdir -p /snowplow/logs
## Install SnowPlow Kinesis Collector
mkdir -p /tmp/build
......@@ -46,6 +47,37 @@ cat > /snowplow/config/iglu_resolver.json <<EOJ
}
}
EOJ
## IP Lookup Encrichment
cat > /snowplow/enrichments/ip_lookups.json <<EOR
{
"schema": "iglu:com.snowplowanalytics.snowplow/ip_lookups/jsonschema/2-0-0",
"data": {
"name": "ip_lookups",
"vendor": "com.snowplowanalytics.snowplow",
"enabled": true,
"parameters": {
"geo": {
"database": "GeoLite2-City.mmdb",
"uri": "http://snowplow-hosted-assets.s3.amazonaws.com/third-party/maxmind"
}
}
}
}
EOR
## user_agent_utils_config Enrichment
cat > /snowplow/enrichments/user_agent_utils_config.json <<EOA
{
"schema": "iglu:com.snowplowanalytics.snowplow/user_agent_utils_config/jsonschema/1-0-0",
"data": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "user_agent_utils_config",
"enabled": true,
"parameters": {}
}
}
EOA
## Need to copy in a config
cat > /snowplow/config/enricher.hocon <<EOF
enrich {
......@@ -91,4 +123,4 @@ enrich {
EOF
chown -R snowplow:snowplow /snowplow
## Star the collector service
su snowplow -g snowplow -c 'nohup /usr/bin/java -jar /snowplow/bin/snowplow-stream-enrich-kinesis-0.21.0.jar --config /snowplow/config/enricher.hocon --resolver file:/snowplow/config/iglu_resolver.json > /snowplow/logs/out.log 2>&1 &'
su snowplow -g snowplow -c 'nohup /usr/bin/java -jar /snowplow/bin/snowplow-stream-enrich-kinesis-0.21.0.jar --config /snowplow/config/enricher.hocon --enrichments file:/snowplow/enrichments --resolver file:/snowplow/config/iglu_resolver.json > /snowplow/logs/out.log 2>&1 &'
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment