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

dbConnect does not work for R3.4.1 #188

Closed
fuhuifang opened this issue Jun 6, 2018 · 5 comments
Closed

dbConnect does not work for R3.4.1 #188

fuhuifang opened this issue Jun 6, 2018 · 5 comments

Comments

@fuhuifang
Copy link

fuhuifang commented Jun 6, 2018

I was trying to connect R3.4.1 from RStudio server on AWS EMR cluster to Redshift, and R did not respond for a long time and then it was abnormally terminated due to an unexpected crash. The command I used is

cxn <- dbConnect(RPostgres::Postgres(), host = redshift_login$host, port = redshift_login$port, user = redshift_login$user, password = redshift_login$password, dbname = redshift_login$dbname, sslmode='require')

and it works for R 3.5.0 on my local machine.

I also tried to connect to the default database by con <- dbConnect(RPostgres::Postgres()), and it did not respond either.

@krlmlr
Copy link
Member

krlmlr commented Jun 6, 2018

Thanks. The "default database" requires an installation of PostgreSQL on a local machine, unlikely to work if you don't have one.

On the RStudio server, can you connect to the RedShift instance from the terminal via psql or similar means? This needs a fairly recent version of RStudio, though.

@fuhuifang
Copy link
Author

No, I was running into this error
psql: could not connect to server: Connection timed out Is the server running on host "XXX.redshift.amazonaws.com" and accepting TCP/IP connections on port 5439?

@krlmlr
Copy link
Member

krlmlr commented Jun 6, 2018

Maybe there's a firewall somewhere between the RStudio server and RedShift? The abnormal termination is troublesome, though, I'll leave the issue open.

@krlmlr
Copy link
Member

krlmlr commented Dec 17, 2019

We don't currently support Redshift very well. Closing in favor of #215.

@krlmlr krlmlr closed this as completed Dec 17, 2019
@github-actions
Copy link
Contributor

This old thread has been automatically locked. If you think you have found something related to this, please open a new issue and link to this old issue if necessary.

@github-actions github-actions bot locked and limited conversation to collaborators Dec 17, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants