Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

connecting to azure snowflake on osx #9

Open
MattMacGillivray opened this issue Dec 14, 2018 · 5 comments
Open

connecting to azure snowflake on osx #9

MattMacGillivray opened this issue Dec 14, 2018 · 5 comments

Comments

@MattMacGillivray
Copy link

MattMacGillivray commented Dec 14, 2018

I'm unable to connect to snowflake using the example given:

library(dplyr)
library(dplyr.snowflakedb)
options(dplyr.jdbc.classpath = "/Users/mattm/downloads/snowflake-jdbc-3.6.9.jar")

my_db <- src_snowflakedb(user = "<user>",
                         password = "<password>",
                         account = "<account>",
                         opts = list(warehouse = "warehouse",
                                     db = "database",
                                     schema = "public"))

Error I get:

Error in .jcall(drv@jdrv, "Ljava/sql/Connection;", "connect", as.character(url)[1],  : 
  net.snowflake.client.jdbc.SnowflakeSQLException: JDBC driver not able to connect to Snowflake. Error code: 390100, Message: Incorrect username or password was specified..

Using:

R version 3.5.1 (2018-07-02) -- "Feather Spray"
Copyright (C) 2018 The R Foundation for Statistical Computing
Platform: x86_64-apple-darwin17.6.0 (64-bit)

jdk1.8.0_152.jdk

Possibly relevant, I'm using a snowflake instance in east-us-2.azure

@rdatasculptor
Copy link

rdatasculptor commented Dec 20, 2018

I encountered the same problem. A solution would be appreciated!

I am using a snowflake instance in west-europe.azure

@MattMacGillivray
Copy link
Author

Response from Snowflake:

The issue is that the dplyr connector has not been updated to reflect the new lists of regions we've added since the last cut. We will likely deprecate that parameter to keep this easier going forward.

Could you add the following to your connection:

host = ".east-us-2.snowflakecomputing.com"

It would look something like this:

my_db <- src_snowflakedb(user = "test-user", password = "password", account = "myaccount", host = ".east-us-2.snowflakecomputing.com", opts = list(warehouse = "dba_wh", db = "sales", schema = "public"))

I tested that syntax and it worked whereas before it did not.

@MattMacGillivray
Copy link
Author

Which seems to work.

@rdatasculptor
Copy link

rdatasculptor commented Dec 21, 2018

So in my case it would be something like:

host = ".west-europe.snowflakecomputing.com"

Unfortenately that still doesn't work for me.

@rdatasculptor
Copy link

I didn't set the account name right. Now it works!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants