Skip to main content

Snowflake Streaming Loader configuration reference

The configuration reference in this page is written for Snowflake Streaming Loader 0.2.2

Snowflake configurationโ€‹

ParameterDescription
output.good.urlRequired, e.g. https://orgname.accountname.snowflakecomputing.com. URI of the Snowflake account.
output.good.userRequired. Snowflake user who has necessary privileges
output.good.privateKeyRequired. Snowflake private key, used to connect to the account
output.good.privateKeyPassphraseOptional. Passphrase for the private key
output.good.roleOptional. Snowflake role which the Snowflake user should assume
output.good.databaseRequired. Name of the Snowflake database containing the events table
output.good.schemaRequired. Name of the Snowflake schema containing the events table
output.good.schemaOptional. Default value `events`. Name to use for the events table
output.good.channelOptional. Default value `snowplow`. Name to use for the Snowflake channel. If you run multiple loaders in parallel, then each channel must be given a unique name.

Streams configurationโ€‹

ParameterDescription
input.streamNameRequired. Name of the Kinesis stream with the enriched events
input.appNameOptional, default snowplow-snowflake-loader. Name to use for the dynamodb table, used by the underlying Kinesis Consumer Library for managing leases.
input.initialPositionOptional, default LATEST. Allowed values are LATEST, TRIM_HORIZON, AT_TIMESTAMP. When the loader is deployed for the first time, this controls from where in the kinesis stream it should start consuming events. On all subsequent deployments of the loader, the loader will resume from the offsets stored in the DynamoDB table.
input.initialPosition.timestampRequired if input.initialPosition is AT_TIMESTAMP. A timestamp in ISO8601 format from where the loader should start consuming events.
input.retrievalModeOptional, default Polling. Change to FanOut to enable the enhance fan-out feature of Kinesis.
input.retrievalMode.maxRecordsOptional. Default value 1000. How many events the Kinesis client may fetch in a single poll. Only used when `input.retrievalMode` is Polling.
input.bufferSizeOptional. Default value 1. The number of batches of events which are pre-fetched from kinesis. The default value is known to work well.
output.bad.streamNameRequired. Name of the Kinesis stream that will receive failed events.
output.bad.throttledBackoffPolicy.minBackoffOptional. Default value 100 milliseconds. Initial backoff used to retry sending failed events if we exceed the Kinesis write throughput limits.
output.bad.throttledBackoffPolicy.maxBackoffOptional. Default value 1 second. Maximum backoff used to retry sending failed events if we exceed the Kinesis write throughput limits.
output.bad.recordLimitOptional. Default value 500. The maximum number of records we are allowed to send to Kinesis in 1 PutRecords request.
output.bad.byteLimitOptional. Default value 5242880. The maximum number of bytes we are allowed to send to Kinesis in 1 PutRecords request.
output.bad.maxRecordSize.*Optional. Default value 1000000. Any single event failed event sent to Kinesis should not exceed this size in bytes

Other configuration optionsโ€‹

ParameterDescription
batching.maxBytesOptional. Default value 16000000. Events are emitted to Snowflake when the batch reaches this size in bytes
batching.maxDelayOptional. Default value 1 second. Events are emitted to Snowflake after a maximum of this duration, even if the maxBytes size has not been reached
batching.uploadConcurrencyOptional. Default value 3. How many batches can we send simultaneously over the network to Snowflake
retries.setupErrors.delayOptional. Default value 30 seconds. Configures exponential backoff on errors related to how Snowflake is set up for this loader. Examples include authentication errors and permissions errors. This class of errors are reported periodically to the monitoring webhook.
retries.transientErrors.delayOptional. Default value 1 second. Configures exponential backoff on errors that are likely to be transient. Examples include server errors and network errors.
retries.transientErrors.attemptsOptional. Default value 5. Maximum number of attempts to make before giving up on a transient error.
skipSchemasOptional, e.g. ["iglu:com.example/skipped1/jsonschema/1-0-0"] or with wildcards ["iglu:com.example/skipped2/jsonschema/1-*-*"]. A list of schemas that won't be loaded to Snowflake. This feature could be helpful when recovering from edge-case schemas which for some reason cannot be loaded to the table.
monitoring.metrics.statsd.hostnameOptional. If set, the loader sends statsd metrics over UDP to a server on this host name.
monitoring.metrics.statsd.portOptional. Default value 8125. If the statsd server is configured, this UDP port is used for sending metrics.
monitoring.metrics.statsd.tags.*Optional. A map of key/value pairs to be sent along with the statsd metric.
monitoring.metrics.statsd.periodOptional. Default 1 minute. How often to report metrics to statsd.
monitoring.metrics.statsd.prefixOptional. Default snowplow.snowflake-loader. Prefix used for the metric name when sending to statsd.
monitoring.webhook.endpointOptional, e.g. https://webhook.example.com. The loader will send to the webhook a payload containing details of any error related to how Snowflake is set up for this loader.
monitoring.webhook.tags.*Optional. A map of key/value strings to be included in the payload content sent to the webhook.
sentry.dsnOptional. Set to a Sentry URI to report unexpected runtime exceptions.
sentry.tags.*Optional. A map of key/value strings which are passed as tags when reporting exceptions to Sentry.
telemetry.disableOptional. Set to true to disable telemetry.
telemetry.userProvidedIdOptional. See here for more information.
output.good.jdbcLoginTimeoutOptional. Sets the login timeout on the JDBC driver which connects to Snowflake
output.good.jdbcNetworkTimeoutOptional. Sets the network timeout on the JDBC driver which connects to Snowflake
output.good.jdbcQueryTimeoutOptional. Sets the query timeout on the JDBC driver which connects to Snowflake
Was this page helpful?