Hey KNIME world,
I am new to KNIME and having trouble connecting to my redshift database using my credentials. I am connected via DBeaver so I know it is not a permisions issue. Currently we are using iam to authenticate through JDBC to the data base. I have created a new database driver in preferences (redshift connector has not worked so i am using DB Connector).
Here is what my connection string looks like for DBeaver
jdbc:redshift:iam://{host}:{port}/{database}?plugin_name=com.amazon.redshift.plugin.AdfsCredentialsProvider&idp_host=*************
Here is my current URL template in my new database driver.
jdbc:redshift:iam://://[plugin_name=com.amazon.redshift.plugin.AdfsCredentialsProvider&idp_host=*********]
Here is the current error I am getting in my log:
2021-05-25 14:14:48,494 : ERROR : KNIME-Worker-51-DB Connector 0:13 : : Node : DB Connector : 0:13 : Execute failed: [JDBC Driver]Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.
java.sql.SQLException: [JDBC Driver]Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.
at com.amazonaws.client.builder.AwsClientBuilder.setRegion(AwsClientBuilder.java:371)
at com.amazonaws.client.builder.AwsClientBuilder.configureMutableProperties(AwsClientBuilder.java:337)
at com.amazonaws.client.builder.AwsSyncClientBuilder.build(AwsSyncClientBuilder.java:46)
at com.amazon.redshift.plugin.SamlCredentialsProvider.refresh(Unknown Source)
at com.amazon.redshift.plugin.SamlCredentialsProvider.getCredentials(Unknown Source)
at com.amazon.redshift.plugin.SamlCredentialsProvider.getCredentials(Unknown Source)
at com.amazon.redshift.core.IamHelper.setIAMCredentials(Unknown Source)
at com.amazon.redshift.core.IamHelper.setIAMProperties(Unknown Source)
at com.amazon.redshift.core.PGJDBCConnection.connect(Unknown Source)
at com.amazon.jdbc.common.BaseConnectionFactory.doConnect(Unknown Source)
at com.amazon.jdbc.common.AbstractDriver.connect(Unknown Source)
at org.knime.database.connection.UrlDBConnectionController$ControlledDriver.connect(UrlDBConnectionController.java:95)
at org.knime.database.connection.UrlDBConnectionController.createConnection(UrlDBConnectionController.java:308)
at org.knime.database.connection.UserDBConnectionController.createConnection(UserDBConnectionController.java:249)
at org.knime.database.connection.AbstractConnectionProvider.createConnection(AbstractConnectionProvider.java:89)
at org.knime.database.connection.impl.DBConnectionManager.lambda$2(DBConnectionManager.java:501)
at java.util.concurrent.FutureTask.run(FutureTask.java:266)
at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149)
at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624)
at java.lang.Thread.run(Thread.java:748)
Caused by: com.amazonaws.SdkClientException: Unable to find a region via the region provider chain. Must provide an explicit region in the builder or setup environment to supply a region.
Help?