Cloud and streaming destinations¶
Snowflake¶
Setting it up: Snowflake.
- Sign-in errors, "No active warehouse selected in the current session", and incremental groups that can't sign in: see Snowflake key-pair and token authentication below.
- Sign-ins blocked by the user's network policy: after a sign-in attempt,
LOGIN_HISTORYshows the address Snowflake saw (CLIENT_IP, for example withLOGIN_HISTORY_BY_USERas in Check the destination). Add that address to the network rule (see Allow the network access). - "Snapshot to a streaming destination requires a source with an incremental (Stelo Capture) capture agent": the source of a snapshot subscription has no Capture Agent (see ODBC and Java connectors).
- See also: Error loading a recently installed ODBC driver, Tools for testing connectivity (ping, Test-NetConnection, odbctest, isql, jping).
Snowflake key-pair and token authentication¶
Setting it up: Snowflake key-pair and token authentication.
| Symptom | Cause | Fix |
|---|---|---|
| 390100 "Incorrect username or password was specified." with a key pair | AUTHENTICATOR=SNOWFLAKE_JWT is missing, so the driver signs in with a password. |
Add AUTHENTICATOR=SNOWFLAKE_JWT to the connection string or DSN. |
| 390100 with a token | The token was sent as a password (in PWD or the Password field), or the Snowflake ODBC driver is older than 3.8.0. |
Use AUTHENTICATOR=PROGRAMMATIC_ACCESS_TOKEN;TOKEN=$$name$$, and upgrade the driver if needed. |
| 394400 "Programmatic access token is invalid" | The token is wrong or expired, or the secret holds an old value or doesn't exist. | Create a new token and change the secret. Check the name in $$name$$. |
| (44) "Error finalize setting: Marshaling private key failed." | The driver can't read the private key: wrong passphrase (check the secret for a trailing space or line break, and that the key wasn't encrypted from a passphrase file ending in a Windows line break; see Generate the key pair), the passphrase passed as PRIV_KEY_PWD or as the Password instead of PRIV_KEY_FILE_PWD, a ; in the passphrase without { } around it, or a file that isn't the PKCS#8 file openssl wrote (re-saved by an editor). |
Fix the keyword or the secret; check the file and passphrase with openssl pkcs8 -in rsa_key.p8 -out NUL (/dev/null on Linux), which asks for the passphrase. |
| The test fails with an error about the private key or JWT | Wrong passphrase in the secret, a key file that isn't PKCS#8 (for example an SSH key), or the public key in Snowflake doesn't match the private key. | Check the secret's value; regenerate the key (see Generate the key pair); compare the fingerprints (see Attach the public key). |
| The SQDR container: the key file is refused | Snowflake ODBC 4.0 and later reject a key file that others can read. | chmod 600 the file, owned by the account the Replicator Service runs as. |
The sign-in works, TRUNCATE works, INSERT fails: "No active warehouse selected in the current session" |
No role set, and the user's default role has no USAGE on the warehouse. |
Set ROLE (and WAREHOUSE) in the connection string and role in the Apply parameters; grant the role (see Role and warehouse). |
| Snapshot replication works, the incremental group fails to sign in | The Apply extension's parameters are separate and still use a password or an expired token. | Set the Apply extension parameters, in the group's copy too. |
| A token is refused although it's valid | The user has no network policy, or the address isn't allowed by it. | Set a network policy on the user that allows the Replicator Service's and Stelo Capture's addresses. |
The sign-in fails or uses another user, with Remote Credentials selected and UID in the connection string |
The Replicator Service adds its own UID (the User ID), so the connection string holds two. |
Choose Connection String (driver-specific). |
| An error saying that multi-factor authentication is required | A password sign-in by a user that needs MFA. | Switch to a key pair or a token. |
To see what the driver does, turn on the Snowflake ODBC driver's log (see Snowflake's ODBC documentation), and check
LOGIN_HISTORY_BY_USER (see Check the destination).
Databricks¶
Setting it up: Databricks.
The wizard warns that the destination table doesn't exist, although it does¶
Cause: Databricks keeps table names in lowercase, and the subscription names the table in another case.
What to do: keep Fold case of identifiers per destination default on in the subscription's Mapping Options, so SQDR uses lowercase names, and check that the destination table name is lowercase. See Group settings for Databricks.
"Error opening socket to server ... ERRORCODE=-4296, SQLSTATE=08001"¶
The notebook fails to connect to the Stelo Capture Db2 with:
Error opening socket to server {1} on port {2} with message: {3}. ERRORCODE=-4296, SQLSTATE=08001
Cause: the connection to the Db2 on the Stelo VM was refused or blocked.
What to do: check that the Stelo Capture Db2 listens on the host and port the notebook uses (jdbcHostname,
jdbcPort), and that no firewall or inactive VPN blocks the Databricks compute (see Firewall rules on the SQDR
server and Open the
network). To test from the compute, run these in a notebook cell, with
your host and Db2 port:
%sh nslookup sqdr-host.example.com
%sh nc -zv sqdr-host.example.com 50000
%sh ping may fail even when the network is fine, because many gateways and servers don't answer pings. To test the
JDBC connection itself, run this Python in a notebook attached to the cluster with the libraries, with your host and
port:
import traceback
jdbc_url = "jdbc:db2://sqdr-host.example.com:50000/SQDRC:sslConnection=false;"
connection_properties = {
"user": "sqdr",
"password": dbutils.secrets.get(scope="sqdr", key="db2-password"),
"driver": "com.ibm.db2.jcc.DB2Driver",
}
try:
df = spark.read.jdbc(url=jdbc_url, table="SYSIBM.SYSDUMMY1", properties=connection_properties)
df.show()
print("JDBC connection successful")
except Exception:
print("JDBC connection failed")
traceback.print_exc()
"Unity Catalog is not available for feature tier STANDARD_TIER"¶
Creating a subscription fails with a message such as:
Service interface SQLQualifiers failed. ODBC message: SQLSTATE HY000, native error 35, [Simba][Hardy] (35) Error
from server: error code: '0' error message: 'Error operating GET_CATALOGS [...] ErrorClass=FEATURE_DISABLED] Unity
Catalog is not available for feature tier STANDARD_TIER.'
Cause: the workspace is on the Standard pricing tier, which has no Unity Catalog.
What to do: move the workspace to the Premium tier, or, for a workspace without Unity Catalog, pass unity = false
to the notebook (see Parameters of ApplyJdbc.apply).
Google BigQuery¶
Setting it up: Google BigQuery.
See also:
- Testing the connection
- Destination data type differs from the source
- Collecting logs and diagnostics for Stelo Support
Amazon Redshift¶
Setting it up: Amazon Redshift.
- See also: Testing the connection, Destination data type differs from the source, Replicated data is truncated in the destination column, Tools for testing connectivity (ping, Test-NetConnection, odbctest, isql, jping).
Microsoft Fabric¶
Setting it up: Microsoft Fabric.
| Message from Verify | What to check |
|---|---|
| Authentication failed for the service principal (check tenantId, clientId and clientSecret) | The App registration's Tenant ID, Client ID and Client secret, and whether the secret has expired. |
| Landing zone not found: URL | The Landing zone URL (copy it again from the mirrored database), and that the Fabric capacity is running: OneLake answers "not found" for a paused capacity too. |
| No landingZone configured. | Enter the Landing zone URL. |
For a problem you can't solve, see Collecting logs and diagnostics for Stelo Support.
Kafka¶
Setting it up: Kafka.
Azure Event Hubs: the producer stops after timeouts¶
Under heavy load, after throttling or request timeouts, replication to Event Hubs stops for a table and doesn't resume until the Apply extension is restarted.
Cause: the Kafka producer is idempotent by default. After a timeout, the Event Hubs Kafka endpoint can reject the producer ID it has just assigned, with an error the Kafka client can't recover from. This is a known issue on the Event Hubs side.
What to do: add these settings under Additional Parameters on the destination's Connector step (or in the group's Parameters):
-
First the timeouts Microsoft recommends for Event Hubs, which avoid the timeouts that cause the problem:
request.timeout.ms=60000 connections.max.idle.ms=180000 metadata.max.age.ms=180000 -
If the producer still stops, also turn off idempotence:
enable.idempotence=falseNo record is lost, but a record whose send timed out is sent again, so consumers can receive it twice. Make sure they tolerate duplicates.
TLS certificate errors¶
If the connection fails with certificate errors, trust the root CA certificate of the service (for Event Hubs,
Azure's root CA), not a server certificate: import it into the truststore the connection uses, the one named by
ssl.truststore.location, or the Java runtime's default cacerts when that isn't set. Write a Windows path with
forward slashes or double backslashes, for example ssl.truststore.location=C:/certs/truststore.jks. See
Network.
"No resolvable bootstrap urls given in bootstrap.servers"¶
Cause: a host name in bootstrap.servers can't be resolved: a typo, or a name the Stelo VM's DNS doesn't know.
What to do: check bootstrap.servers in the destination's parameters and in the group's Parameters (see Group
settings for Kafka). Then test the host and port from the Stelo VM, for
example Test-NetConnection -ComputerName broker1.example.com -Port 9092 in PowerShell (see Tools for testing
connectivity). Kafka's own kafka-console-producer can test the broker without
SQDR.
The statistics count rows sent, but they don't reach the final destination¶
Cause: for a Kafka destination, the statistics count the messages sent to Kafka. What happens after that is up to the consumer that reads the topic, which SQDR doesn't see.
What to do: check that the consumer (or connector) is running and reading the topic named in the group's
parameters. If it isn't, Kafka keeps the messages for the topic's retention time, so a consumer started within that
time still gets them. Read the topic with kafka-console-consumer to see what SQDR sent (see
Check the destination).
An unexpected topic or event hub appears¶
Cause: a misspelt topic, or a group whose name differs from the topic you created, with a broker (or an Event Hubs namespace or OCI stream pool) that creates missing topics automatically: the messages go to a new topic with the wrong name.
What to do: set topic in the group's Parameters to the topic's exact name (topic names are case-sensitive),
and delete the unwanted topic. See Topics.
A Kafka broker on Windows: "The requested operation cannot be performed on a file with a user-mapped section open"¶
The broker fails with this java.io.IOException when a topic is added.
Cause: topic names are case-sensitive, but Windows file names aren't. A topic whose name differs from an existing
one only in case (for example TEST and test) maps to the same folder on the broker.
What to do: use one spelling for each topic, in every group's topic parameter and in the consumers.
Confluent: "Missed required property: ..." or "Get cluster settings failed"¶
The Confluent Avro extension stops with "Missed required property:" (or "properties:") followed by a parameter name, or with "Get cluster settings failed" or "Get Schema Registry failed" followed by the parameters to check.
Cause: a parameter the extension needs is missing, or the Cloud API key, environment, cluster or Schema Registry ID it uses to look up the endpoints is wrong.
What to do: add or correct the named parameters (see Confluent with Schema
Registry): the IDs from Confluent Cloud, and a Cloud API
key that can read them. For Confluent Platform, set confluent.platform.enable=true and give bootstrap.servers,
confluent.kafka.cluster.rest.endpoint and schema.registry.url.
AWS Glue: "At least one security group must open all ingress ports"¶
A Glue streaming job that reads from Amazon MSK fails to start with this message.
Cause: the security group of the Glue connection doesn't allow traffic from itself.
What to do: add an inbound rule to the security group for all TCP ports with the security group itself as source. See Stream from MSK to Amazon S3 with AWS Glue.
AWS Glue: "VPC S3 endpoint validation failed ... Could not find S3 endpoint or NAT gateway"¶
Cause: the VPC of the Glue connection has no route to Amazon S3.
What to do: create an Amazon S3 gateway endpoint in the VPC and add the subnet's route table to it.
Text files uploaded to Azure Data Lake Storage¶
Setting it up: Upload the files to Azure Data Lake Storage Gen2.
| Symptom | Cause | What to do |
|---|---|---|
| "... is not digitally signed" when the script starts | Windows blocks scripts downloaded from the internet. | Unblock the .ps1 files: Unblock-File C:\Scripts\*.ps1 in PowerShell, or Unblock in each file's Properties. |
| An access error when the script pauses or resumes the group | The script doesn't run with administrator rights. | Run it from an elevated PowerShell window, and run the scheduled task as SYSTEM (or an administrator). |
| "Server failed to authenticate the request ... ErrorCode: AuthenticationFailed" (HTTP 403) | Wrong storage account key. | Correct the key in parms.ps1. |
| "The specified container does not exist ... ErrorCode: ContainerNotFound" (HTTP 404) | The container hasn't been created. | Create it, or run setup_azure.ps1. |
| The script never ends | A wrong storage account name: the upload waits without a time limit. Or, as a scheduled task, a confirmation prompt (the script's -Force was removed). |
Correct the account name; keep -Force on the upload. |
Amazon S3 Tables¶
Setting it up: Amazon S3 Tables.
Check the Firehose stream's error bucket and CloudWatch metrics, and contact Stelo Support.
Salesforce¶
Setting it up: Salesforce.
"UNKNOWN_EXCEPTION: Destination URL not reset. The URL returned from login must be set in the SforceService"¶
Applying changes to a Salesforce destination fails now and then with this message (native error 10014), more often
on a quiet system than on a busy one, because the idle connection to Salesforce was dropped. Replication resumes if
the Replicator Service is stopped for several minutes and restarted. To keep the connection alive, add KA=1
(KeepAlive) to the connection string, and lower Windows' TCP KeepAliveTime on the Stelo VM (for example to
300000 ms; the default is 2 hours), then restart the server. See
Detect lost connections quickly with TCP keepalive.
"Java VM options do not match previous options"¶
Adding or changing a Salesforce connection fails with this message (followed by the Java options). The driver's Java runtime is already loaded in the Replicator Service with other options: restart the Replicator Service.