I am trying to run the snowflake loader setup, but getting an SSL error at the login step. Has anyone seen this before?
My config:
{
"schema": "iglu:com.snowplowanalytics.snowplow.storage/snowflake_config/jsonschema/1-0-2",
"data": {
"name": "Snowflake ETL config",
"awsRegion": "us-west-1",
"auth": {
"roleArn": "arn:aws:iam::091040842070:role/SnowflakeLoadRole",
"sessionDuration": 900
},
"manifest": "snowplow-snowflake-manifest",
"snowflakeRegion": "us-west-2",
"database": "snowplowdb",
"input": "s3://snowplow-good/",
"stage": "snowplow_stage",
"badOutputUrl": "s3://snowplow-transformed-s3/badrow",
"stageUrl": "s3://snowplow-transformed-s3/stage",
"warehouse": "snowplow_etl_wh",
"schema": "atomic",
"account": "cxa00000",
"username": "snowplow_loader",
"password": {
"ec2ParameterStore": {
"parameterName": "snowplow.snowflake.password"
}
},
"maxError": 1,
"purpose": "ENRICHED_EVENTS"
}
}
And the error I am getting:
java -jar snowplow-snowflake-loader-0.5.0.jar setup --config snowflake_etl.conf --resolver iglu_resolver_swflake.json
Setting up...
Feb 21, 2020 2:09:54 AM shadeaws.profile.path.cred.CredentialsLegacyConfigLocationProvider getLocation
WARNING: Found the legacy config profiles file at [/root/.aws/config]. Please move it to the latest default location [~/.aws/credentials].
Feb 21, 2020 2:09:55 AM net.snowflake.client.jdbc.RestRequest execute
WARNING: Exception encountered for: POST https://cxa00000.us-west-2.snowflakecomputing.com/session/v1/login-request?databaseName=snowplowdb&schemaName=atomic&warehouse=snowplow_etl_wh&requestId=1c22b12f-6038-4cfb-98ce-004ae0c3a0ad HTTP/1.1
javax.net.ssl.SSLPeerUnverifiedException: Certificate for <cxa00000.us-west-2.snowflakecomputing.com> doesn't match any of the subject alternative names: [*.snowflakecomputing.com, *.global.snowflakecomputing.com]
at net.snowflake.client.jdbc.internal.apache.http.conn.ssl.SSLConnectionSocketFactory.verifyHostname(SSLConnectionSocketFactory.java:467)
at net.snowflake.client.jdbc.internal.apache.http.conn.ssl.SSLConnectionSocketFactory.createLayeredSocket(SSLConnectionSocketFactory.java:397)
at net.snowflake.client.jdbc.internal.apache.http.conn.ssl.SSLConnectionSocketFactory.connectSocket(SSLConnectionSocketFactory.java:355)
at net.snowflake.client.jdbc.internal.apache.http.impl.conn.DefaultHttpClientConnectionOperator.connect(DefaultHttpClientConnectionOperator.java:142)
at net.snowflake.client.jdbc.internal.apache.http.impl.conn.PoolingHttpClientConnectionManager.connect(PoolingHttpClientConnectionManager.java:359)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.MainClientExec.establishRoute(MainClientExec.java:381)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.MainClientExec.execute(MainClientExec.java:237)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.ProtocolExec.execute(ProtocolExec.java:185)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.RetryExec.execute(RetryExec.java:89)
at net.snowflake.client.jdbc.internal.apache.http.impl.execchain.RedirectExec.execute(RedirectExec.java:111)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.InternalHttpClient.doExecute(InternalHttpClient.java:185)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:83)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:108)
at net.snowflake.client.jdbc.internal.apache.http.impl.client.CloseableHttpClient.execute(CloseableHttpClient.java:56)
at net.snowflake.client.jdbc.RestRequest.execute(RestRequest.java:141)
at net.snowflake.client.core.HttpUtil.executeRequestInternal(HttpUtil.java:271)
at net.snowflake.client.core.HttpUtil.executeRequest(HttpUtil.java:225)
at net.snowflake.client.core.SessionUtil.openSession(SessionUtil.java:882)
at net.snowflake.client.core.SFSession.open(SFSession.java:328)
at net.snowflake.client.jdbc.SnowflakeConnectionV1.<init>(SnowflakeConnectionV1.java:239)
at net.snowflake.client.jdbc.SnowflakeDriver.connect(SnowflakeDriver.java:344)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:677)
at java.sql/java.sql.DriverManager.getConnection(DriverManager.java:189)
at com.snowplowanalytics.snowflake.loader.connection.Jdbc$.getConnection(Jdbc.scala:64)
at com.snowplowanalytics.snowflake.loader.Initializer$.run(Initializer.scala:25)
at com.snowplowanalytics.snowflake.loader.Main$.main(Main.scala:25)
at com.snowplowanalytics.snowflake.loader.Main.main(Main.scala)
Feb 21, 2020 2:09:55 AM net.snowflake.client.jdbc.RestRequest execute
WARNING: Null response for request=POST https://cxa00000.us-west-2.snowflakecomputing.com/session/v1/login-request?databaseName=snowplowdb&schemaName=atomic&warehouse=snowplow_etl_wh&requestId=1c22b12f-6038-4cfb-98ce-004ae0c3a0ad HTTP/1.1
Did I mis-configure something? Or should I talk to the folks at Snowflake about this?
I’m thankful for any help!