Skip to content

fhsgoncalves/metabase-sparksql-databricks-driver

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Metabase Driver: Spark Databricks

All you need you do is drop the driver in your 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/fhsgoncalves/metabase-sparksql-databricks-driver/releases/download/1.0.0/sparksql-databricks.metabase-driver.jar" -o sparksql-databricks.metabase-driver.jar
  • docker build -t metabase:metabase-head-databricks-1.0.0 .

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.0.0

And access https://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/
lein install-for-building-drivers

Build the Spark Databricks driver

# (In the sparksql-databricks driver directory)
lein clean
DEBUG=1 LEIN_SNAPSHOTS_IN_RELEASE=true lein uberjar

Copy it to your plugins dir and restart Metabase

mkdir -p /path/to/metabase/plugins/
cp target/uberjar/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/uberjar/sparksql-databricks.metabase-driver.jar /path/to/metabase/plugins/
cd /path/to/metabase_source
lein run