Redshift Dbeaver



I use redshift occasionally for playing with some data. Its an amazing service(a datawarehousing solution) from AWS that you can use for analyzing large amounts of data.

DBeaver is certainly an ultimate Universal client which incorporates RDBMS and NoSQL Databases. The GUI is very useful and easy to manipulate all kind of DB queries.DBeaver is remarkably fast and stable. It loads quickly and responds instantaneously. Especially, It is the only client tool for Apache Cassandra NoSQL Database in market.

Download Redshift Odbc Driver

Every time I need to use redshift (every couple of months) I begin my search for a decent client that I can use. A google search does not result in something concrete right off with full of discussions on quora and other places.

AWS official guides use SQL workbench. I found it lacking in basic features like displaying the list of connections, databases, schemas, tables, etc. The whole reason I am using GUI is that I don’t have to remember the database objects.

While any postgres GUI clients would work for running basic queries on redshift, things like IAM authentication, federated authentication require redshift JDBC drivers that I need to use.

Since I am only an occasional user I needed a free tool (preferably open source) to do the job and am not looking to pay for the software.

Dbeaver Redshift Download

  • Tools for software developers like Web Safety tools, Web Site Advisor, Windows Disk Encryption, NetMeeting, IIS, Internet Information Services, Recovery tools.
  • Download DBeaver for Windows PC from FileHorse. 100% Safe and Secure ✔ Free Download (32-bit/64-bit) Latest Version 2021.

My final set of requirements for the tool were:

  1. Provides decent GUI.
  2. Can use redshift JDBC drivers.
  3. Can run on multiple platforms (mac, windows)
  4. Free(Permissive enough licensing for me to use it for commercial purposes. I support customers making my use commercial.) or open source.

Dbeaver Redshift Iam

After some search and trying out a couple of clients I stumbled on DBeaver. I am not going to provide a comparison of multiple tools that I tried but will focus on DBeaver that met my requirements.

Aws odbc driverDbeaver redshift connection timeout

My take:

Dbeaver
  1. It is built on eclipse - so kinda heavy - but worked without any challenge.
  2. A generic SQL client that can connect to any database given the JDBC driver.
  3. Works on mac, windows and linux.
  4. It’s open source (Apache license)

While my needs are not extreme and I have not tested DBeaver to its full extent, it could work for a heavy user too. Check it out. All the best.

The CData JDBC Driver for Redshift implements JDBC standards that enable third-party tools to interoperate, from wizards in IDEs to business intelligence tools. This article shows how to connect to Redshift data with wizards in DBeaver and browse data in the DBeaver GUI.

Create a JDBC Data Source for Redshift Data

Follow the steps below to load the driver JAR in DBeaver.

Redshift Driver For Dbeaver

  1. Open the DBeaver application and, in the Databases menu, select the Driver Manager option. Click New to open the Create New Driver form.
  2. In the Driver Name box, enter a user-friendly name for the driver.
  3. To add the .jar, click Add File.
  4. In the create new driver dialog that appears, select the cdata.jdbc.redshift.jar file, located in the lib subfolder of the installation directory.
  5. Click the Find Class button and select the RedshiftDriver class from the results. This will automatically fill the Class Name field at the top of the form. The class name for the driver is cdata.jdbc.redshift.RedshiftDriver.
  6. Add jdbc:redshift: in the URL Template field.

Create a Connection to Redshift Data

Follow the steps below to add credentials and other required connection properties.

  1. In the Databases menu, click New Connection.
  2. In the Create new connection wizard that results, select the driver.
  3. On the next page of the wizard, click the driver properties tab.
  4. Enter values for authentication credentials and other properties required to connect to Redshift.

    To connect to Redshift, set the following:

    • Server: Set this to the host name or IP address of the cluster hosting the Database you want to connect to.
    • Port: Set this to the port of the cluster.
    • Database: Set this to the name of the database. Or, leave this blank to use the default database of the authenticated user.
    • User: Set this to the username you want to use to authenticate to the Server.
    • Password: Set this to the password you want to use to authenticate to the Server.

    You can obtain the Server and Port values in the AWS Management Console:

    1. Open the Amazon Redshift console (http://console.aws.amazon.com/redshift).
    2. On the Clusters page, click the name of the cluster.
    3. On the Configuration tab for the cluster, copy the cluster URL from the connection strings displayed.

    Built-in Connection String Designer

    For assistance in constructing the JDBC URL, use the connection string designer built into the Redshift JDBC Driver. Either double-click the JAR file or execute the jar file from the command-line.

    java -jar cdata.jdbc.redshift.jar

    Fill in the connection properties and copy the connection string to the clipboard.

    Below is a typical connection string:

    jdbc:redshift:User=admin;Password=admin;Database=dev;Server=examplecluster.my.us-west-2.redshift.amazonaws.com;Port=5439;

Query Redshift Data

You can now query information from the tables exposed by the connection: Right-click a Table and then click Edit Table. The data is available on the Data tab.