Connecting Databricks Spark to Metabase

For other folks coming across this thread, there’s a community-built Metabase Databricks driver here: https://github.com/ifood/metabase-sparksql-databricks-driver

I’ve only tested the basic connection myself. The tricky thing is ensuring the JDBC flags and UID were correct. The UID/username is literally token and the JDBC flags can be copied from the Databricks cluster JDBC info page.

Currently that driver only works with v0.32.x and v0.33.x - it has not been updated to work with v0.34.x. Here’s a Dockerfile based off of Metabase v0.33.6 that adds the plugin to the relevant location in the container:

FROM metabase/metabase:v0.33.6

ADD --chown=2000:2000 https://github.com/ifood/metabase-sparksql-databricks-driver/releases/download/1.0.0/sparksql-databricks.metabase-driver.jar /plugins/