Support Questions
Find answers, ask questions, and share your expertise
Alert: Welcome to the Unified Cloudera Community. Former HCC members be sure to read and learn how to activate your account here.

JDBC driver encountered communication error when connecting snowflake database from Nifi


JDBC driver encountered communication error when connecting snowflake database from Nifi

New Contributor

I set up the nifi in a window environment. I have a ​controller in nifi that uses JDBC connection to snowflake in the following format:


I have driver class name as net.snowflake.client.jdbc.SnowflakeDriver and have placed the snowflake-jdbc-3.8.1 in the nifi lib folder.

The Java version is jre1.8.0_144.

When executing sql using this connection, I got the following error in the nifi app log:

net.snowflake.client.jdbc.SnowflakeSQLException: JDBC driver encountered communication error. Message: Exception encountered for HTTP request: Connect to <account>.<region> [*******] failed: Connection timed out: connect.

at net.snowflake.client.jdbc.RestRequest.execute(

at net.snowflake.client.core.HttpUtil.executeRequestInternal(

at net.snowflake.client.core.HttpUtil.executeRequest(

at net.snowflake.client.core.HttpUtil.executeRequest(

at net.snowflake.client.core.SessionUtil.newSession(

at net.snowflake.client.core.SessionUtil.openSession(


at net.snowflake.client.jdbc.SnowflakeConnectionV1.<init>(

at net.snowflake.client.jdbc.SnowflakeDriver.connect(

at org.apache.commons.dbcp2.DriverConnectionFactory.createConnection(

at org.apache.commons.dbcp2.PoolableConnectionFactory.makeObject(

at org.apache.commons.dbcp2.BasicDataSource.validateConnectionFactory(

at org.apache.commons.dbcp2.BasicDataSource.createPoolableConnectionFactory(

Because I'm trying it on a workstation that's behind proxy, so I thought to add http proxy setting in nifi config (as mentioned in, even though I already have the http proxy settings in the environment variables. That didn't change the error, except for it does try to connect to our proxy server first, as indicated in the app log.

I'm able to connect to snowflake through web browser fine, so want to see if it's an issue with nifi setting too. Thanks in advance.