The Metabase Doris driver allows Metabase v0.48.0 or above to connect to Doris databases.If Metabase version below v0.48.0,try to use mysql driver to connection with doris.
- synch doris database tables infomation
- synch doris table fields infomation
- query data from doris with sql
Click here to view the latest release of the Metabase Doris driver; click the link to download doris.metabase-driver.jar
.
Metabase will automatically make the Doris driver if it finds the driver JAR in the Metabase plugins directory when it starts up.
Follow steps shown bellow to install the driver properly:
- Create the directory (if it's not already there)
- Move the Doris metabase driver JAR you just downloaded into it ("doris.metabase-driver.jar")
- Restart Metabase
By default, the plugins directory is called plugins
, and lives in the same directory as the Metabase JAR.
For example, if you're running Metabase from a directory called /app/
, you should move the Doris driver JAR to /app/plugins/
:
# example directory structure for running Metabase with Doris support
./metabase.jar
./plugins/doris.metabase-driver.jar
Make sure you have the clojure
CLI version 1.11.1.1435
or newer installed; you can check this with clojure --version
. Follow the instructions at https://clojure.org/guides/getting_started if you need to install a
newer version.
git clone https://github.com/metabase/metabase
Unfortunately the current command for building a driver is quite a mouthful, but we needed to make changes to how the Metabase build script works to avoid issues with dependencies shadowing one another. Please upvote https://ask.clojure.org/index.php/7843/allow-specifying-aliases-coordinates-that-point-projects , which will allow us to make building drivers much more convenient in the future!
# Example for building the driver with bash or similar
# switch to the local checkout of the Metabase repo
cd /path/to/metabase/repo
# get absolute path to the driver project directory
export DRIVER_PATH=`readlink -f ~/doris-driver`
# Build driver. See explanation below
clojure -Sdeps "{:aliases {:doris {:extra-deps {com.metabase/doris-driver {:local/root \"$DRIVER_PATH\"}}}}}" -X:build:doris build-drivers.build-driver/build-driver! "{:driver :doris, :project-dir \"$DRIVER_PATH\", :target-dir \"$DRIVER_PATH/target\"}"