This connector is a Tableau extension that provides connectivity between Tableau and ClickHouse. The connector gives users full access to Tableau's data modeling and exploration features on ClickHouse data. However, the connector still needs a database driver to comunicate with ClickHouse. Tableau supports 2 driver types: ODBC and JDBC. For that reason there are 2 versions of this connector based on the two protocols. Which one you should use depends on the operating system you use to run Tableau Dekstop (or Server). The Windows platform has good support for ODBC protocol, so it's much easier to install the ClickHouse ODBC driver on Windows. On the other hand, if you run Tableau Desktop on a Mac or want your Tableau dashboards to work on any platform (Windows, MacOS, Linux, Tableau Cloud), use the JDBC connector.
The directions below assume you understand how ODBC/JDBC and Tableau connectors work. For complete information, see the following resources at clickhouse.com:
Before using the Altinity Tableau Connector for ClickHouse, you must install Tableau Desktop (or Server) version 2020.2 or above. Supported platforms are Windows, MacOS, and Linux.
- Download the Clickhouse JDBC Driver from the ClickHouse JDBC driver releases page and place the file in the following location based on your operating system:
- macOS:
~/Library/Tableau/Drivers
- Windows:
C:\Program Files\Tableau\Drivers
If the folder doesn’t exist, you need to create it.
- Download the latest JDBC connector file from the Altinity Tableau Connector for ClickHouse releases page and place it in the following location based on your operating system:
- macOS:
~/Documents/My Tableau Repository/Connectors
- Windows:
C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors
- Restart Tableau Desktop and you should be able to see the connection type Altinity JDBC for ClickHouse by Altinity Inc.
- Download the Clickhouse JDBC Driver from the ClickHouse JDBC driver releases page and place the file in the following location based on your operating system:
- Windows:
C:\Program Files\Tableau\Drivers
- Linux:
/opt/tableau/tableau_driver/jdbc
If this folder doesn’t exist, you need to create it.
Also check that Tableau has access to this directory. Here are sample commands for Linux:
sudo mkdir -p /opt/tableau/tableau_driver/jdbc
sudo cp [/path/to/download driver file name] /opt/tableau/tableau_driver/jdbc
sudo chmod 755 /opt/tableau/tableau_driver/jdbc/[driver file name].jar
- Download the latest JDBC connector file from the Altinity Tableau Connector for ClickHouse releases page and place it in:
- Windows:
C:\Program Files\Tableau\Connectors
- Linux:
/opt/tableau/connectors
- Windows:
- Restart the Tableau Server and run the command
tsm restart
. It will take some time, usually less than 10 mins. If you have more than one instance of Tableau Server you need to repeat steps 1-3 on each node. - Check that the Tableau Server has Altinity JDBC for ClickHouse in the list of supported connections.
After the connector is successfully installed, open Tableau Desktop.
- You should see a new connection type - Altinity JDBC for ClickHouse by Altinity Inc.
- Enter your credentials in the dialog window.
- Click "Sign in" and you should see the list of available databases.
Before installing the Altinity Tableau Connector for ClickHouse with Tableau Desktop, the following pre-requisites must be installed:
- Tableau Desktop (or Server) installed for Microsoft Windows. Version 2020.2 or above is required.
- The clickhouse-odbc driver version 1.1.9 or above.
- A Tableau account to access the Extension gallery. (Required in future)
Instructions on how to install the clickhouse-odbc driver are available from the clickhouse-odbc Github repository. A Windows installer is available on the clickhouse-odbc releases page.
This connector is available in the Tableau Extension Gallery. You can install it directly from there directly in Tableau Desktop. Just find it in list of avaialble connectors and click Install.
You can also download the connector file from the release page (check for ODBC in filename) and copy it into the C:\Users\[Windows User]\Documents\My Tableau Repository\Connectors
directory.
Then restart Tableu Desktop (or Server) and you should see the new connection type Altinity ODBC for ClickHouse.
After the connector is successfully installed, open Tableau Desktop.
- You should see a new connection type - Altinity ODBC for ClickHouse by Altinity Inc.
- Enter your credentials in the dialog window.
- Enter the query
SELECT version();
into the Initial SQL tab to verify that connection was established successfully and click Sign in.
You dont need to create an ODBC DSN! The connection credentials that you entered in dialog window will be used by the connector directly.