Beginning with Metabase 0.32, drivers must be stored in a plugins
directory in the same directory where metabase.jar
is, or you can specify the directory by setting the environment variable MB_PLUGINS_DIR
. There are a few options to get up and running with a custom driver.
- Download a fairly recent Metabase binary release (jar file) from the Metabase distribution page.
- Download the Firebolt driver jar from the "Firebolt Driver".
- Download the firebolt jdbc driver jar from the "Firebolt JDBC Driver".
- Create a directory and copy the
metabase.jar
to it. - In that directory create a sub-directory called
plugins
. - Copy the Firebolt driver jar and Firebolt jdbc driver jar to the
plugins
directory. - Make sure you are the in the directory where your
metabase.jar
lives. - Run
java -jar metabase.jar
.
In either case, you should see a message on startup similar to:
04-15 06:14:08 DEBUG plugins.lazy-loaded-driver :: Registering lazy loading driver :firebolt...
04-15 06:14:08 INFO driver.impl :: Registered driver :firebolt (parents: [:sql-jdbc]) 🚚
- Once you've started up Metabase, open http://localhost:3000 , go to add a database and select "Firebolt".
- You'll need to provide the Database Name, Username and Password.
-
Clone and build metabase dependency jar.
git clone https://github.com/metabase/metabase cd metabase clojure -X:deps prep cd modules/drivers clojure -X:deps prep cd ../.. clojure -T:build uberjar
-
Clone metabase-firebolt-driver repo
cd modules/drivers git clone https://github.com/firebolt-db/metabase-firebolt-driver
-
Download Firebolt jdbc driver from the Firebolt generic jdbc driver and paste it in metabase-firebolt-driver directory to make a local maven repo.
cp ../../target/uberjar/metabase.jar metabase-firebolt-driver/ cd metabase-firebolt-driver mkdir repo mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.firebolt -DartifactId=metabase-core -Dversion=1.40 -Dpackaging=jar -Dfile=metabase.jar mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.firebolt -DartifactId=firebolt-jdbc -Dversion=1.0.0 -Dpackaging=jar -Dfile=firebolt-jdbc-1.18-jar-with-dependencies.jar
-
Build the jar
LEIN_SNAPSHOTS_IN_RELEASE=true DEBUG=1 lein uberjar
-
Let's assume we download
metabase.jar
from the Metabase jar to~/metabase/
and we built the project above. Copy the built jar and also Firebolt generic jdbc driver jar to the Metabase plugins directly and run Metabase from there!cd ~/metabase/ java -jar metabase.jar
You should see a message on startup similar to:
2019-05-07 23:27:32 INFO plugins.lazy-loaded-driver :: Registering lazy loading driver :firebolt...
2019-05-07 23:27:32 INFO metabase.driver :: Registered driver :firebolt (parents: #{:sql-jdbc}) 🚚