KNIME Analytics Platform is "the free, open-source software for creating data science." KNIME provides a drag-and-drop desktop GUI for connecting data sources to workflows that can manipulate, analyze, and visualize data. KNIME can be combined with bit.io as a data warehouse to provide convenient, secure, and sharable storage.

Connecting to bit.io with KNIME

In order to connect KNIME with bit.io, you'll need to find your PosgreSQL connection credentials from the bit.io Connect Tab of the database to which you would like to connect. You can find everything you need to know about your PostgreSQL credentials here.

Then, you will need to add the PostgreSQL Connector Node to your workflow and specify the connection credentials and JDBC Parameters as shown below with an example database "knime_demo/dataset" and username "knime_demo". bit.io requires an encrypted database connection, so ensure that you add the JDBC Parameter "sslmode" with the value "require".

182182

The PostgreSQL Connector Icon

🚧

SSL Required

bit.io requires an encrypted database connection, so ensure that you add the JDBC Parameter "sslmode" with the value "require".

956956

Configuration Example for the PostgreSQL Connector

🚧

Automatic reconnection

bit.io automatically closes idle connections after a timeout period is exceeded (currently 60 seconds). You can configure KNIME to handle reconnecting automatically by selecting "Automatically reconnect to database" in the Advanced configuration tab.

670670

KNIME can automatically reconnect to bit.io after exceeding the bit.io idle timeout

Using KNIME with bit.io

Once we've set up our connection, we can build workflows using bit.io as a data source. For our example, we will adapt the KNIME "Getting Started" example workflow to use a bit.io database in place of a local csv file. Here is schematic of the example with a local csv file:

738738

Example workflow from the KNIME getting started guide. We will replace the local csv file with a bit.io database.

After completing the getting started guide on the KNIME website, you can upload the csv file provided by KNIME to a bit.io database. Click "Upload Data" at the top of your bit.io database page and then drag-and-drop the csv file to create a table in your database.

723723

Uploading the KNIME getting started csv file to a bit.io database.

Then, delete the "File Reader" node and add "DB Table Selector" and "DB Reader" nodes as shown below.

781781

The "DB Table Selector" configuration is shown below. You can also use a "DB Query" node to specify custom SQL queries, including table joins and filters. See the KNIME docs for more details of working with database connections in KNIME.

633633

From there, you are ready to run the workflow and view the example visualizations. Here is a screenshot of the resulting pie chart.

909909

👍

Next steps

You now know the basics of connecting bit.io to a KNIME workflow. You can also use KNIME to write processed data into bit.io. See the KNIME docs for information about Nodes that write data back to databases and other more advanced features.


Did this page help you?