Add Redshift Driver to DataGrip
- In Datagrip, go to Manage Data Source (Cmd + ; on OS X)
- Press the + button in the upper left and select "Driver" to create a new Database Driver
- In the "Driver Files" section, press the + button in the lower left and select the path where you put the driver JAR file.
- Use the following settings:
- Class Name: com.amazon.redshift.jdbc41.Driver
- Dialect: PostgreSQL
- Auto Commit:
- Yes for convenience,
- No for safety (This Requires you to explicitly commit after executing DML)
- Auto Sync: Yes (turn this off if it slows you down too much)
- Click Apply
Connect to your Redshift Instance with the new Driver
- Press the + button again and select the name of the driver you just created (Redshift)
- Go to your Redshift Console in AWS. Under "Connect Client", select your cluster and get the JDBC URL.
- Copy the JDBC URL into the URL field in DataGrip
- Enter your username and password, and test the connection.
- Hit OK. You can now query Redshift from DataGrip!
Thanks for this, you just solved the issue I was having and now I can connect. Much appreciated.
ReplyDeleteThanks for this. Adding to this, I had ssl problems. After setting up the driver (RedshiftJDBC41-1.1.10.1010.jar) as described in your post, I still got an SSL error. I resolved it with the following url :
ReplyDeletejdbc:redshift://localhost:5439/yourdatabasename?ssl=true&sslfactory=com.amazon.redshift.ssl.NonValidatingFactory
Thank you for this!
DeleteIs there any advantage using the redshift JDBC over the included Postrgres driver?
ReplyDeletePerfect instructions, thank you.
ReplyDeleteI used the JDBC 4.2 driver and didn't see tables under each of my schemas in the Database Tool view. I noticed you used the JDBC 4.1 driver, so I backed off to that one in the hopes that I could get a table list. Alas, no tables. :(
ReplyDeleteHowever, I can see my table list under each schema while connecting to the same RS cluster using the built-in PostgreSQL driver. I'd like to use the Redshift driver since it's currently recommended by Amazon. Does anyone have pointers on how I could get my tables to display whilst using the Amazon JDBC driver?
If you guys also want to know proper details about the reputed company, then you can read more about data transformation or the data warehouse solutions through this page.
ReplyDelete