Unable to use JDBC driver with proxyHost with dashes
See original GitHub issueWhenever I try to initialize JDBC driver with proxy settings as part of the Connection String, I am getting an error:
No suitable driver found for jdbc:snowflake://myaccount.snowflakecomputing.com:443?CLIENT_SESSION_KEEP_ALIVE=true&db=TEST_DB&proxyHost=some-host-with-dashes.com&proxyPort=1234&schema=PUBLIC&useProxy=true&warehouse=TEST_WH
When proxyHost doesn’t include dashes or any other special characters, the driver initializes but fails on network error. An example proxyHost that doesn’t fail: jdbc:snowflake://myaccount.snowflakecomputing.com:443?CLIENT_SESSION_KEEP_ALIVE=true&db=TEST_DB&proxyHost=localhost&proxyPort=1234&schema=PUBLIC&useProxy=true&warehouse=TEST_WH
.
Any idea what’s going on?
Issue Analytics
- State:
- Created 4 years ago
- Comments:13 (7 by maintainers)
Top Results From Across the Web
DataSource Connections Fail With Error " [SQLServer JDBC ...
DataSource Connections Fail With Error " [SQLServer JDBC Driver]Failure while trying to establish connection to proxy service.
Read more >JDBC driver encountered communication error when ...
I have driver class name as net.snowflake.client.jdbc. ... When executing sql using this connection, I got the following error in the nifi app...
Read more >JDBC Driver Connection Parameter Reference
This topic lists the connection parameters that you can use to configure the JDBC driver. You can set these parameters in the JDBC...
Read more >MySQL JDBC driver failed to create schema with hyphen
1 Answer 1 ... In MySQL, the dash (hyphen) character is not a permitted character in an unquoted identifier. ... To use the...
Read more >I can't connect SonarQube with PostgreSQL - Sonar Community
Hello, I have installed SonarQube on my Windows 10 laptop and using the embedded database it works perfectly but when i try connecting...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
We are working on the fix.
On Mon, Jun 24, 2019 at 6:15 AM Moty Michaely notifications@github.com wrote:
– Shige Takeda smtakeda@gmail.com
@smtakeda and @mknister Thanks for your comments!
Specifying a Proxy Server by Setting JVM Options won’t work for us as we are running several workloads under the same JVM process, and setting the proxy on JVM level will route all traffic through the proxy. We only need the Snowflake connection go through the proxy.
Our use case is whitelisting a single IP in our Snowflake Security policy by having the connection go through a proxy. We tried sorting this out using an SSH tunnel but this doesn’t work due to certificate mismatch.
Currently we are working this around by having a dedicated NAT gateway to have single IP but we’d like to avoid having a dedicated NAT gateway for this purpose. I hope this makes sense.
@smtakeda - Any ETA for a fix?
Thanks a bunch!