- Once you've started up Metabase, open http://localhost:3000 , go to add a database and select "Databend".
- You'll need to provide the Host/Port, 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-databend-driver repo
cd modules/drivers git clone https://github.com/databendcloud/metabase-databend-driver
-
Prepare metabase dependencies
cp ../../target/uberjar/metabase.jar metabase-databend-driver/ cd metabase-databend-driver mkdir repo mvn deploy:deploy-file -Durl=file:repo -DgroupId=com.databend -DartifactId=metabase-core -Dversion=1.40 -Dpackaging=jar -Dfile=metabase.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 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 :databend...
2019-05-07 23:27:32 INFO metabase.driver :: Registered driver :databend (parents: #{:sql-jdbc}) 🚚
Metabase Release | Driver Version |
---|---|
0.37.x | 0.0.1 |
0.38.1+ | 0.0.2 |
0.41.2 | 0.0.3 |
0.41.3.1 | 0.0.4 |
0.42.x | 0.0.5 |
0.44.x | 0.0.6 |
0.47.7+ | 0.0.7 |
0.49.x | 0.0.8 |