Skip to content

ewok/metabase-sparksql-databricks-driver

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabase Driver: Spark Databricks

This project fork upgrades the Metabase plugin for Databricks to use latest Simba JDBC 42 driver and adds support to connect to Databricks SQL compute endpoints

All you need you do is drop the driver in your Metabase plugins/ directory. You can grab it here or build it yourself:

Building the driver (the fast way)

Use the Dockerfile on this repo:

  • curl -L "https://github.com/ewok/metabase-sparksql-databricks-driver/releases/download/v1.2.1/sparksql_databricks.metabase-driver.jar" -o sparksql-databricks.metabase-driver.jar
  • docker build -t metabase:metabase-head-databricks-1.2.1 .

And you can deploy to some docker registry of your own and use the image!

Example of running:

  • docker run -d -p 3000:3000 --name metabase metabase:metabase-head-databricks-1.2.1

And access http://localhost:3000.

Building the driver (advanced way)

Prereq: Install Metabase as a local maven dependency, compiled for building drivers

Clone the Metabase repo first if you haven't already done so.

cd /path/to/metabase/

Build the Spark Databricks driver

Update deps.edn file: Point metabase path to metabase/metabase-core and build-drivers extra-deps.

# (In the sparksql-databricks driver directory)
clojure -X:dev:build

Copy it to your plugins dir and restart Metabase

mkdir -p /path/to/metabase/plugins/
cp target/sparksql_databricks.metabase-driver.jar /path/to/metabase/plugins/
jar -jar /path/to/metabase/metabase.jar

or:

mkdir -p /path/to/metabase/plugins
cp target/sparksql_databricks.metabase-driver.jar /path/to/metabase/plugins/
cd /path/to/metabase_source
clojure -M:run

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

 
 
 

Contributors

Languages

  • Clojure 99.0%
  • Other 1.0%